Interface OamClient
- All Superinterfaces:
- AutoCloseable,- AwsClient,- SdkAutoCloseable,- SdkClient
builder() method.
 Use Amazon CloudWatch Observability Access Manager to create and manage links between source accounts and monitoring accounts by using CloudWatch cross-account observability. With CloudWatch cross-account observability, you can monitor and troubleshoot applications that span multiple accounts within a Region. Seamlessly search, visualize, and analyze your metrics, logs, traces, Application Signals services and service level objectives (SLOs), Application Insights applications, and internet monitors in any of the linked accounts without account boundaries.
Set up one or more Amazon Web Services accounts as monitoring accounts and link them with multiple source accounts. A monitoring account is a central Amazon Web Services account that can view and interact with observability data generated from source accounts. A source account is an individual Amazon Web Services account that generates observability data for the resources that reside in it. Source accounts share their observability data with the monitoring account. The shared observability data can include metrics in Amazon CloudWatch, logs in Amazon CloudWatch Logs, traces in X-Ray, Application Signals services and service level objectives (SLOs), applications in Amazon CloudWatch Application Insights, and internet monitors in CloudWatch Internet Monitor.
When you set up a link, you can choose to share the metrics from all namespaces with the monitoring account, or filter to a subset of namespaces. And for CloudWatch Logs, you can choose to share all log groups with the monitoring account, or filter to a subset of log groups.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String
- 
Method SummaryModifier and TypeMethodDescriptionstatic OamClientBuilderbuilder()Create a builder that can be used to configure and create aOamClient.static OamClientcreate()Create aOamClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateLinkResponsecreateLink(Consumer<CreateLinkRequest.Builder> createLinkRequest) Creates a link between a source account and a sink that you have created in a monitoring account.default CreateLinkResponsecreateLink(CreateLinkRequest createLinkRequest) Creates a link between a source account and a sink that you have created in a monitoring account.default CreateSinkResponsecreateSink(Consumer<CreateSinkRequest.Builder> createSinkRequest) Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability.default CreateSinkResponsecreateSink(CreateSinkRequest createSinkRequest) Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability.default DeleteLinkResponsedeleteLink(Consumer<DeleteLinkRequest.Builder> deleteLinkRequest) Deletes a link between a monitoring account sink and a source account.default DeleteLinkResponsedeleteLink(DeleteLinkRequest deleteLinkRequest) Deletes a link between a monitoring account sink and a source account.default DeleteSinkResponsedeleteSink(Consumer<DeleteSinkRequest.Builder> deleteSinkRequest) Deletes a sink.default DeleteSinkResponsedeleteSink(DeleteSinkRequest deleteSinkRequest) Deletes a sink.default GetLinkResponsegetLink(Consumer<GetLinkRequest.Builder> getLinkRequest) Returns complete information about one link.default GetLinkResponsegetLink(GetLinkRequest getLinkRequest) Returns complete information about one link.default GetSinkResponsegetSink(Consumer<GetSinkRequest.Builder> getSinkRequest) Returns complete information about one monitoring account sink.default GetSinkResponsegetSink(GetSinkRequest getSinkRequest) Returns complete information about one monitoring account sink.default GetSinkPolicyResponsegetSinkPolicy(Consumer<GetSinkPolicyRequest.Builder> getSinkPolicyRequest) Returns the current sink policy attached to this sink.default GetSinkPolicyResponsegetSinkPolicy(GetSinkPolicyRequest getSinkPolicyRequest) Returns the current sink policy attached to this sink.default ListAttachedLinksResponselistAttachedLinks(Consumer<ListAttachedLinksRequest.Builder> listAttachedLinksRequest) Returns a list of source account links that are linked to this monitoring account sink.default ListAttachedLinksResponselistAttachedLinks(ListAttachedLinksRequest listAttachedLinksRequest) Returns a list of source account links that are linked to this monitoring account sink.default ListAttachedLinksIterablelistAttachedLinksPaginator(Consumer<ListAttachedLinksRequest.Builder> listAttachedLinksRequest) This is a variant oflistAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation.default ListAttachedLinksIterablelistAttachedLinksPaginator(ListAttachedLinksRequest listAttachedLinksRequest) This is a variant oflistAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation.default ListLinksResponselistLinks(Consumer<ListLinksRequest.Builder> listLinksRequest) Use this operation in a source account to return a list of links to monitoring account sinks that this source account has.default ListLinksResponselistLinks(ListLinksRequest listLinksRequest) Use this operation in a source account to return a list of links to monitoring account sinks that this source account has.default ListLinksIterablelistLinksPaginator(Consumer<ListLinksRequest.Builder> listLinksRequest) This is a variant oflistLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation.default ListLinksIterablelistLinksPaginator(ListLinksRequest listLinksRequest) This is a variant oflistLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation.default ListSinksResponselistSinks(Consumer<ListSinksRequest.Builder> listSinksRequest) Use this operation in a monitoring account to return the list of sinks created in that account.default ListSinksResponselistSinks(ListSinksRequest listSinksRequest) Use this operation in a monitoring account to return the list of sinks created in that account.default ListSinksIterablelistSinksPaginator(Consumer<ListSinksRequest.Builder> listSinksRequest) This is a variant oflistSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation.default ListSinksIterablelistSinksPaginator(ListSinksRequest listSinksRequest) This is a variant oflistSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Displays the tags associated with a resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Displays the tags associated with a resource.default PutSinkPolicyResponseputSinkPolicy(Consumer<PutSinkPolicyRequest.Builder> putSinkPolicyRequest) Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink.default PutSinkPolicyResponseputSinkPolicy(PutSinkPolicyRequest putSinkPolicyRequest) Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink.default OamServiceClientConfigurationThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Assigns one or more tags (key-value pairs) to the specified resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes one or more tags from the specified resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes one or more tags from the specified resource.default UpdateLinkResponseupdateLink(Consumer<UpdateLinkRequest.Builder> updateLinkRequest) Use this operation to change what types of data are shared from a source account to its linked monitoring account sink.default UpdateLinkResponseupdateLink(UpdateLinkRequest updateLinkRequest) Use this operation to change what types of data are shared from a source account to its linked monitoring account sink.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseablecloseMethods inherited from interface software.amazon.awssdk.core.SdkClientserviceName
- 
Field Details- 
SERVICE_NAME- See Also:
 
