Interface AmpAsyncClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface AmpAsyncClient extends AwsClient
Service client for accessing Amazon Prometheus Service asynchronously. This can be created using the staticbuilder()method.Amazon Managed Service for Prometheus
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createAlertManagerDefinition
default CompletableFuture<CreateAlertManagerDefinitionResponse> createAlertManagerDefinition(CreateAlertManagerDefinitionRequest createAlertManagerDefinitionRequest)
Create an alert manager definition.
- Parameters:
createAlertManagerDefinitionRequest- Represents the input of a CreateAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the CreateAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createAlertManagerDefinition
default CompletableFuture<CreateAlertManagerDefinitionResponse> createAlertManagerDefinition(Consumer<CreateAlertManagerDefinitionRequest.Builder> createAlertManagerDefinitionRequest)
Create an alert manager definition.
This is a convenience which creates an instance of the
CreateAlertManagerDefinitionRequest.Builderavoiding the need to create one manually viaCreateAlertManagerDefinitionRequest.builder()- Parameters:
createAlertManagerDefinitionRequest- AConsumerthat will call methods onCreateAlertManagerDefinitionRequest.Builderto create a request. Represents the input of a CreateAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the CreateAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createLoggingConfiguration
default CompletableFuture<CreateLoggingConfigurationResponse> createLoggingConfiguration(CreateLoggingConfigurationRequest createLoggingConfigurationRequest)
Create logging configuration.
- Parameters:
createLoggingConfigurationRequest- Represents the input of a CreateLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the CreateLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createLoggingConfiguration
default CompletableFuture<CreateLoggingConfigurationResponse> createLoggingConfiguration(Consumer<CreateLoggingConfigurationRequest.Builder> createLoggingConfigurationRequest)
Create logging configuration.
This is a convenience which creates an instance of the
CreateLoggingConfigurationRequest.Builderavoiding the need to create one manually viaCreateLoggingConfigurationRequest.builder()- Parameters:
createLoggingConfigurationRequest- AConsumerthat will call methods onCreateLoggingConfigurationRequest.Builderto create a request. Represents the input of a CreateLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the CreateLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createRuleGroupsNamespace
default CompletableFuture<CreateRuleGroupsNamespaceResponse> createRuleGroupsNamespace(CreateRuleGroupsNamespaceRequest createRuleGroupsNamespaceRequest)
Create a rule group namespace.
- Parameters:
createRuleGroupsNamespaceRequest- Represents the input of a CreateRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the CreateRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createRuleGroupsNamespace
default CompletableFuture<CreateRuleGroupsNamespaceResponse> createRuleGroupsNamespace(Consumer<CreateRuleGroupsNamespaceRequest.Builder> createRuleGroupsNamespaceRequest)
Create a rule group namespace.
This is a convenience which creates an instance of the
CreateRuleGroupsNamespaceRequest.Builderavoiding the need to create one manually viaCreateRuleGroupsNamespaceRequest.builder()- Parameters:
createRuleGroupsNamespaceRequest- AConsumerthat will call methods onCreateRuleGroupsNamespaceRequest.Builderto create a request. Represents the input of a CreateRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the CreateRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createWorkspace
default CompletableFuture<CreateWorkspaceResponse> createWorkspace(CreateWorkspaceRequest createWorkspaceRequest)
Creates a new AMP workspace.
- Parameters:
createWorkspaceRequest- Represents the input of a CreateWorkspace operation.- Returns:
- A Java Future containing the result of the CreateWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createWorkspace
default CompletableFuture<CreateWorkspaceResponse> createWorkspace(Consumer<CreateWorkspaceRequest.Builder> createWorkspaceRequest)
Creates a new AMP workspace.
This is a convenience which creates an instance of the
CreateWorkspaceRequest.Builderavoiding the need to create one manually viaCreateWorkspaceRequest.builder()- Parameters:
createWorkspaceRequest- AConsumerthat will call methods onCreateWorkspaceRequest.Builderto create a request. Represents the input of a CreateWorkspace operation.- Returns:
- A Java Future containing the result of the CreateWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteAlertManagerDefinition
default CompletableFuture<DeleteAlertManagerDefinitionResponse> deleteAlertManagerDefinition(DeleteAlertManagerDefinitionRequest deleteAlertManagerDefinitionRequest)
Deletes an alert manager definition.
- Parameters:
deleteAlertManagerDefinitionRequest- Represents the input of a DeleteAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the DeleteAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteAlertManagerDefinition
default CompletableFuture<DeleteAlertManagerDefinitionResponse> deleteAlertManagerDefinition(Consumer<DeleteAlertManagerDefinitionRequest.Builder> deleteAlertManagerDefinitionRequest)
Deletes an alert manager definition.
This is a convenience which creates an instance of the
DeleteAlertManagerDefinitionRequest.Builderavoiding the need to create one manually viaDeleteAlertManagerDefinitionRequest.builder()- Parameters:
deleteAlertManagerDefinitionRequest- AConsumerthat will call methods onDeleteAlertManagerDefinitionRequest.Builderto create a request. Represents the input of a DeleteAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the DeleteAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteLoggingConfiguration
default CompletableFuture<DeleteLoggingConfigurationResponse> deleteLoggingConfiguration(DeleteLoggingConfigurationRequest deleteLoggingConfigurationRequest)
Delete logging configuration.
- Parameters:
deleteLoggingConfigurationRequest- Represents the input of a DeleteLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the DeleteLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteLoggingConfiguration
default CompletableFuture<DeleteLoggingConfigurationResponse> deleteLoggingConfiguration(Consumer<DeleteLoggingConfigurationRequest.Builder> deleteLoggingConfigurationRequest)
Delete logging configuration.
This is a convenience which creates an instance of the
DeleteLoggingConfigurationRequest.Builderavoiding the need to create one manually viaDeleteLoggingConfigurationRequest.builder()- Parameters:
deleteLoggingConfigurationRequest- AConsumerthat will call methods onDeleteLoggingConfigurationRequest.Builderto create a request. Represents the input of a DeleteLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the DeleteLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteRuleGroupsNamespace
default CompletableFuture<DeleteRuleGroupsNamespaceResponse> deleteRuleGroupsNamespace(DeleteRuleGroupsNamespaceRequest deleteRuleGroupsNamespaceRequest)
Delete a rule groups namespace.
- Parameters:
deleteRuleGroupsNamespaceRequest- Represents the input of a DeleteRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the DeleteRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteRuleGroupsNamespace
default CompletableFuture<DeleteRuleGroupsNamespaceResponse> deleteRuleGroupsNamespace(Consumer<DeleteRuleGroupsNamespaceRequest.Builder> deleteRuleGroupsNamespaceRequest)
Delete a rule groups namespace.
This is a convenience which creates an instance of the
DeleteRuleGroupsNamespaceRequest.Builderavoiding the need to create one manually viaDeleteRuleGroupsNamespaceRequest.builder()- Parameters:
deleteRuleGroupsNamespaceRequest- AConsumerthat will call methods onDeleteRuleGroupsNamespaceRequest.Builderto create a request. Represents the input of a DeleteRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the DeleteRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteWorkspace
default CompletableFuture<DeleteWorkspaceResponse> deleteWorkspace(DeleteWorkspaceRequest deleteWorkspaceRequest)
Deletes an AMP workspace.
- Parameters:
deleteWorkspaceRequest- Represents the input of a DeleteWorkspace operation.- Returns:
- A Java Future containing the result of the DeleteWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteWorkspace
default CompletableFuture<DeleteWorkspaceResponse> deleteWorkspace(Consumer<DeleteWorkspaceRequest.Builder> deleteWorkspaceRequest)
Deletes an AMP workspace.
This is a convenience which creates an instance of the
DeleteWorkspaceRequest.Builderavoiding the need to create one manually viaDeleteWorkspaceRequest.builder()- Parameters:
deleteWorkspaceRequest- AConsumerthat will call methods onDeleteWorkspaceRequest.Builderto create a request. Represents the input of a DeleteWorkspace operation.- Returns:
- A Java Future containing the result of the DeleteWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeAlertManagerDefinition
default CompletableFuture<DescribeAlertManagerDefinitionResponse> describeAlertManagerDefinition(DescribeAlertManagerDefinitionRequest describeAlertManagerDefinitionRequest)
Describes an alert manager definition.
- Parameters:
describeAlertManagerDefinitionRequest- Represents the input of a DescribeAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the DescribeAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeAlertManagerDefinition
default CompletableFuture<DescribeAlertManagerDefinitionResponse> describeAlertManagerDefinition(Consumer<DescribeAlertManagerDefinitionRequest.Builder> describeAlertManagerDefinitionRequest)
Describes an alert manager definition.
This is a convenience which creates an instance of the
DescribeAlertManagerDefinitionRequest.Builderavoiding the need to create one manually viaDescribeAlertManagerDefinitionRequest.builder()- Parameters:
describeAlertManagerDefinitionRequest- AConsumerthat will call methods onDescribeAlertManagerDefinitionRequest.Builderto create a request. Represents the input of a DescribeAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the DescribeAlertManagerDefinition operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeLoggingConfiguration
default CompletableFuture<DescribeLoggingConfigurationResponse> describeLoggingConfiguration(DescribeLoggingConfigurationRequest describeLoggingConfigurationRequest)
Describes logging configuration.
- Parameters:
describeLoggingConfigurationRequest- Represents the input of a DescribeLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the DescribeLoggingConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeLoggingConfiguration
default CompletableFuture<DescribeLoggingConfigurationResponse> describeLoggingConfiguration(Consumer<DescribeLoggingConfigurationRequest.Builder> describeLoggingConfigurationRequest)
Describes logging configuration.
This is a convenience which creates an instance of the
DescribeLoggingConfigurationRequest.Builderavoiding the need to create one manually viaDescribeLoggingConfigurationRequest.builder()- Parameters:
describeLoggingConfigurationRequest- AConsumerthat will call methods onDescribeLoggingConfigurationRequest.Builderto create a request. Represents the input of a DescribeLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the DescribeLoggingConfiguration operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeRuleGroupsNamespace
default CompletableFuture<DescribeRuleGroupsNamespaceResponse> describeRuleGroupsNamespace(DescribeRuleGroupsNamespaceRequest describeRuleGroupsNamespaceRequest)
Describe a rule groups namespace.
- Parameters:
describeRuleGroupsNamespaceRequest- Represents the input of a DescribeRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the DescribeRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeRuleGroupsNamespace
default CompletableFuture<DescribeRuleGroupsNamespaceResponse> describeRuleGroupsNamespace(Consumer<DescribeRuleGroupsNamespaceRequest.Builder> describeRuleGroupsNamespaceRequest)
Describe a rule groups namespace.
This is a convenience which creates an instance of the
DescribeRuleGroupsNamespaceRequest.Builderavoiding the need to create one manually viaDescribeRuleGroupsNamespaceRequest.builder()- Parameters:
describeRuleGroupsNamespaceRequest- AConsumerthat will call methods onDescribeRuleGroupsNamespaceRequest.Builderto create a request. Represents the input of a DescribeRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the DescribeRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeWorkspace
default CompletableFuture<DescribeWorkspaceResponse> describeWorkspace(DescribeWorkspaceRequest describeWorkspaceRequest)
Describes an existing AMP workspace.
- Parameters:
describeWorkspaceRequest- Represents the input of a DescribeWorkspace operation.- Returns:
- A Java Future containing the result of the DescribeWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeWorkspace
default CompletableFuture<DescribeWorkspaceResponse> describeWorkspace(Consumer<DescribeWorkspaceRequest.Builder> describeWorkspaceRequest)
Describes an existing AMP workspace.
This is a convenience which creates an instance of the
DescribeWorkspaceRequest.Builderavoiding the need to create one manually viaDescribeWorkspaceRequest.builder()- Parameters:
describeWorkspaceRequest- AConsumerthat will call methods onDescribeWorkspaceRequest.Builderto create a request. Represents the input of a DescribeWorkspace operation.- Returns:
- A Java Future containing the result of the DescribeWorkspace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listRuleGroupsNamespaces
default CompletableFuture<ListRuleGroupsNamespacesResponse> listRuleGroupsNamespaces(ListRuleGroupsNamespacesRequest listRuleGroupsNamespacesRequest)
Lists rule groups namespaces.
- Parameters:
listRuleGroupsNamespacesRequest- Represents the input of a ListRuleGroupsNamespaces operation.- Returns:
- A Java Future containing the result of the ListRuleGroupsNamespaces operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listRuleGroupsNamespaces
default CompletableFuture<ListRuleGroupsNamespacesResponse> listRuleGroupsNamespaces(Consumer<ListRuleGroupsNamespacesRequest.Builder> listRuleGroupsNamespacesRequest)
Lists rule groups namespaces.
This is a convenience which creates an instance of the
ListRuleGroupsNamespacesRequest.Builderavoiding the need to create one manually viaListRuleGroupsNamespacesRequest.builder()- Parameters:
listRuleGroupsNamespacesRequest- AConsumerthat will call methods onListRuleGroupsNamespacesRequest.Builderto create a request. Represents the input of a ListRuleGroupsNamespaces operation.- Returns:
- A Java Future containing the result of the ListRuleGroupsNamespaces operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listRuleGroupsNamespacesPaginator
default ListRuleGroupsNamespacesPublisher listRuleGroupsNamespacesPaginator(ListRuleGroupsNamespacesRequest listRuleGroupsNamespacesRequest)
Lists rule groups namespaces.
This is a variant of
listRuleGroupsNamespaces(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.amp.paginators.ListRuleGroupsNamespacesPublisher publisher = client.listRuleGroupsNamespacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.amp.paginators.ListRuleGroupsNamespacesPublisher publisher = client.listRuleGroupsNamespacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesResponse 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
listRuleGroupsNamespaces(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesRequest)operation.- Parameters:
listRuleGroupsNamespacesRequest- Represents the input of a ListRuleGroupsNamespaces operation.- 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.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listRuleGroupsNamespacesPaginator
default ListRuleGroupsNamespacesPublisher listRuleGroupsNamespacesPaginator(Consumer<ListRuleGroupsNamespacesRequest.Builder> listRuleGroupsNamespacesRequest)
Lists rule groups namespaces.
This is a variant of
listRuleGroupsNamespaces(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.amp.paginators.ListRuleGroupsNamespacesPublisher publisher = client.listRuleGroupsNamespacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.amp.paginators.ListRuleGroupsNamespacesPublisher publisher = client.listRuleGroupsNamespacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesResponse 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
listRuleGroupsNamespaces(software.amazon.awssdk.services.amp.model.ListRuleGroupsNamespacesRequest)operation.This is a convenience which creates an instance of the
ListRuleGroupsNamespacesRequest.Builderavoiding the need to create one manually viaListRuleGroupsNamespacesRequest.builder()- Parameters:
listRuleGroupsNamespacesRequest- AConsumerthat will call methods onListRuleGroupsNamespacesRequest.Builderto create a request. Represents the input of a ListRuleGroupsNamespaces operation.- 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.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Lists the tags you have assigned to the resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Lists the tags you have assigned to the resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listWorkspaces
default CompletableFuture<ListWorkspacesResponse> listWorkspaces(ListWorkspacesRequest listWorkspacesRequest)
Lists all AMP workspaces, including workspaces being created or deleted.
- Parameters:
listWorkspacesRequest- Represents the input of a ListWorkspaces operation.- Returns:
- A Java Future containing the result of the ListWorkspaces operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listWorkspaces
default CompletableFuture<ListWorkspacesResponse> listWorkspaces(Consumer<ListWorkspacesRequest.Builder> listWorkspacesRequest)
Lists all AMP workspaces, including workspaces being created or deleted.
This is a convenience which creates an instance of the
ListWorkspacesRequest.Builderavoiding the need to create one manually viaListWorkspacesRequest.builder()- Parameters:
listWorkspacesRequest- AConsumerthat will call methods onListWorkspacesRequest.Builderto create a request. Represents the input of a ListWorkspaces operation.- Returns:
- A Java Future containing the result of the ListWorkspaces operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listWorkspacesPaginator
default ListWorkspacesPublisher listWorkspacesPaginator(ListWorkspacesRequest listWorkspacesRequest)
Lists all AMP workspaces, including workspaces being created or deleted.
This is a variant of
listWorkspaces(software.amazon.awssdk.services.amp.model.ListWorkspacesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.amp.paginators.ListWorkspacesPublisher publisher = client.listWorkspacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.amp.paginators.ListWorkspacesPublisher publisher = client.listWorkspacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.amp.model.ListWorkspacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.amp.model.ListWorkspacesResponse 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
listWorkspaces(software.amazon.awssdk.services.amp.model.ListWorkspacesRequest)operation.- Parameters:
listWorkspacesRequest- Represents the input of a ListWorkspaces operation.- 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.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listWorkspacesPaginator
default ListWorkspacesPublisher listWorkspacesPaginator(Consumer<ListWorkspacesRequest.Builder> listWorkspacesRequest)
Lists all AMP workspaces, including workspaces being created or deleted.
This is a variant of
listWorkspaces(software.amazon.awssdk.services.amp.model.ListWorkspacesRequest)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 newSubscriptioni.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
2) Using a custom subscribersoftware.amazon.awssdk.services.amp.paginators.ListWorkspacesPublisher publisher = client.listWorkspacesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.amp.paginators.ListWorkspacesPublisher publisher = client.listWorkspacesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.amp.model.ListWorkspacesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.amp.model.ListWorkspacesResponse 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
listWorkspaces(software.amazon.awssdk.services.amp.model.ListWorkspacesRequest)operation.This is a convenience which creates an instance of the
ListWorkspacesRequest.Builderavoiding the need to create one manually viaListWorkspacesRequest.builder()- Parameters:
listWorkspacesRequest- AConsumerthat will call methods onListWorkspacesRequest.Builderto create a request. Represents the input of a ListWorkspaces operation.- 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.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
putAlertManagerDefinition
default CompletableFuture<PutAlertManagerDefinitionResponse> putAlertManagerDefinition(PutAlertManagerDefinitionRequest putAlertManagerDefinitionRequest)
Update an alert manager definition.
- Parameters:
putAlertManagerDefinitionRequest- Represents the input of a PutAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the PutAlertManagerDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
putAlertManagerDefinition
default CompletableFuture<PutAlertManagerDefinitionResponse> putAlertManagerDefinition(Consumer<PutAlertManagerDefinitionRequest.Builder> putAlertManagerDefinitionRequest)
Update an alert manager definition.
This is a convenience which creates an instance of the
PutAlertManagerDefinitionRequest.Builderavoiding the need to create one manually viaPutAlertManagerDefinitionRequest.builder()- Parameters:
putAlertManagerDefinitionRequest- AConsumerthat will call methods onPutAlertManagerDefinitionRequest.Builderto create a request. Represents the input of a PutAlertManagerDefinition operation.- Returns:
- A Java Future containing the result of the PutAlertManagerDefinition operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
putRuleGroupsNamespace
default CompletableFuture<PutRuleGroupsNamespaceResponse> putRuleGroupsNamespace(PutRuleGroupsNamespaceRequest putRuleGroupsNamespaceRequest)
Update a rule groups namespace.
- Parameters:
putRuleGroupsNamespaceRequest- Represents the input of a PutRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the PutRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
putRuleGroupsNamespace
default CompletableFuture<PutRuleGroupsNamespaceResponse> putRuleGroupsNamespace(Consumer<PutRuleGroupsNamespaceRequest.Builder> putRuleGroupsNamespaceRequest)
Update a rule groups namespace.
This is a convenience which creates an instance of the
PutRuleGroupsNamespaceRequest.Builderavoiding the need to create one manually viaPutRuleGroupsNamespaceRequest.builder()- Parameters:
putRuleGroupsNamespaceRequest- AConsumerthat will call methods onPutRuleGroupsNamespaceRequest.Builderto create a request. Represents the input of a PutRuleGroupsNamespace operation.- Returns:
- A Java Future containing the result of the PutRuleGroupsNamespace operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Creates tags for the specified resource.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest)
Creates tags for the specified resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Deletes tags from the specified resource.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest)
Deletes tags from the specified resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateLoggingConfiguration
default CompletableFuture<UpdateLoggingConfigurationResponse> updateLoggingConfiguration(UpdateLoggingConfigurationRequest updateLoggingConfigurationRequest)
Update logging configuration.
- Parameters:
updateLoggingConfigurationRequest- Represents the input of an UpdateLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the UpdateLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateLoggingConfiguration
default CompletableFuture<UpdateLoggingConfigurationResponse> updateLoggingConfiguration(Consumer<UpdateLoggingConfigurationRequest.Builder> updateLoggingConfigurationRequest)
Update logging configuration.
This is a convenience which creates an instance of the
UpdateLoggingConfigurationRequest.Builderavoiding the need to create one manually viaUpdateLoggingConfigurationRequest.builder()- Parameters:
updateLoggingConfigurationRequest- AConsumerthat will call methods onUpdateLoggingConfigurationRequest.Builderto create a request. Represents the input of an UpdateLoggingConfiguration operation.- Returns:
- A Java Future containing the result of the UpdateLoggingConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateWorkspaceAlias
default CompletableFuture<UpdateWorkspaceAliasResponse> updateWorkspaceAlias(UpdateWorkspaceAliasRequest updateWorkspaceAliasRequest)
Updates an AMP workspace alias.
- Parameters:
updateWorkspaceAliasRequest- Represents the input of an UpdateWorkspaceAlias operation.- Returns:
- A Java Future containing the result of the UpdateWorkspaceAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateWorkspaceAlias
default CompletableFuture<UpdateWorkspaceAliasResponse> updateWorkspaceAlias(Consumer<UpdateWorkspaceAliasRequest.Builder> updateWorkspaceAliasRequest)
Updates an AMP workspace alias.
This is a convenience which creates an instance of the
UpdateWorkspaceAliasRequest.Builderavoiding the need to create one manually viaUpdateWorkspaceAliasRequest.builder()- Parameters:
updateWorkspaceAliasRequest- AConsumerthat will call methods onUpdateWorkspaceAliasRequest.Builderto create a request. Represents the input of an UpdateWorkspaceAlias operation.- Returns:
- A Java Future containing the result of the UpdateWorkspaceAlias operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ThrottlingException Request was denied due to request throttling.
- ConflictException Updating or deleting a resource can cause an inconsistent state.
- ValidationException The input fails to satisfy the constraints specified by an AWS service.
- ResourceNotFoundException Request references a resource which does not exist.
- AccessDeniedException User does not have sufficient access to perform this action.
- InternalServerException Unexpected error during processing of request.
- ServiceQuotaExceededException Request would cause a service quota to be exceeded.
- 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.
- AmpException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
waiter
default AmpAsyncWaiter waiter()
Create an instance ofAmpAsyncWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
AmpAsyncWaiter
-
serviceClientConfiguration
default AmpServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
create
static AmpAsyncClient create()
Create aAmpAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static AmpAsyncClientBuilder builder()
Create a builder that can be used to configure and create aAmpAsyncClient.
-
-