@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSOAMAsync extends AWSOAM
AsyncHandler
can be
used to receive notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSOAMAsync
instead.
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, and Application Insights applications 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, and applications in Amazon CloudWatch Application Insights.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<CreateLinkResult> |
createLinkAsync(CreateLinkRequest createLinkRequest)
Creates a link between a source account and a sink that you have created in a monitoring account.
|
Future<CreateLinkResult> |
createLinkAsync(CreateLinkRequest createLinkRequest,
AsyncHandler<CreateLinkRequest,CreateLinkResult> asyncHandler)
Creates a link between a source account and a sink that you have created in a monitoring account.
|
Future<CreateSinkResult> |
createSinkAsync(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.
|
Future<CreateSinkResult> |
createSinkAsync(CreateSinkRequest createSinkRequest,
AsyncHandler<CreateSinkRequest,CreateSinkResult> asyncHandler)
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.
|
Future<DeleteLinkResult> |
deleteLinkAsync(DeleteLinkRequest deleteLinkRequest)
Deletes a link between a monitoring account sink and a source account.
|
Future<DeleteLinkResult> |
deleteLinkAsync(DeleteLinkRequest deleteLinkRequest,
AsyncHandler<DeleteLinkRequest,DeleteLinkResult> asyncHandler)
Deletes a link between a monitoring account sink and a source account.
|
Future<DeleteSinkResult> |
deleteSinkAsync(DeleteSinkRequest deleteSinkRequest)
Deletes a sink.
|
Future<DeleteSinkResult> |
deleteSinkAsync(DeleteSinkRequest deleteSinkRequest,
AsyncHandler<DeleteSinkRequest,DeleteSinkResult> asyncHandler)
Deletes a sink.
|
Future<GetLinkResult> |
getLinkAsync(GetLinkRequest getLinkRequest)
Returns complete information about one link.
|
Future<GetLinkResult> |
getLinkAsync(GetLinkRequest getLinkRequest,
AsyncHandler<GetLinkRequest,GetLinkResult> asyncHandler)
Returns complete information about one link.
|
Future<GetSinkResult> |
getSinkAsync(GetSinkRequest getSinkRequest)
Returns complete information about one monitoring account sink.
|
Future<GetSinkResult> |
getSinkAsync(GetSinkRequest getSinkRequest,
AsyncHandler<GetSinkRequest,GetSinkResult> asyncHandler)
Returns complete information about one monitoring account sink.
|
Future<GetSinkPolicyResult> |
getSinkPolicyAsync(GetSinkPolicyRequest getSinkPolicyRequest)
Returns the current sink policy attached to this sink.
|
Future<GetSinkPolicyResult> |
getSinkPolicyAsync(GetSinkPolicyRequest getSinkPolicyRequest,
AsyncHandler<GetSinkPolicyRequest,GetSinkPolicyResult> asyncHandler)
Returns the current sink policy attached to this sink.
|
Future<ListAttachedLinksResult> |
listAttachedLinksAsync(ListAttachedLinksRequest listAttachedLinksRequest)
Returns a list of source account links that are linked to this monitoring account sink.
|
Future<ListAttachedLinksResult> |
listAttachedLinksAsync(ListAttachedLinksRequest listAttachedLinksRequest,
AsyncHandler<ListAttachedLinksRequest,ListAttachedLinksResult> asyncHandler)
Returns a list of source account links that are linked to this monitoring account sink.
|
Future<ListLinksResult> |
listLinksAsync(ListLinksRequest listLinksRequest)
Use this operation in a source account to return a list of links to monitoring account sinks that this source
account has.
|
Future<ListLinksResult> |
listLinksAsync(ListLinksRequest listLinksRequest,
AsyncHandler<ListLinksRequest,ListLinksResult> asyncHandler)
Use this operation in a source account to return a list of links to monitoring account sinks that this source
account has.
|
Future<ListSinksResult> |
listSinksAsync(ListSinksRequest listSinksRequest)
Use this operation in a monitoring account to return the list of sinks created in that account.
|
Future<ListSinksResult> |
listSinksAsync(ListSinksRequest listSinksRequest,
AsyncHandler<ListSinksRequest,ListSinksResult> asyncHandler)
Use this operation in a monitoring account to return the list of sinks created in that account.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest)
Displays the tags associated with a resource.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Displays the tags associated with a resource.
|
Future<PutSinkPolicyResult> |
putSinkPolicyAsync(PutSinkPolicyRequest putSinkPolicyRequest)
Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring
account sink.
|
Future<PutSinkPolicyResult> |
putSinkPolicyAsync(PutSinkPolicyRequest putSinkPolicyRequest,
AsyncHandler<PutSinkPolicyRequest,PutSinkPolicyResult> asyncHandler)
Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring
account sink.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest tagResourceRequest)
Assigns one or more tags (key-value pairs) to the specified resource.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest tagResourceRequest,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Assigns one or more tags (key-value pairs) to the specified resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest untagResourceRequest)
Removes one or more tags from the specified resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest untagResourceRequest,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes one or more tags from the specified resource.
|
Future<UpdateLinkResult> |
updateLinkAsync(UpdateLinkRequest updateLinkRequest)
Use this operation to change what types of data are shared from a source account to its linked monitoring account
sink.
|
Future<UpdateLinkResult> |
updateLinkAsync(UpdateLinkRequest updateLinkRequest,
AsyncHandler<UpdateLinkRequest,UpdateLinkResult> asyncHandler)
Use this operation to change what types of data are shared from a source account to its linked monitoring account
sink.
|
createLink, createSink, deleteLink, deleteSink, getCachedResponseMetadata, getLink, getSink, getSinkPolicy, listAttachedLinks, listLinks, listSinks, listTagsForResource, putSinkPolicy, shutdown, tagResource, untagResource, updateLink
Future<CreateLinkResult> createLinkAsync(CreateLinkRequest createLinkRequest)
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.
createLinkRequest
- Future<CreateLinkResult> createLinkAsync(CreateLinkRequest createLinkRequest, AsyncHandler<CreateLinkRequest,CreateLinkResult> asyncHandler)
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.
createLinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<CreateSinkResult> createSinkAsync(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. 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.
createSinkRequest
- Future<CreateSinkResult> createSinkAsync(CreateSinkRequest createSinkRequest, AsyncHandler<CreateSinkRequest,CreateSinkResult> asyncHandler)
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.
createSinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<DeleteLinkResult> deleteLinkAsync(DeleteLinkRequest deleteLinkRequest)
Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account.
deleteLinkRequest
- Future<DeleteLinkResult> deleteLinkAsync(DeleteLinkRequest deleteLinkRequest, AsyncHandler<DeleteLinkRequest,DeleteLinkResult> asyncHandler)
Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account.
deleteLinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<DeleteSinkResult> deleteSinkAsync(DeleteSinkRequest deleteSinkRequest)
Deletes a sink. You must delete all links to a sink before you can delete that sink.
deleteSinkRequest
- Future<DeleteSinkResult> deleteSinkAsync(DeleteSinkRequest deleteSinkRequest, AsyncHandler<DeleteSinkRequest,DeleteSinkResult> asyncHandler)
Deletes a sink. You must delete all links to a sink before you can delete that sink.
deleteSinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<GetLinkResult> getLinkAsync(GetLinkRequest getLinkRequest)
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
getLinkRequest
- Future<GetLinkResult> getLinkAsync(GetLinkRequest getLinkRequest, AsyncHandler<GetLinkRequest,GetLinkResult> asyncHandler)
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
getLinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<GetSinkResult> getSinkAsync(GetSinkRequest getSinkRequest)
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.
getSinkRequest
- Future<GetSinkResult> getSinkAsync(GetSinkRequest getSinkRequest, AsyncHandler<GetSinkRequest,GetSinkResult> asyncHandler)
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.
getSinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<GetSinkPolicyResult> getSinkPolicyAsync(GetSinkPolicyRequest getSinkPolicyRequest)
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.
getSinkPolicyRequest
- Future<GetSinkPolicyResult> getSinkPolicyAsync(GetSinkPolicyRequest getSinkPolicyRequest, AsyncHandler<GetSinkPolicyRequest,GetSinkPolicyResult> asyncHandler)
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.
getSinkPolicyRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<ListAttachedLinksResult> listAttachedLinksAsync(ListAttachedLinksRequest listAttachedLinksRequest)
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.
listAttachedLinksRequest
- Future<ListAttachedLinksResult> listAttachedLinksAsync(ListAttachedLinksRequest listAttachedLinksRequest, AsyncHandler<ListAttachedLinksRequest,ListAttachedLinksResult> asyncHandler)
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.
listAttachedLinksRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<ListLinksResult> listLinksAsync(ListLinksRequest listLinksRequest)
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.
listLinksRequest
- Future<ListLinksResult> listLinksAsync(ListLinksRequest listLinksRequest, AsyncHandler<ListLinksRequest,ListLinksResult> asyncHandler)
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.
listLinksRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<ListSinksResult> listSinksAsync(ListSinksRequest listSinksRequest)
Use this operation in a monitoring account to return the list of sinks created in that account.
listSinksRequest
- Future<ListSinksResult> listSinksAsync(ListSinksRequest listSinksRequest, AsyncHandler<ListSinksRequest,ListSinksResult> asyncHandler)
Use this operation in a monitoring account to return the list of sinks created in that account.
listSinksRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest)
Displays the tags associated with a resource. Both sinks and links support tagging.
listTagsForResourceRequest
- Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Displays the tags associated with a resource. Both sinks and links support tagging.
listTagsForResourceRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<PutSinkPolicyResult> putSinkPolicyAsync(PutSinkPolicyRequest putSinkPolicyRequest)
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 three 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
See the examples in this section to see how to specify permitted source accounts and data types.
putSinkPolicyRequest
- Future<PutSinkPolicyResult> putSinkPolicyAsync(PutSinkPolicyRequest putSinkPolicyRequest, AsyncHandler<PutSinkPolicyRequest,PutSinkPolicyResult> asyncHandler)
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 three 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
See the examples in this section to see how to specify permitted source accounts and data types.
putSinkPolicyRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest)
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 TagResource
action 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:ResourceTag
permission. The iam:ResourceTag
permission does not allow you to
tag and untag links and sinks.
tagResourceRequest
- Future<TagResourceResult> tagResourceAsync(TagResourceRequest tagResourceRequest, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
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 TagResource
action 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:ResourceTag
permission. The iam:ResourceTag
permission does not allow you to
tag and untag links and sinks.
tagResourceRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest)
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:ResourceTag
permission. The iam:TagResource
permission does not allow you to
tag and untag links and sinks.
untagResourceRequest
- Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest untagResourceRequest, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
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:ResourceTag
permission. The iam:TagResource
permission does not allow you to
tag and untag links and sinks.
untagResourceRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Future<UpdateLinkResult> updateLinkAsync(UpdateLinkRequest updateLinkRequest)
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.
updateLinkRequest
- Future<UpdateLinkResult> updateLinkAsync(UpdateLinkRequest updateLinkRequest, AsyncHandler<UpdateLinkRequest,UpdateLinkResult> asyncHandler)
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.
updateLinkRequest
- asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.