- 
SERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.- See Also:
 
 
- 
- 
Method Details- 
createLinkdefault CreateLinkResponse createLink(CreateLinkRequest createLinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, ServiceQuotaExceededException, InvalidParameterException, AwsServiceException, SdkClientException, OamException Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts. For more information, see CreateSink and PutSinkPolicy. Each monitoring account can be linked to as many as 100,000 source accounts. Each source account can be linked to as many as five monitoring accounts. - Parameters:
- createLinkRequest-
- Returns:
- Result of the CreateLink operation returned by the service.
- See Also:
 
- 
createLinkdefault CreateLinkResponse createLink(Consumer<CreateLinkRequest.Builder> createLinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, ServiceQuotaExceededException, InvalidParameterException, AwsServiceException, SdkClientException, OamException Creates a link between a source account and a sink that you have created in a monitoring account. After the link is created, data is sent from the source account to the monitoring account. When you create a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. Before you create a link, you must create a sink in the monitoring account and create a sink policy in that account. The sink policy must permit the source account to link to it. You can grant permission to source accounts by granting permission to an entire organization or to individual accounts. For more information, see CreateSink and PutSinkPolicy. Each monitoring account can be linked to as many as 100,000 source accounts. Each source account can be linked to as many as five monitoring accounts. 
 This is a convenience which creates an instance of the CreateLinkRequest.Builderavoiding the need to create one manually viaCreateLinkRequest.builder()- Parameters:
- createLinkRequest- A- Consumerthat will call methods on- CreateLinkRequest.Builderto create a request.
- Returns:
- Result of the CreateLink operation returned by the service.
- See Also:
 
- 
createSinkdefault CreateSinkResponse createSink(CreateSinkRequest createSinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, ServiceQuotaExceededException, InvalidParameterException, AwsServiceException, SdkClientException, OamException Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data. After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy. Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region. - Parameters:
- createSinkRequest-
- Returns:
- Result of the CreateSink operation returned by the service.
- See Also:
 
- 
createSinkdefault CreateSinkResponse createSink(Consumer<CreateSinkRequest.Builder> createSinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, ServiceQuotaExceededException, InvalidParameterException, AwsServiceException, SdkClientException, OamException Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data. After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy. Each account can contain one sink per Region. If you delete a sink, you can then create a new one in that Region. 
 This is a convenience which creates an instance of the CreateSinkRequest.Builderavoiding the need to create one manually viaCreateSinkRequest.builder()- Parameters:
- createSinkRequest- A- Consumerthat will call methods on- CreateSinkRequest.Builderto create a request.
- Returns:
- Result of the CreateSink operation returned by the service.
- See Also:
 
- 
deleteLinkdefault DeleteLinkResponse deleteLink(DeleteLinkRequest deleteLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account. - Parameters:
- deleteLinkRequest-
- Returns:
- Result of the DeleteLink operation returned by the service.
- See Also:
 
- 
deleteLinkdefault DeleteLinkResponse deleteLink(Consumer<DeleteLinkRequest.Builder> deleteLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account. 
 This is a convenience which creates an instance of the DeleteLinkRequest.Builderavoiding the need to create one manually viaDeleteLinkRequest.builder()- Parameters:
- deleteLinkRequest- A- Consumerthat will call methods on- DeleteLinkRequest.Builderto create a request.
- Returns:
- Result of the DeleteLink operation returned by the service.
- See Also:
 
- 
deleteSinkdefault DeleteSinkResponse deleteSink(DeleteSinkRequest deleteSinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Deletes a sink. You must delete all links to a sink before you can delete that sink. - Parameters:
- deleteSinkRequest-
- Returns:
- Result of the DeleteSink operation returned by the service.
- See Also:
 
- 
deleteSinkdefault DeleteSinkResponse deleteSink(Consumer<DeleteSinkRequest.Builder> deleteSinkRequest) throws InternalServiceException, ConflictException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Deletes a sink. You must delete all links to a sink before you can delete that sink. 
 This is a convenience which creates an instance of the DeleteSinkRequest.Builderavoiding the need to create one manually viaDeleteSinkRequest.builder()- Parameters:
- deleteSinkRequest- A- Consumerthat will call methods on- DeleteSinkRequest.Builderto create a request.
- Returns:
- Result of the DeleteSink operation returned by the service.
- See Also:
 
- 
getLinkdefault GetLinkResponse getLink(GetLinkRequest getLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns complete information about one link. To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks. - Parameters:
- getLinkRequest-
- Returns:
- Result of the GetLink operation returned by the service.
- See Also:
 
- 
getLinkdefault GetLinkResponse getLink(Consumer<GetLinkRequest.Builder> getLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns complete information about one link. To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks. 
 This is a convenience which creates an instance of the GetLinkRequest.Builderavoiding the need to create one manually viaGetLinkRequest.builder()- Parameters:
- getLinkRequest- A- Consumerthat will call methods on- GetLinkRequest.Builderto create a request.
- Returns:
- Result of the GetLink operation returned by the service.
- See Also:
 
- 
getSinkdefault GetSinkResponse getSink(GetSinkRequest getSinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns complete information about one monitoring account sink. To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks. - Parameters:
- getSinkRequest-
- Returns:
- Result of the GetSink operation returned by the service.
- See Also:
 
- 
getSinkdefault GetSinkResponse getSink(Consumer<GetSinkRequest.Builder> getSinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns complete information about one monitoring account sink. To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks. 
 This is a convenience which creates an instance of the GetSinkRequest.Builderavoiding the need to create one manually viaGetSinkRequest.builder()- Parameters:
- getSinkRequest- A- Consumerthat will call methods on- GetSinkRequest.Builderto create a request.
- Returns:
- Result of the GetSink operation returned by the service.
- See Also:
 
- 
getSinkPolicydefault GetSinkPolicyResponse getSinkPolicy(GetSinkPolicyRequest getSinkPolicyRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns the current sink policy attached to this sink. The sink policy specifies what accounts can attach to this sink as source accounts, and what types of data they can share. - Parameters:
- getSinkPolicyRequest-
- Returns:
- Result of the GetSinkPolicy operation returned by the service.
- See Also:
 
- 
getSinkPolicydefault GetSinkPolicyResponse getSinkPolicy(Consumer<GetSinkPolicyRequest.Builder> getSinkPolicyRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns the current sink policy attached to this sink. The sink policy specifies what accounts can attach to this sink as source accounts, and what types of data they can share. 
 This is a convenience which creates an instance of the GetSinkPolicyRequest.Builderavoiding the need to create one manually viaGetSinkPolicyRequest.builder()- Parameters:
- getSinkPolicyRequest- A- Consumerthat will call methods on- GetSinkPolicyRequest.Builderto create a request.
- Returns:
- Result of the GetSinkPolicy operation returned by the service.
- See Also:
 
- 
listAttachedLinksdefault ListAttachedLinksResponse listAttachedLinks(ListAttachedLinksRequest listAttachedLinksRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns a list of source account links that are linked to this monitoring account sink. To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks. To find a list of links for one source account, use ListLinks. - Parameters:
- listAttachedLinksRequest-
- Returns:
- Result of the ListAttachedLinks operation returned by the service.
- See Also:
 
- 
listAttachedLinksdefault ListAttachedLinksResponse listAttachedLinks(Consumer<ListAttachedLinksRequest.Builder> listAttachedLinksRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Returns a list of source account links that are linked to this monitoring account sink. To use this operation, provide the sink ARN. To retrieve a list of sink ARNs, use ListSinks. To find a list of links for one source account, use ListLinks. 
 This is a convenience which creates an instance of the ListAttachedLinksRequest.Builderavoiding the need to create one manually viaListAttachedLinksRequest.builder()- Parameters:
- listAttachedLinksRequest- A- Consumerthat will call methods on- ListAttachedLinksRequest.Builderto create a request.
- Returns:
- Result of the ListAttachedLinks operation returned by the service.
- See Also:
 
- 
listAttachedLinksPaginatordefault ListAttachedLinksIterable listAttachedLinksPaginator(ListAttachedLinksRequest listAttachedLinksRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client.listAttachedLinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client .listAttachedLinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListAttachedLinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client.listAttachedLinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation.- Parameters:
- listAttachedLinksRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listAttachedLinksPaginatordefault ListAttachedLinksIterable listAttachedLinksPaginator(Consumer<ListAttachedLinksRequest.Builder> listAttachedLinksRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client.listAttachedLinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client .listAttachedLinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListAttachedLinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListAttachedLinksIterable responses = client.listAttachedLinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listAttachedLinks(software.amazon.awssdk.services.oam.model.ListAttachedLinksRequest)operation.
 This is a convenience which creates an instance of the ListAttachedLinksRequest.Builderavoiding the need to create one manually viaListAttachedLinksRequest.builder()- Parameters:
- listAttachedLinksRequest- A- Consumerthat will call methods on- ListAttachedLinksRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listLinksdefault ListLinksResponse listLinks(ListLinksRequest listLinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation in a source account to return a list of links to monitoring account sinks that this source account has. To find a list of links for one monitoring account sink, use ListAttachedLinks from within the monitoring account. - Parameters:
- listLinksRequest-
- Returns:
- Result of the ListLinks operation returned by the service.
- See Also:
 
- 
listLinksdefault ListLinksResponse listLinks(Consumer<ListLinksRequest.Builder> listLinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation in a source account to return a list of links to monitoring account sinks that this source account has. To find a list of links for one monitoring account sink, use ListAttachedLinks from within the monitoring account. 
 This is a convenience which creates an instance of the ListLinksRequest.Builderavoiding the need to create one manually viaListLinksRequest.builder()- Parameters:
- listLinksRequest- A- Consumerthat will call methods on- ListLinksRequest.Builderto create a request.
- Returns:
- Result of the ListLinks operation returned by the service.
- See Also:
 
- 
listLinksPaginatordefault ListLinksIterable listLinksPaginator(ListLinksRequest listLinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListLinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation.- Parameters:
- listLinksRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listLinksPaginatordefault ListLinksIterable listLinksPaginator(Consumer<ListLinksRequest.Builder> listLinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListLinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListLinksIterable responses = client.listLinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listLinks(software.amazon.awssdk.services.oam.model.ListLinksRequest)operation.
 This is a convenience which creates an instance of the ListLinksRequest.Builderavoiding the need to create one manually viaListLinksRequest.builder()- Parameters:
- listLinksRequest- A- Consumerthat will call methods on- ListLinksRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listSinksdefault ListSinksResponse listSinks(ListSinksRequest listSinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation in a monitoring account to return the list of sinks created in that account. - Parameters:
- listSinksRequest-
- Returns:
- Result of the ListSinks operation returned by the service.
- See Also:
 
- 
listSinksdefault ListSinksResponse listSinks(Consumer<ListSinksRequest.Builder> listSinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation in a monitoring account to return the list of sinks created in that account. 
 This is a convenience which creates an instance of the ListSinksRequest.Builderavoiding the need to create one manually viaListSinksRequest.builder()- Parameters:
- listSinksRequest- A- Consumerthat will call methods on- ListSinksRequest.Builderto create a request.
- Returns:
- Result of the ListSinks operation returned by the service.
- See Also:
 
- 
listSinksPaginatordefault ListSinksIterable listSinksPaginator(ListSinksRequest listSinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListSinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation.- Parameters:
- listSinksRequest-
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listSinksPaginatordefault ListSinksIterable listSinksPaginator(Consumer<ListSinksRequest.Builder> listSinksRequest) throws InternalServiceException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException This is a variant of listSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable. The following are few ways to iterate through the response pages: 1) Using a Stream
 2) Using For loopsoftware.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); for (software.amazon.awssdk.services.oam.model.ListSinksResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.oam.paginators.ListSinksIterable responses = client.listSinksPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page. Note: If you prefer to have control on service calls, use the listSinks(software.amazon.awssdk.services.oam.model.ListSinksRequest)operation.
 This is a convenience which creates an instance of the ListSinksRequest.Builderavoiding the need to create one manually viaListSinksRequest.builder()- Parameters:
- listSinksRequest- A- Consumerthat will call methods on- ListSinksRequest.Builderto create a request.
- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Displays the tags associated with a resource. Both sinks and links support tagging. - Parameters:
- listTagsForResourceRequest-
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
listTagsForResourcedefault ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Displays the tags associated with a resource. Both sinks and links support tagging. 
 This is a convenience which creates an instance of the ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
- listTagsForResourceRequest- A- Consumerthat will call methods on- ListTagsForResourceRequest.Builderto create a request.
- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
 
- 
putSinkPolicydefault PutSinkPolicyResponse putSinkPolicy(PutSinkPolicyRequest putSinkPolicyRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink. When you create a sink policy, you can grant permissions to all accounts in an organization or to individual accounts. You can also use a sink policy to limit the types of data that is shared. The six types of services with their respective resource types that you can allow or deny are: - 
 Metrics - Specify with AWS::CloudWatch::Metric
- 
 Log groups - Specify with AWS::Logs::LogGroup
- 
 Traces - Specify with AWS::XRay::Trace
- 
 Application Insights - Applications - Specify with AWS::ApplicationInsights::Application
- 
 Internet Monitor - Specify with AWS::InternetMonitor::Monitor
- 
 Application Signals - Specify with AWS::ApplicationSignals::ServiceandAWS::ApplicationSignals::ServiceLevelObjective
 See the examples in this section to see how to specify permitted source accounts and data types. - Parameters:
- putSinkPolicyRequest-
- Returns:
- Result of the PutSinkPolicy operation returned by the service.
- See Also:
 
- 
 
- 
putSinkPolicydefault PutSinkPolicyResponse putSinkPolicy(Consumer<PutSinkPolicyRequest.Builder> putSinkPolicyRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring account sink. When you create a sink policy, you can grant permissions to all accounts in an organization or to individual accounts. You can also use a sink policy to limit the types of data that is shared. The six types of services with their respective resource types that you can allow or deny are: - 
 Metrics - Specify with AWS::CloudWatch::Metric
- 
 Log groups - Specify with AWS::Logs::LogGroup
- 
 Traces - Specify with AWS::XRay::Trace
- 
 Application Insights - Applications - Specify with AWS::ApplicationInsights::Application
- 
 Internet Monitor - Specify with AWS::InternetMonitor::Monitor
- 
 Application Signals - Specify with AWS::ApplicationSignals::ServiceandAWS::ApplicationSignals::ServiceLevelObjective
 See the examples in this section to see how to specify permitted source accounts and data types. 
 This is a convenience which creates an instance of the PutSinkPolicyRequest.Builderavoiding the need to create one manually viaPutSinkPolicyRequest.builder()- Parameters:
- putSinkPolicyRequest- A- Consumerthat will call methods on- PutSinkPolicyRequest.Builderto create a request.
- Returns:
- Result of the PutSinkPolicy operation returned by the service.
- See Also:
 
- 
 
- 
tagResourcedefault TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ValidationException, TooManyTagsException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Assigns one or more tags (key-value pairs) to the specified resource. Both sinks and links can be tagged. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResourceaction with a resource that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.You can associate as many as 50 tags with a resource. Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTagpermission. Theiam:ResourceTagpermission does not allow you to tag and untag links and sinks.- Parameters:
- tagResourceRequest-
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
tagResourcedefault TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ValidationException, TooManyTagsException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Assigns one or more tags (key-value pairs) to the specified resource. Both sinks and links can be tagged. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values. Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters. You can use the TagResourceaction with a resource that already has tags. If you specify a new tag key for the alarm, this tag is appended to the list of tags associated with the alarm. If you specify a tag key that is already associated with the alarm, the new tag value that you specify replaces the previous value for that tag.You can associate as many as 50 tags with a resource. Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTagpermission. Theiam:ResourceTagpermission does not allow you to tag and untag links and sinks.
 This is a convenience which creates an instance of the TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
- tagResourceRequest- A- Consumerthat will call methods on- TagResourceRequest.Builderto create a request.
- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Removes one or more tags from the specified resource. Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTagpermission. Theiam:TagResourcepermission does not allow you to tag and untag links and sinks.- Parameters:
- untagResourceRequest-
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
untagResourcedefault UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Removes one or more tags from the specified resource. Unlike tagging permissions in other Amazon Web Services services, to tag or untag links and sinks you must have the oam:ResourceTagpermission. Theiam:TagResourcepermission does not allow you to tag and untag links and sinks.
 This is a convenience which creates an instance of the UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
- untagResourceRequest- A- Consumerthat will call methods on- UntagResourceRequest.Builderto create a request.
- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
 
- 
updateLinkdefault UpdateLinkResponse updateLink(UpdateLinkRequest updateLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation. When you update a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. To update the list of tags associated with the sink, use TagResource. - Parameters:
- updateLinkRequest-
- Returns:
- Result of the UpdateLink operation returned by the service.
- See Also:
 
- 
updateLinkdefault UpdateLinkResponse updateLink(Consumer<UpdateLinkRequest.Builder> updateLinkRequest) throws InternalServiceException, MissingRequiredParameterException, InvalidParameterException, ResourceNotFoundException, AwsServiceException, SdkClientException, OamException Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation. When you update a link, you can optionally specify filters that specify which metric namespaces and which log groups are shared from the source account to the monitoring account. To update the list of tags associated with the sink, use TagResource. 
 This is a convenience which creates an instance of the UpdateLinkRequest.Builderavoiding the need to create one manually viaUpdateLinkRequest.builder()- Parameters:
- updateLinkRequest- A- Consumerthat will call methods on- UpdateLinkRequest.Builderto create a request.
- Returns:
- Result of the UpdateLink operation returned by the service.
- See Also:
 
- 
createCreate aOamClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
- 
builderCreate a builder that can be used to configure and create aOamClient.
- 
serviceMetadata
- 
serviceClientConfigurationDescription copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
- serviceClientConfigurationin interface- AwsClient
- Specified by:
- serviceClientConfigurationin interface- SdkClient
- Returns:
- SdkServiceClientConfiguration
 
 
-