Interface MqAsyncClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface MqAsyncClient extends AwsClient
Service client for accessing AmazonMQ asynchronously. This can be created using the staticbuilder()method.Amazon MQ is a managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud. A message broker allows software applications and components to communicate using various programming languages, operating systems, and formal messaging protocols.
-
-
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
-
createBroker
default CompletableFuture<CreateBrokerResponse> createBroker(CreateBrokerRequest createBrokerRequest)
Creates a broker. Note: This API is asynchronous.
To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM policy.
-
ec2:CreateNetworkInterface
This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account.
-
ec2:CreateNetworkInterfacePermission
This permission is required to attach the ENI to the broker instance.
-
ec2:DeleteNetworkInterface
-
ec2:DeleteNetworkInterfacePermission
-
ec2:DetachNetworkInterface
-
ec2:DescribeInternetGateways
-
ec2:DescribeNetworkInterfaces
-
ec2:DescribeNetworkInterfacePermissions
-
ec2:DescribeRouteTables
-
ec2:DescribeSecurityGroups
-
ec2:DescribeSubnets
-
ec2:DescribeVpcs
For more information, see Create an IAM User and Get Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.
- Parameters:
createBrokerRequest- Creates a broker using the specified properties.- Returns:
- A Java Future containing the result of the CreateBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- UnauthorizedException HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
-
createBroker
default CompletableFuture<CreateBrokerResponse> createBroker(Consumer<CreateBrokerRequest.Builder> createBrokerRequest)
Creates a broker. Note: This API is asynchronous.
To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM policy.
-
ec2:CreateNetworkInterface
This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account.
-
ec2:CreateNetworkInterfacePermission
This permission is required to attach the ENI to the broker instance.
-
ec2:DeleteNetworkInterface
-
ec2:DeleteNetworkInterfacePermission
-
ec2:DetachNetworkInterface
-
ec2:DescribeInternetGateways
-
ec2:DescribeNetworkInterfaces
-
ec2:DescribeNetworkInterfacePermissions
-
ec2:DescribeRouteTables
-
ec2:DescribeSecurityGroups
-
ec2:DescribeSubnets
-
ec2:DescribeVpcs
For more information, see Create an IAM User and Get Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.
This is a convenience which creates an instance of the
CreateBrokerRequest.Builderavoiding the need to create one manually viaCreateBrokerRequest.builder()- Parameters:
createBrokerRequest- AConsumerthat will call methods onCreateBrokerRequest.Builderto create a request. Creates a broker using the specified properties.- Returns:
- A Java Future containing the result of the CreateBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- UnauthorizedException HTTP Status Code 401: Unauthorized request. The provided credentials couldn't be validated.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
-
createConfiguration
default CompletableFuture<CreateConfigurationResponse> createConfiguration(CreateConfigurationRequest createConfigurationRequest)
Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
- Parameters:
createConfigurationRequest- Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).- Returns:
- A Java Future containing the result of the CreateConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createConfiguration
default CompletableFuture<CreateConfigurationResponse> createConfiguration(Consumer<CreateConfigurationRequest.Builder> createConfigurationRequest)
Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
This is a convenience which creates an instance of the
CreateConfigurationRequest.Builderavoiding the need to create one manually viaCreateConfigurationRequest.builder()- Parameters:
createConfigurationRequest- AConsumerthat will call methods onCreateConfigurationRequest.Builderto create a request. Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).- Returns:
- A Java Future containing the result of the CreateConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createTags
default CompletableFuture<CreateTagsResponse> createTags(CreateTagsRequest createTagsRequest)
Add a tag to a resource.
- Parameters:
createTagsRequest- A map of the key-value pairs for the resource tag.- Returns:
- A Java Future containing the result of the CreateTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createTags
default CompletableFuture<CreateTagsResponse> createTags(Consumer<CreateTagsRequest.Builder> createTagsRequest)
Add a tag to a resource.
This is a convenience which creates an instance of the
CreateTagsRequest.Builderavoiding the need to create one manually viaCreateTagsRequest.builder()- Parameters:
createTagsRequest- AConsumerthat will call methods onCreateTagsRequest.Builderto create a request. A map of the key-value pairs for the resource tag.- Returns:
- A Java Future containing the result of the CreateTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createUser
default CompletableFuture<CreateUserResponse> createUser(CreateUserRequest createUserRequest)
Creates an ActiveMQ user.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
- Parameters:
createUserRequest- Creates a new ActiveMQ user.- Returns:
- A Java Future containing the result of the CreateUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
createUser
default CompletableFuture<CreateUserResponse> createUser(Consumer<CreateUserRequest.Builder> createUserRequest)
Creates an ActiveMQ user.
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
This is a convenience which creates an instance of the
CreateUserRequest.Builderavoiding the need to create one manually viaCreateUserRequest.builder()- Parameters:
createUserRequest- AConsumerthat will call methods onCreateUserRequest.Builderto create a request. Creates a new ActiveMQ user.- Returns:
- A Java Future containing the result of the CreateUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteBroker
default CompletableFuture<DeleteBrokerResponse> deleteBroker(DeleteBrokerRequest deleteBrokerRequest)
Deletes a broker. Note: This API is asynchronous.
- Parameters:
deleteBrokerRequest-- Returns:
- A Java Future containing the result of the DeleteBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteBroker
default CompletableFuture<DeleteBrokerResponse> deleteBroker(Consumer<DeleteBrokerRequest.Builder> deleteBrokerRequest)
Deletes a broker. Note: This API is asynchronous.
This is a convenience which creates an instance of the
DeleteBrokerRequest.Builderavoiding the need to create one manually viaDeleteBrokerRequest.builder()- Parameters:
deleteBrokerRequest- AConsumerthat will call methods onDeleteBrokerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteTags
default CompletableFuture<DeleteTagsResponse> deleteTags(DeleteTagsRequest deleteTagsRequest)
Removes a tag from a resource.
- Parameters:
deleteTagsRequest-- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteTags
default CompletableFuture<DeleteTagsResponse> deleteTags(Consumer<DeleteTagsRequest.Builder> deleteTagsRequest)
Removes a tag from a resource.
This is a convenience which creates an instance of the
DeleteTagsRequest.Builderavoiding the need to create one manually viaDeleteTagsRequest.builder()- Parameters:
deleteTagsRequest- AConsumerthat will call methods onDeleteTagsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteUser
default CompletableFuture<DeleteUserResponse> deleteUser(DeleteUserRequest deleteUserRequest)
Deletes an ActiveMQ user.
- Parameters:
deleteUserRequest-- Returns:
- A Java Future containing the result of the DeleteUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
deleteUser
default CompletableFuture<DeleteUserResponse> deleteUser(Consumer<DeleteUserRequest.Builder> deleteUserRequest)
Deletes an ActiveMQ user.
This is a convenience which creates an instance of the
DeleteUserRequest.Builderavoiding the need to create one manually viaDeleteUserRequest.builder()- Parameters:
deleteUserRequest- AConsumerthat will call methods onDeleteUserRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBroker
default CompletableFuture<DescribeBrokerResponse> describeBroker(DescribeBrokerRequest describeBrokerRequest)
Returns information about the specified broker.
- Parameters:
describeBrokerRequest-- Returns:
- A Java Future containing the result of the DescribeBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBroker
default CompletableFuture<DescribeBrokerResponse> describeBroker(Consumer<DescribeBrokerRequest.Builder> describeBrokerRequest)
Returns information about the specified broker.
This is a convenience which creates an instance of the
DescribeBrokerRequest.Builderavoiding the need to create one manually viaDescribeBrokerRequest.builder()- Parameters:
describeBrokerRequest- AConsumerthat will call methods onDescribeBrokerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBrokerEngineTypes
default CompletableFuture<DescribeBrokerEngineTypesResponse> describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest describeBrokerEngineTypesRequest)
Describe available engine types and versions.
- Parameters:
describeBrokerEngineTypesRequest-- Returns:
- A Java Future containing the result of the DescribeBrokerEngineTypes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBrokerEngineTypes
default CompletableFuture<DescribeBrokerEngineTypesResponse> describeBrokerEngineTypes(Consumer<DescribeBrokerEngineTypesRequest.Builder> describeBrokerEngineTypesRequest)
Describe available engine types and versions.
This is a convenience which creates an instance of the
DescribeBrokerEngineTypesRequest.Builderavoiding the need to create one manually viaDescribeBrokerEngineTypesRequest.builder()- Parameters:
describeBrokerEngineTypesRequest- AConsumerthat will call methods onDescribeBrokerEngineTypesRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeBrokerEngineTypes operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBrokerInstanceOptions
default CompletableFuture<DescribeBrokerInstanceOptionsResponse> describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest describeBrokerInstanceOptionsRequest)
Describe available broker instance options.
- Parameters:
describeBrokerInstanceOptionsRequest-- Returns:
- A Java Future containing the result of the DescribeBrokerInstanceOptions operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeBrokerInstanceOptions
default CompletableFuture<DescribeBrokerInstanceOptionsResponse> describeBrokerInstanceOptions(Consumer<DescribeBrokerInstanceOptionsRequest.Builder> describeBrokerInstanceOptionsRequest)
Describe available broker instance options.
This is a convenience which creates an instance of the
DescribeBrokerInstanceOptionsRequest.Builderavoiding the need to create one manually viaDescribeBrokerInstanceOptionsRequest.builder()- Parameters:
describeBrokerInstanceOptionsRequest- AConsumerthat will call methods onDescribeBrokerInstanceOptionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeBrokerInstanceOptions operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeConfiguration
default CompletableFuture<DescribeConfigurationResponse> describeConfiguration(DescribeConfigurationRequest describeConfigurationRequest)
Returns information about the specified configuration.
- Parameters:
describeConfigurationRequest-- Returns:
- A Java Future containing the result of the DescribeConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeConfiguration
default CompletableFuture<DescribeConfigurationResponse> describeConfiguration(Consumer<DescribeConfigurationRequest.Builder> describeConfigurationRequest)
Returns information about the specified configuration.
This is a convenience which creates an instance of the
DescribeConfigurationRequest.Builderavoiding the need to create one manually viaDescribeConfigurationRequest.builder()- Parameters:
describeConfigurationRequest- AConsumerthat will call methods onDescribeConfigurationRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeConfigurationRevision
default CompletableFuture<DescribeConfigurationRevisionResponse> describeConfigurationRevision(DescribeConfigurationRevisionRequest describeConfigurationRevisionRequest)
Returns the specified configuration revision for the specified configuration.
- Parameters:
describeConfigurationRevisionRequest-- Returns:
- A Java Future containing the result of the DescribeConfigurationRevision operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeConfigurationRevision
default CompletableFuture<DescribeConfigurationRevisionResponse> describeConfigurationRevision(Consumer<DescribeConfigurationRevisionRequest.Builder> describeConfigurationRevisionRequest)
Returns the specified configuration revision for the specified configuration.
This is a convenience which creates an instance of the
DescribeConfigurationRevisionRequest.Builderavoiding the need to create one manually viaDescribeConfigurationRevisionRequest.builder()- Parameters:
describeConfigurationRevisionRequest- AConsumerthat will call methods onDescribeConfigurationRevisionRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeConfigurationRevision operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeUser
default CompletableFuture<DescribeUserResponse> describeUser(DescribeUserRequest describeUserRequest)
Returns information about an ActiveMQ user.
- Parameters:
describeUserRequest-- Returns:
- A Java Future containing the result of the DescribeUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
describeUser
default CompletableFuture<DescribeUserResponse> describeUser(Consumer<DescribeUserRequest.Builder> describeUserRequest)
Returns information about an ActiveMQ user.
This is a convenience which creates an instance of the
DescribeUserRequest.Builderavoiding the need to create one manually viaDescribeUserRequest.builder()- Parameters:
describeUserRequest- AConsumerthat will call methods onDescribeUserRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokers
default CompletableFuture<ListBrokersResponse> listBrokers(ListBrokersRequest listBrokersRequest)
Returns a list of all brokers.
- Parameters:
listBrokersRequest-- Returns:
- A Java Future containing the result of the ListBrokers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokers
default CompletableFuture<ListBrokersResponse> listBrokers(Consumer<ListBrokersRequest.Builder> listBrokersRequest)
Returns a list of all brokers.
This is a convenience which creates an instance of the
ListBrokersRequest.Builderavoiding the need to create one manually viaListBrokersRequest.builder()- Parameters:
listBrokersRequest- AConsumerthat will call methods onListBrokersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListBrokers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokers
default CompletableFuture<ListBrokersResponse> listBrokers()
Returns a list of all brokers.
- Returns:
- A Java Future containing the result of the ListBrokers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokersPaginator
default ListBrokersPublisher listBrokersPaginator()
This is a variant of
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mq.model.ListBrokersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mq.model.ListBrokersResponse 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
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)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.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokersPaginator
default ListBrokersPublisher listBrokersPaginator(ListBrokersRequest listBrokersRequest)
This is a variant of
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mq.model.ListBrokersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mq.model.ListBrokersResponse 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
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)operation.- Parameters:
listBrokersRequest-- 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.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listBrokersPaginator
default ListBrokersPublisher listBrokersPaginator(Consumer<ListBrokersRequest.Builder> listBrokersRequest)
This is a variant of
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(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.mq.paginators.ListBrokersPublisher publisher = client.listBrokersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mq.model.ListBrokersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mq.model.ListBrokersResponse 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
listBrokers(software.amazon.awssdk.services.mq.model.ListBrokersRequest)operation.
This is a convenience which creates an instance of the
ListBrokersRequest.Builderavoiding the need to create one manually viaListBrokersRequest.builder()- Parameters:
listBrokersRequest- AConsumerthat will call methods onListBrokersRequest.Builderto 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.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listConfigurationRevisions
default CompletableFuture<ListConfigurationRevisionsResponse> listConfigurationRevisions(ListConfigurationRevisionsRequest listConfigurationRevisionsRequest)
Returns a list of all revisions for the specified configuration.
- Parameters:
listConfigurationRevisionsRequest-- Returns:
- A Java Future containing the result of the ListConfigurationRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listConfigurationRevisions
default CompletableFuture<ListConfigurationRevisionsResponse> listConfigurationRevisions(Consumer<ListConfigurationRevisionsRequest.Builder> listConfigurationRevisionsRequest)
Returns a list of all revisions for the specified configuration.
This is a convenience which creates an instance of the
ListConfigurationRevisionsRequest.Builderavoiding the need to create one manually viaListConfigurationRevisionsRequest.builder()- Parameters:
listConfigurationRevisionsRequest- AConsumerthat will call methods onListConfigurationRevisionsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListConfigurationRevisions operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listConfigurations
default CompletableFuture<ListConfigurationsResponse> listConfigurations(ListConfigurationsRequest listConfigurationsRequest)
Returns a list of all configurations.
- Parameters:
listConfigurationsRequest-- Returns:
- A Java Future containing the result of the ListConfigurations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listConfigurations
default CompletableFuture<ListConfigurationsResponse> listConfigurations(Consumer<ListConfigurationsRequest.Builder> listConfigurationsRequest)
Returns a list of all configurations.
This is a convenience which creates an instance of the
ListConfigurationsRequest.Builderavoiding the need to create one manually viaListConfigurationsRequest.builder()- Parameters:
listConfigurationsRequest- AConsumerthat will call methods onListConfigurationsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListConfigurations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listConfigurations
default CompletableFuture<ListConfigurationsResponse> listConfigurations()
Returns a list of all configurations.
- Returns:
- A Java Future containing the result of the ListConfigurations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTags
default CompletableFuture<ListTagsResponse> listTags(ListTagsRequest listTagsRequest)
Lists tags for a resource.
- Parameters:
listTagsRequest-- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listTags
default CompletableFuture<ListTagsResponse> listTags(Consumer<ListTagsRequest.Builder> listTagsRequest)
Lists tags for a resource.
This is a convenience which creates an instance of the
ListTagsRequest.Builderavoiding the need to create one manually viaListTagsRequest.builder()- Parameters:
listTagsRequest- AConsumerthat will call methods onListTagsRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTags operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listUsers
default CompletableFuture<ListUsersResponse> listUsers(ListUsersRequest listUsersRequest)
Returns a list of all ActiveMQ users.
- Parameters:
listUsersRequest-- Returns:
- A Java Future containing the result of the ListUsers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
listUsers
default CompletableFuture<ListUsersResponse> listUsers(Consumer<ListUsersRequest.Builder> listUsersRequest)
Returns a list of all ActiveMQ users.
This is a convenience which creates an instance of the
ListUsersRequest.Builderavoiding the need to create one manually viaListUsersRequest.builder()- Parameters:
listUsersRequest- AConsumerthat will call methods onListUsersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListUsers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
promote
default CompletableFuture<PromoteResponse> promote(PromoteRequest promoteRequest)
Promotes a data replication replica broker to the primary broker role.
- Parameters:
promoteRequest- Promotes a data replication replica broker to the primary broker role.- Returns:
- A Java Future containing the result of the Promote operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
promote
default CompletableFuture<PromoteResponse> promote(Consumer<PromoteRequest.Builder> promoteRequest)
Promotes a data replication replica broker to the primary broker role.
This is a convenience which creates an instance of the
PromoteRequest.Builderavoiding the need to create one manually viaPromoteRequest.builder()- Parameters:
promoteRequest- AConsumerthat will call methods onPromoteRequest.Builderto create a request. Promotes a data replication replica broker to the primary broker role.- Returns:
- A Java Future containing the result of the Promote operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
rebootBroker
default CompletableFuture<RebootBrokerResponse> rebootBroker(RebootBrokerRequest rebootBrokerRequest)
Reboots a broker. Note: This API is asynchronous.
- Parameters:
rebootBrokerRequest-- Returns:
- A Java Future containing the result of the RebootBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
rebootBroker
default CompletableFuture<RebootBrokerResponse> rebootBroker(Consumer<RebootBrokerRequest.Builder> rebootBrokerRequest)
Reboots a broker. Note: This API is asynchronous.
This is a convenience which creates an instance of the
RebootBrokerRequest.Builderavoiding the need to create one manually viaRebootBrokerRequest.builder()- Parameters:
rebootBrokerRequest- AConsumerthat will call methods onRebootBrokerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the RebootBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateBroker
default CompletableFuture<UpdateBrokerResponse> updateBroker(UpdateBrokerRequest updateBrokerRequest)
Adds a pending configuration change to a broker.
- Parameters:
updateBrokerRequest- Updates the broker using the specified properties.- Returns:
- A Java Future containing the result of the UpdateBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateBroker
default CompletableFuture<UpdateBrokerResponse> updateBroker(Consumer<UpdateBrokerRequest.Builder> updateBrokerRequest)
Adds a pending configuration change to a broker.
This is a convenience which creates an instance of the
UpdateBrokerRequest.Builderavoiding the need to create one manually viaUpdateBrokerRequest.builder()- Parameters:
updateBrokerRequest- AConsumerthat will call methods onUpdateBrokerRequest.Builderto create a request. Updates the broker using the specified properties.- Returns:
- A Java Future containing the result of the UpdateBroker operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateConfiguration
default CompletableFuture<UpdateConfigurationResponse> updateConfiguration(UpdateConfigurationRequest updateConfigurationRequest)
Updates the specified configuration.
- Parameters:
updateConfigurationRequest- Updates the specified configuration.- Returns:
- A Java Future containing the result of the UpdateConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateConfiguration
default CompletableFuture<UpdateConfigurationResponse> updateConfiguration(Consumer<UpdateConfigurationRequest.Builder> updateConfigurationRequest)
Updates the specified configuration.
This is a convenience which creates an instance of the
UpdateConfigurationRequest.Builderavoiding the need to create one manually viaUpdateConfigurationRequest.builder()- Parameters:
updateConfigurationRequest- AConsumerthat will call methods onUpdateConfigurationRequest.Builderto create a request. Updates the specified configuration.- Returns:
- A Java Future containing the result of the UpdateConfiguration operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateUser
default CompletableFuture<UpdateUserResponse> updateUser(UpdateUserRequest updateUserRequest)
Updates the information for an ActiveMQ user.
- Parameters:
updateUserRequest- Updates the information for an ActiveMQ user.- Returns:
- A Java Future containing the result of the UpdateUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
updateUser
default CompletableFuture<UpdateUserResponse> updateUser(Consumer<UpdateUserRequest.Builder> updateUserRequest)
Updates the information for an ActiveMQ user.
This is a convenience which creates an instance of the
UpdateUserRequest.Builderavoiding the need to create one manually viaUpdateUserRequest.builder()- Parameters:
updateUserRequest- AConsumerthat will call methods onUpdateUserRequest.Builderto create a request. Updates the information for an ActiveMQ user.- Returns:
- A Java Future containing the result of the UpdateUser operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
- BadRequestException HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
- InternalServerErrorException HTTP Status Code 500: Unexpected internal server error. Retrying your request might resolve the issue.
- ConflictException HTTP Status Code 409: Conflict. This broker name already exists. Retry your request with another name.
- ForbiddenException HTTP Status Code 403: Access forbidden. Correct your credentials and then retry your 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.
- MqException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
- AWS API Documentation
-
serviceClientConfiguration
default MqServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
create
static MqAsyncClient create()
Create aMqAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static MqAsyncClientBuilder builder()
Create a builder that can be used to configure and create aMqAsyncClient.
-
-