@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSOAMAsync extends AbstractAWSOAM implements AWSOAMAsync
AWSOAMAsync
. Convenient method forms pass through to the corresponding overload
that takes a request object and an AsyncHandler
, which throws an UnsupportedOperationException
.ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<CreateLinkResult> |
createLinkAsync(CreateLinkRequest request)
Creates a link between a source account and a sink that you have created in a monitoring account.
|
Future<CreateLinkResult> |
createLinkAsync(CreateLinkRequest request,
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 request)
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 request,
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 request)
Deletes a link between a monitoring account sink and a source account.
|
Future<DeleteLinkResult> |
deleteLinkAsync(DeleteLinkRequest request,
AsyncHandler<DeleteLinkRequest,DeleteLinkResult> asyncHandler)
Deletes a link between a monitoring account sink and a source account.
|
Future<DeleteSinkResult> |
deleteSinkAsync(DeleteSinkRequest request)
Deletes a sink.
|
Future<DeleteSinkResult> |
deleteSinkAsync(DeleteSinkRequest request,
AsyncHandler<DeleteSinkRequest,DeleteSinkResult> asyncHandler)
Deletes a sink.
|
Future<GetLinkResult> |
getLinkAsync(GetLinkRequest request)
Returns complete information about one link.
|
Future<GetLinkResult> |
getLinkAsync(GetLinkRequest request,
AsyncHandler<GetLinkRequest,GetLinkResult> asyncHandler)
Returns complete information about one link.
|
Future<GetSinkResult> |
getSinkAsync(GetSinkRequest request)
Returns complete information about one monitoring account sink.
|
Future<GetSinkResult> |
getSinkAsync(GetSinkRequest request,
AsyncHandler<GetSinkRequest,GetSinkResult> asyncHandler)
Returns complete information about one monitoring account sink.
|
Future<GetSinkPolicyResult> |
getSinkPolicyAsync(GetSinkPolicyRequest request)
Returns the current sink policy attached to this sink.
|
Future<GetSinkPolicyResult> |
getSinkPolicyAsync(GetSinkPolicyRequest request,
AsyncHandler<GetSinkPolicyRequest,GetSinkPolicyResult> asyncHandler)
Returns the current sink policy attached to this sink.
|
Future<ListAttachedLinksResult> |
listAttachedLinksAsync(ListAttachedLinksRequest request)
Returns a list of source account links that are linked to this monitoring account sink.
|
Future<ListAttachedLinksResult> |
listAttachedLinksAsync(ListAttachedLinksRequest request,
AsyncHandler<ListAttachedLinksRequest,ListAttachedLinksResult> asyncHandler)
Returns a list of source account links that are linked to this monitoring account sink.
|
Future<ListLinksResult> |
listLinksAsync(ListLinksRequest request)
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 request,
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 request)
Use this operation in a monitoring account to return the list of sinks created in that account.
|
Future<ListSinksResult> |
listSinksAsync(ListSinksRequest request,
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 request)
Displays the tags associated with a resource.
|
Future<ListTagsForResourceResult> |
listTagsForResourceAsync(ListTagsForResourceRequest request,
AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
Displays the tags associated with a resource.
|
Future<PutSinkPolicyResult> |
putSinkPolicyAsync(PutSinkPolicyRequest request)
Creates or updates the resource policy that grants permissions to source accounts to link to the monitoring
account sink.
|
Future<PutSinkPolicyResult> |
putSinkPolicyAsync(PutSinkPolicyRequest request,
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 request)
Assigns one or more tags (key-value pairs) to the specified resource.
|
Future<TagResourceResult> |
tagResourceAsync(TagResourceRequest request,
AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
Assigns one or more tags (key-value pairs) to the specified resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request)
Removes one or more tags from the specified resource.
|
Future<UntagResourceResult> |
untagResourceAsync(UntagResourceRequest request,
AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
Removes one or more tags from the specified resource.
|
Future<UpdateLinkResult> |
updateLinkAsync(UpdateLinkRequest request)
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 request,
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createLink, createSink, deleteLink, deleteSink, getCachedResponseMetadata, getLink, getSink, getSinkPolicy, listAttachedLinks, listLinks, listSinks, listTagsForResource, putSinkPolicy, shutdown, tagResource, untagResource, updateLink
public Future<CreateLinkResult> createLinkAsync(CreateLinkRequest request)
AWSOAMAsync
Creates a link between a source account and a sink that you have created in a 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.
createLinkAsync
in interface AWSOAMAsync
public Future<CreateLinkResult> createLinkAsync(CreateLinkRequest request, AsyncHandler<CreateLinkRequest,CreateLinkResult> asyncHandler)
AWSOAMAsync
Creates a link between a source account and a sink that you have created in a 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.
createLinkAsync
in interface AWSOAMAsync
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.public Future<CreateSinkResult> createSinkAsync(CreateSinkRequest request)
AWSOAMAsync
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. If you delete a sink, you can then create a new one in that account.
createSinkAsync
in interface AWSOAMAsync
public Future<CreateSinkResult> createSinkAsync(CreateSinkRequest request, AsyncHandler<CreateSinkRequest,CreateSinkResult> asyncHandler)
AWSOAMAsync
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. If you delete a sink, you can then create a new one in that account.
createSinkAsync
in interface AWSOAMAsync
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.public Future<DeleteLinkResult> deleteLinkAsync(DeleteLinkRequest request)
AWSOAMAsync
Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account.
deleteLinkAsync
in interface AWSOAMAsync
public Future<DeleteLinkResult> deleteLinkAsync(DeleteLinkRequest request, AsyncHandler<DeleteLinkRequest,DeleteLinkResult> asyncHandler)
AWSOAMAsync
Deletes a link between a monitoring account sink and a source account. You must run this operation in the source account.
deleteLinkAsync
in interface AWSOAMAsync
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.public Future<DeleteSinkResult> deleteSinkAsync(DeleteSinkRequest request)
AWSOAMAsync
Deletes a sink. You must delete all links to a sink before you can delete that sink.
deleteSinkAsync
in interface AWSOAMAsync
public Future<DeleteSinkResult> deleteSinkAsync(DeleteSinkRequest request, AsyncHandler<DeleteSinkRequest,DeleteSinkResult> asyncHandler)
AWSOAMAsync
Deletes a sink. You must delete all links to a sink before you can delete that sink.
deleteSinkAsync
in interface AWSOAMAsync
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.public Future<GetLinkResult> getLinkAsync(GetLinkRequest request)
AWSOAMAsync
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
getLinkAsync
in interface AWSOAMAsync
public Future<GetLinkResult> getLinkAsync(GetLinkRequest request, AsyncHandler<GetLinkRequest,GetLinkResult> asyncHandler)
AWSOAMAsync
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
getLinkAsync
in interface AWSOAMAsync
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.public Future<GetSinkResult> getSinkAsync(GetSinkRequest request)
AWSOAMAsync
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.
getSinkAsync
in interface AWSOAMAsync
public Future<GetSinkResult> getSinkAsync(GetSinkRequest request, AsyncHandler<GetSinkRequest,GetSinkResult> asyncHandler)
AWSOAMAsync
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.
getSinkAsync
in interface AWSOAMAsync
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.public Future<GetSinkPolicyResult> getSinkPolicyAsync(GetSinkPolicyRequest request)
AWSOAMAsync
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.
getSinkPolicyAsync
in interface AWSOAMAsync
public Future<GetSinkPolicyResult> getSinkPolicyAsync(GetSinkPolicyRequest request, AsyncHandler<GetSinkPolicyRequest,GetSinkPolicyResult> asyncHandler)
AWSOAMAsync
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.
getSinkPolicyAsync
in interface AWSOAMAsync
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.public Future<ListAttachedLinksResult> listAttachedLinksAsync(ListAttachedLinksRequest request)
AWSOAMAsync
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.
listAttachedLinksAsync
in interface AWSOAMAsync
public Future<ListAttachedLinksResult> listAttachedLinksAsync(ListAttachedLinksRequest request, AsyncHandler<ListAttachedLinksRequest,ListAttachedLinksResult> asyncHandler)
AWSOAMAsync
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.
listAttachedLinksAsync
in interface AWSOAMAsync
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.public Future<ListLinksResult> listLinksAsync(ListLinksRequest request)
AWSOAMAsync
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.
listLinksAsync
in interface AWSOAMAsync
public Future<ListLinksResult> listLinksAsync(ListLinksRequest request, AsyncHandler<ListLinksRequest,ListLinksResult> asyncHandler)
AWSOAMAsync
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.
listLinksAsync
in interface AWSOAMAsync
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.public Future<ListSinksResult> listSinksAsync(ListSinksRequest request)
AWSOAMAsync
Use this operation in a monitoring account to return the list of sinks created in that account.
listSinksAsync
in interface AWSOAMAsync
public Future<ListSinksResult> listSinksAsync(ListSinksRequest request, AsyncHandler<ListSinksRequest,ListSinksResult> asyncHandler)
AWSOAMAsync
Use this operation in a monitoring account to return the list of sinks created in that account.
listSinksAsync
in interface AWSOAMAsync
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.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSOAMAsync
Displays the tags associated with a resource. Both sinks and links support tagging.
listTagsForResourceAsync
in interface AWSOAMAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSOAMAsync
Displays the tags associated with a resource. Both sinks and links support tagging.
listTagsForResourceAsync
in interface AWSOAMAsync
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.public Future<PutSinkPolicyResult> putSinkPolicyAsync(PutSinkPolicyRequest request)
AWSOAMAsync
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.
putSinkPolicyAsync
in interface AWSOAMAsync
public Future<PutSinkPolicyResult> putSinkPolicyAsync(PutSinkPolicyRequest request, AsyncHandler<PutSinkPolicyRequest,PutSinkPolicyResult> asyncHandler)
AWSOAMAsync
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.
putSinkPolicyAsync
in interface AWSOAMAsync
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.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSOAMAsync
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.
tagResourceAsync
in interface AWSOAMAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSOAMAsync
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.
tagResourceAsync
in interface AWSOAMAsync
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.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSOAMAsync
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.
untagResourceAsync
in interface AWSOAMAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSOAMAsync
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.
untagResourceAsync
in interface AWSOAMAsync
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.public Future<UpdateLinkResult> updateLinkAsync(UpdateLinkRequest request)
AWSOAMAsync
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.
To update the list of tags associated with the sink, use TagResource.
updateLinkAsync
in interface AWSOAMAsync
public Future<UpdateLinkResult> updateLinkAsync(UpdateLinkRequest request, AsyncHandler<UpdateLinkRequest,UpdateLinkResult> asyncHandler)
AWSOAMAsync
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.
To update the list of tags associated with the sink, use TagResource.
updateLinkAsync
in interface AWSOAMAsync
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.