Interface MacieAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.
Amazon Macie Classic has been discontinued and is no longer available.
A new Amazon Macie is now available with significant design improvements and additional features, at a lower price and in most Amazon Web Services Regions. We encourage you to take advantage of the new and improved features, and benefit from the reduced cost. To learn about features and pricing for the new Macie, see Amazon Macie. To learn how to use the new Macie, see the Amazon Macie User Guide.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionassociateMemberAccount
(Consumer<AssociateMemberAccountRequest.Builder> associateMemberAccountRequest) (Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.associateMemberAccount
(AssociateMemberAccountRequest associateMemberAccountRequest) (Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.associateS3Resources
(Consumer<AssociateS3ResourcesRequest.Builder> associateS3ResourcesRequest) (Discontinued) Associates specified S3 resources with Amazon Macie Classic for monitoring and data classification.associateS3Resources
(AssociateS3ResourcesRequest associateS3ResourcesRequest) (Discontinued) 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 aMacieAsyncClient
.static MacieAsyncClient
create()
Create aMacieAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.disassociateMemberAccount
(Consumer<DisassociateMemberAccountRequest.Builder> disassociateMemberAccountRequest) (Discontinued) Removes the specified member account from Amazon Macie Classic.disassociateMemberAccount
(DisassociateMemberAccountRequest disassociateMemberAccountRequest) (Discontinued) Removes the specified member account from Amazon Macie Classic.disassociateS3Resources
(Consumer<DisassociateS3ResourcesRequest.Builder> disassociateS3ResourcesRequest) (Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic.disassociateS3Resources
(DisassociateS3ResourcesRequest disassociateS3ResourcesRequest) (Discontinued) Removes specified S3 resources from being monitored by Amazon Macie Classic.listMemberAccounts
(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest) (Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.listMemberAccounts
(ListMemberAccountsRequest listMemberAccountsRequest) (Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.default ListMemberAccountsPublisher
listMemberAccountsPaginator
(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest) (Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.default ListMemberAccountsPublisher
listMemberAccountsPaginator
(ListMemberAccountsRequest listMemberAccountsRequest) (Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.default CompletableFuture
<ListS3ResourcesResponse> listS3Resources
(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest) (Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.default CompletableFuture
<ListS3ResourcesResponse> listS3Resources
(ListS3ResourcesRequest listS3ResourcesRequest) (Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.default ListS3ResourcesPublisher
listS3ResourcesPaginator
(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest) (Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.default ListS3ResourcesPublisher
listS3ResourcesPaginator
(ListS3ResourcesRequest listS3ResourcesRequest) (Discontinued) Lists all the S3 resources associated with Amazon Macie Classic.default MacieServiceClientConfiguration
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationupdateS3Resources
(Consumer<UpdateS3ResourcesRequest.Builder> updateS3ResourcesRequest) (Discontinued) Updates the classification types for the specified S3 resources.updateS3Resources
(UpdateS3ResourcesRequest updateS3ResourcesRequest) (Discontinued) Updates the classification types for the specified S3 resources.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
associateMemberAccount
default CompletableFuture<AssociateMemberAccountResponse> associateMemberAccount(AssociateMemberAccountRequest associateMemberAccountRequest) (Discontinued) Associates a specified Amazon Web Services account with Amazon Macie Classic as a member account.
- Parameters:
associateMemberAccountRequest
-- Returns:
- A Java Future containing the result of the AssociateMemberAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException (Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateMemberAccount
default CompletableFuture<AssociateMemberAccountResponse> associateMemberAccount(Consumer<AssociateMemberAccountRequest.Builder> associateMemberAccountRequest) (Discontinued) Associates a specified Amazon Web Services 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 viaAssociateMemberAccountRequest.builder()
- Parameters:
associateMemberAccountRequest
- AConsumer
that will call methods onAssociateMemberAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateMemberAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- LimitExceededException (Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateS3Resources
default CompletableFuture<AssociateS3ResourcesResponse> associateS3Resources(AssociateS3ResourcesRequest associateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
is specified, the action associates specified S3 resources with Macie Classic for the specified member account.- Parameters:
associateS3ResourcesRequest
-- Returns:
- A Java Future containing the result of the AssociateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- LimitExceededException (Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateS3Resources
default CompletableFuture<AssociateS3ResourcesResponse> associateS3Resources(Consumer<AssociateS3ResourcesRequest.Builder> associateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 viaAssociateS3ResourcesRequest.builder()
- Parameters:
associateS3ResourcesRequest
- AConsumer
that will call methods onAssociateS3ResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- LimitExceededException (Discontinued) The request was rejected because it attempted to create resources beyond the current Amazon Web Services account quotas. The error code describes the quota exceeded.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateMemberAccount
default CompletableFuture<DisassociateMemberAccountResponse> disassociateMemberAccount(DisassociateMemberAccountRequest disassociateMemberAccountRequest) (Discontinued) Removes the specified member account from Amazon Macie Classic.
- Parameters:
disassociateMemberAccountRequest
-- Returns:
- A Java Future containing the result of the DisassociateMemberAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateMemberAccount
default CompletableFuture<DisassociateMemberAccountResponse> disassociateMemberAccount(Consumer<DisassociateMemberAccountRequest.Builder> disassociateMemberAccountRequest) (Discontinued) 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 viaDisassociateMemberAccountRequest.builder()
- Parameters:
disassociateMemberAccountRequest
- AConsumer
that will call methods onDisassociateMemberAccountRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateMemberAccount operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateS3Resources
default CompletableFuture<DisassociateS3ResourcesResponse> disassociateS3Resources(DisassociateS3ResourcesRequest disassociateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
is specified, the action removes specified S3 resources from Macie Classic for the specified member account.- Parameters:
disassociateS3ResourcesRequest
-- Returns:
- A Java Future containing the result of the DisassociateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateS3Resources
default CompletableFuture<DisassociateS3ResourcesResponse> disassociateS3Resources(Consumer<DisassociateS3ResourcesRequest.Builder> disassociateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 viaDisassociateS3ResourcesRequest.builder()
- Parameters:
disassociateS3ResourcesRequest
- AConsumer
that will call methods onDisassociateS3ResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemberAccounts
default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(ListMemberAccountsRequest listMemberAccountsRequest) (Discontinued) Lists all Amazon Macie Classic member accounts for the current Macie Classic administrator account.
- Parameters:
listMemberAccountsRequest
-- Returns:
- A Java Future containing the result of the ListMemberAccounts operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalException (Discontinued) Internal server error.
- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemberAccounts
default CompletableFuture<ListMemberAccountsResponse> listMemberAccounts(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest) (Discontinued) 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 viaListMemberAccountsRequest.builder()
- Parameters:
listMemberAccountsRequest
- AConsumer
that will call methods onListMemberAccountsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListMemberAccounts operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalException (Discontinued) Internal server error.
- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemberAccountsPaginator
default ListMemberAccountsPublisher listMemberAccountsPaginator(ListMemberAccountsRequest listMemberAccountsRequest) (Discontinued) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listMemberAccountsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalException (Discontinued) Internal server error.
- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listMemberAccountsPaginator
default ListMemberAccountsPublisher listMemberAccountsPaginator(Consumer<ListMemberAccountsRequest.Builder> listMemberAccountsRequest) (Discontinued) 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 newSubscription
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 methodsoftware.amazon.awssdk.services.macie.paginators.ListMemberAccountsPublisher publisher = client.listMemberAccountsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListMemberAccountsRequest.builder()
- Parameters:
listMemberAccountsRequest
- AConsumer
that will call methods onListMemberAccountsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalException (Discontinued) Internal server error.
- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listS3Resources
default CompletableFuture<ListS3ResourcesResponse> listS3Resources(ListS3ResourcesRequest listS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.- Parameters:
listS3ResourcesRequest
-- Returns:
- A Java Future containing the result of the ListS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listS3Resources
default CompletableFuture<ListS3ResourcesResponse> listS3Resources(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 viaListS3ResourcesRequest.builder()
- Parameters:
listS3ResourcesRequest
- AConsumer
that will call methods onListS3ResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listS3ResourcesPaginator
default ListS3ResourcesPublisher listS3ResourcesPaginator(ListS3ResourcesRequest listS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 newSubscription
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 methodsoftware.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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.- Parameters:
listS3ResourcesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listS3ResourcesPaginator
default ListS3ResourcesPublisher listS3ResourcesPaginator(Consumer<ListS3ResourcesRequest.Builder> listS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 newSubscription
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 methodsoftware.amazon.awssdk.services.macie.paginators.ListS3ResourcesPublisher publisher = client.listS3ResourcesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
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) { //... }; });
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 viaListS3ResourcesRequest.builder()
- Parameters:
listS3ResourcesRequest
- AConsumer
that will call methods onListS3ResourcesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateS3Resources
default CompletableFuture<UpdateS3ResourcesResponse> updateS3Resources(UpdateS3ResourcesRequest updateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
is specified, the action updates the classification types of the S3 resources associated with Macie Classic for the specified member account.- Parameters:
updateS3ResourcesRequest
-- Returns:
- A Java Future containing the result of the UpdateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateS3Resources
default CompletableFuture<UpdateS3ResourcesResponse> updateS3Resources(Consumer<UpdateS3ResourcesRequest.Builder> updateS3ResourcesRequest) (Discontinued) 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. IfmemberAccountId
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 viaUpdateS3ResourcesRequest.builder()
- Parameters:
updateS3ResourcesRequest
- AConsumer
that will call methods onUpdateS3ResourcesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateS3Resources operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InvalidInputException (Discontinued) The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
- AccessDeniedException (Discontinued) You do not have required permissions to access the requested resource.
- InternalException (Discontinued) Internal server error.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MacieException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aMacieAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aMacieAsyncClient
.
-