@Generated(value="software.amazon.awssdk:codegen") @ThreadSafe public interface MacieAsyncClient extends SdkClient
builder()
method.
Amazon Macie Classic is a security service that uses machine learning to automatically discover, classify, and protect sensitive data in AWS. Macie Classic recognizes sensitive data such as personally identifiable information (PII) or intellectual property, and provides you with dashboards and alerts that give visibility into how this data is being accessed or moved. For more information, see the Amazon Macie Classic User Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_METADATA_ID
Value for looking up the service's metadata from the
ServiceMetadataProvider. |
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<AssociateMemberAccountResponse> |
associateMemberAccount(AssociateMemberAccountRequest associateMemberAccountRequest)
Associates a specified AWS account with Amazon Macie Classic as a member account.
|
default CompletableFuture<AssociateMemberAccountResponse> |
associateMemberAccount(Consumer<AssociateMemberAccountRequest.Builder> associateMemberAccountRequest)
Associates a specified AWS account with Amazon Macie Classic as a member account.
|
default CompletableFuture<AssociateS3ResourcesResponse> |
associateS3Resources(AssociateS3ResourcesRequest associateS3ResourcesRequest)
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.
|
default CompletableFuture<AssociateS3ResourcesResponse> |
associateS3Resources(Consumer<AssociateS3ResourcesRequest.Builder> associateS3ResourcesRequest)
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.
|
static MacieAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
MacieAsyncClient. |
static MacieAsyncClient |
create()
Create a
MacieAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<DisassociateMemberAccountResponse> |
disassociateMemberAccount(Consumer<DisassociateMemberAccountRequest.Builder> disassociateMemberAccountRequest)
Removes the specified member account from Amazon Macie Classic.
|
default CompletableFuture<DisassociateMemberAccountResponse> |
disassociateMemberAccount(DisassociateMemberAccountRequest disassociateMemberAccountRequest)
Removes the specified member account from Amazon Macie Classic.
|
default CompletableFuture<DisassociateS3ResourcesResponse> |
disassociateS3Resources(Consumer<DisassociateS3ResourcesRequest.Builder> disassociateS3ResourcesRequest)
Removes specified S3 resources from being monitored by Amazon Macie Classic.
|
default CompletableFuture<DisassociateS3ResourcesResponse> |
disassociateS3Resources(DisassociateS3ResourcesRequest disassociateS3ResourcesRequest)
Removes specified S3 resources from being monitored by Amazon Macie Classic.
|
default CompletableFuture<ListMemberAccountsResponse> |
listMemberAccounts(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
|
default CompletableFuture<ListMemberAccountsResponse> |
listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
|
default ListMemberAccountsPublisher |
listMemberAccountsPaginator(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
|
default ListMemberAccountsPublisher |
listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
|
default CompletableFuture<ListS3ResourcesResponse> |
listS3Resources(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic.
|
default CompletableFuture<ListS3ResourcesResponse> |
listS3Resources(ListS3ResourcesRequest listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic.
|
default ListS3ResourcesPublisher |
listS3ResourcesPaginator(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic.
|
default ListS3ResourcesPublisher |
listS3ResourcesPaginator(ListS3ResourcesRequest listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic.
|
default CompletableFuture<UpdateS3ResourcesResponse> |
updateS3Resources(Consumer<UpdateS3ResourcesRequest.Builder> updateS3ResourcesRequest)
Updates the classification types for the specified S3 resources.
|
default CompletableFuture<UpdateS3ResourcesResponse> |
updateS3Resources(UpdateS3ResourcesRequest updateS3ResourcesRequest)
Updates the classification types for the specified S3 resources.
|
serviceNameclosestatic final String SERVICE_NAME
static final String SERVICE_METADATA_ID
ServiceMetadataProvider.static MacieAsyncClient create()
MacieAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static MacieAsyncClientBuilder builder()
MacieAsyncClient.default CompletableFuture<AssociateMemberAccountResponse> associateMemberAccount(AssociateMemberAccountRequest associateMemberAccountRequest)
Associates a specified AWS account with Amazon Macie Classic as a member account.
associateMemberAccountRequest - default CompletableFuture<AssociateMemberAccountResponse> associateMemberAccount(Consumer<AssociateMemberAccountRequest.Builder> associateMemberAccountRequest)
Associates a specified AWS account with Amazon Macie Classic as a member account.
This is a convenience which creates an instance of the AssociateMemberAccountRequest.Builder avoiding the
need to create one manually via AssociateMemberAccountRequest.builder()
associateMemberAccountRequest - A Consumer that will call methods on AssociateMemberAccountRequest.Builder to create a
request.default CompletableFuture<AssociateS3ResourcesResponse> associateS3Resources(AssociateS3ResourcesRequest associateS3ResourcesRequest)
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action associates specified S3 resources with Macie Classic for the specified member account.
associateS3ResourcesRequest - default CompletableFuture<AssociateS3ResourcesResponse> associateS3Resources(Consumer<AssociateS3ResourcesRequest.Builder> associateS3ResourcesRequest)
Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification. If memberAccountId isn't specified, the action associates specified S3 resources with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action associates specified S3 resources with Macie Classic for the specified member account.
This is a convenience which creates an instance of the AssociateS3ResourcesRequest.Builder avoiding the
need to create one manually via AssociateS3ResourcesRequest.builder()
associateS3ResourcesRequest - A Consumer that will call methods on AssociateS3ResourcesRequest.Builder to create a
request.default CompletableFuture<DisassociateMemberAccountResponse> disassociateMemberAccount(DisassociateMemberAccountRequest disassociateMemberAccountRequest)
Removes the specified member account from Amazon Macie Classic.
disassociateMemberAccountRequest - default CompletableFuture<DisassociateMemberAccountResponse> disassociateMemberAccount(Consumer<DisassociateMemberAccountRequest.Builder> disassociateMemberAccountRequest)
Removes the specified member account from Amazon Macie Classic.
This is a convenience which creates an instance of the DisassociateMemberAccountRequest.Builder avoiding
the need to create one manually via DisassociateMemberAccountRequest.builder()
disassociateMemberAccountRequest - A Consumer that will call methods on DisassociateMemberAccountRequest.Builder to create a
request.default CompletableFuture<DisassociateS3ResourcesResponse> disassociateS3Resources(DisassociateS3ResourcesRequest disassociateS3ResourcesRequest)
Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId isn't specified, the action removes specified S3 resources from Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action removes specified S3 resources from Macie Classic for the specified member account.
disassociateS3ResourcesRequest - default CompletableFuture<DisassociateS3ResourcesResponse> disassociateS3Resources(Consumer<DisassociateS3ResourcesRequest.Builder> disassociateS3ResourcesRequest)
Removes specified S3 resources from being monitored by Amazon Macie Classic. If memberAccountId isn't specified, the action removes specified S3 resources from Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action removes specified S3 resources from Macie Classic for the specified member account.
This is a convenience which creates an instance of the DisassociateS3ResourcesRequest.Builder avoiding
the need to create one manually via DisassociateS3ResourcesRequest.builder()
disassociateS3ResourcesRequest - A Consumer that will call methods on DisassociateS3ResourcesRequest.Builder to create a
request.default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
listMemberAccountsRequest - default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
This is a convenience which creates an instance of the ListMemberAccountsRequest.Builder avoiding the
need to create one manually via ListMemberAccountsRequest.builder()
listMemberAccountsRequest - A Consumer that will call methods on ListMemberAccountsRequest.Builder to create a
request.default ListMemberAccountsPublisher listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
This is a variant of
listMemberAccounts(software.amazon.awssdk.services.macie.model.ListMemberAccountsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.macie.model.ListMemberAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.macie.model.ListMemberAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listMemberAccounts(software.amazon.awssdk.services.macie.model.ListMemberAccountsRequest) operation.
listMemberAccountsRequest - default ListMemberAccountsPublisher listMemberAccountsPaginator(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest)
Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
This is a variant of
listMemberAccounts(software.amazon.awssdk.services.macie.model.ListMemberAccountsRequest) operation. The
return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will
internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.macie.model.ListMemberAccountsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.macie.model.ListMemberAccountsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listMemberAccounts(software.amazon.awssdk.services.macie.model.ListMemberAccountsRequest) operation.
This is a convenience which creates an instance of the ListMemberAccountsRequest.Builder avoiding the
need to create one manually via ListMemberAccountsRequest.builder()
listMemberAccountsRequest - A Consumer that will call methods on ListMemberAccountsRequest.Builder to create a
request.default CompletableFuture<ListS3ResourcesResponse> listS3Resources(ListS3ResourcesRequest listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
listS3ResourcesRequest - default CompletableFuture<ListS3ResourcesResponse> listS3Resources(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
This is a convenience which creates an instance of the ListS3ResourcesRequest.Builder avoiding the need
to create one manually via ListS3ResourcesRequest.builder()
listS3ResourcesRequest - A Consumer that will call methods on ListS3ResourcesRequest.Builder to create a request.default ListS3ResourcesPublisher listS3ResourcesPaginator(ListS3ResourcesRequest listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
This is a variant of listS3Resources(software.amazon.awssdk.services.macie.model.ListS3ResourcesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.macie.model.ListS3ResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.macie.model.ListS3ResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listS3Resources(software.amazon.awssdk.services.macie.model.ListS3ResourcesRequest) operation.
listS3ResourcesRequest - default ListS3ResourcesPublisher listS3ResourcesPaginator(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest)
Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.
This is a variant of listS3Resources(software.amazon.awssdk.services.macie.model.ListS3ResourcesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe
method will result in a new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.macie.model.ListS3ResourcesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.macie.model.ListS3ResourcesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
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
listS3Resources(software.amazon.awssdk.services.macie.model.ListS3ResourcesRequest) operation.
This is a convenience which creates an instance of the ListS3ResourcesRequest.Builder avoiding the need
to create one manually via ListS3ResourcesRequest.builder()
listS3ResourcesRequest - A Consumer that will call methods on ListS3ResourcesRequest.Builder to create a request.default CompletableFuture<UpdateS3ResourcesResponse> updateS3Resources(UpdateS3ResourcesRequest updateS3ResourcesRequest)
Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.
updateS3ResourcesRequest - default CompletableFuture<UpdateS3ResourcesResponse> updateS3Resources(Consumer<UpdateS3ResourcesRequest.Builder> updateS3ResourcesRequest)
Updates the classification types for the specified S3 resources. If memberAccountId isn't specified, the action updates the classification types of the S3 resources associated with Amazon Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.
This is a convenience which creates an instance of the UpdateS3ResourcesRequest.Builder avoiding the need
to create one manually via UpdateS3ResourcesRequest.builder()
updateS3ResourcesRequest - A Consumer that will call methods on UpdateS3ResourcesRequest.Builder to create a request.Copyright © 2021. All rights reserved.