@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonMQClient extends AmazonWebServiceClient implements AmazonMQ
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.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
static AmazonMQClientBuilder |
builder() |
CreateBrokerResult |
createBroker(CreateBrokerRequest request)
Creates a broker.
|
CreateConfigurationResult |
createConfiguration(CreateConfigurationRequest request)
Creates a new configuration for the specified configuration name.
|
CreateTagsResult |
createTags(CreateTagsRequest request)
Add a tag to a resource.
|
CreateUserResult |
createUser(CreateUserRequest request)
Creates an ActiveMQ user.
|
DeleteBrokerResult |
deleteBroker(DeleteBrokerRequest request)
Deletes a broker.
|
DeleteTagsResult |
deleteTags(DeleteTagsRequest request)
Removes a tag from a resource.
|
DeleteUserResult |
deleteUser(DeleteUserRequest request)
Deletes an ActiveMQ user.
|
DescribeBrokerResult |
describeBroker(DescribeBrokerRequest request)
Returns information about the specified broker.
|
DescribeBrokerEngineTypesResult |
describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request)
Describe available engine types and versions.
|
DescribeBrokerInstanceOptionsResult |
describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request)
Describe available broker instance options.
|
DescribeConfigurationResult |
describeConfiguration(DescribeConfigurationRequest request)
Returns information about the specified configuration.
|
DescribeConfigurationRevisionResult |
describeConfigurationRevision(DescribeConfigurationRevisionRequest request)
Returns the specified configuration revision for the specified configuration.
|
DescribeUserResult |
describeUser(DescribeUserRequest request)
Returns information about an ActiveMQ user.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListBrokersResult |
listBrokers(ListBrokersRequest request)
Returns a list of all brokers.
|
ListConfigurationRevisionsResult |
listConfigurationRevisions(ListConfigurationRevisionsRequest request)
Returns a list of all revisions for the specified configuration.
|
ListConfigurationsResult |
listConfigurations(ListConfigurationsRequest request)
Returns a list of all configurations.
|
ListTagsResult |
listTags(ListTagsRequest request)
Lists tags for a resource.
|
ListUsersResult |
listUsers(ListUsersRequest request)
Returns a list of all ActiveMQ users.
|
RebootBrokerResult |
rebootBroker(RebootBrokerRequest request)
Reboots a broker.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
UpdateBrokerResult |
updateBroker(UpdateBrokerRequest request)
Adds a pending configuration change to a broker.
|
UpdateConfigurationResult |
updateConfiguration(UpdateConfigurationRequest request)
Updates the specified configuration.
|
UpdateUserResult |
updateUser(UpdateUserRequest request)
Updates the information for an ActiveMQ user.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetpublic static AmazonMQClientBuilder builder()
public CreateBrokerResult createBroker(CreateBrokerRequest request)
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 AWS Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.
createBroker in interface AmazonMQcreateBrokerRequest - Creates a broker using the specified properties.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.public CreateConfigurationResult createConfiguration(CreateConfigurationRequest request)
Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
createConfiguration in interface AmazonMQcreateConfigurationRequest - Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration
(the engine type and version).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.public CreateTagsResult createTags(CreateTagsRequest request)
Add a tag to a resource.
createTags in interface AmazonMQcreateTagsRequest - A map of the key-value pairs for the resource tag.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.public CreateUserResult createUser(CreateUserRequest request)
Creates an ActiveMQ user.
createUser in interface AmazonMQcreateUserRequest - Creates a new ActiveMQ user.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.public DeleteBrokerResult deleteBroker(DeleteBrokerRequest request)
Deletes a broker. Note: This API is asynchronous.
deleteBroker in interface AmazonMQdeleteBrokerRequest - 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.public DeleteTagsResult deleteTags(DeleteTagsRequest request)
Removes a tag from a resource.
deleteTags in interface AmazonMQdeleteTagsRequest - 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.public DeleteUserResult deleteUser(DeleteUserRequest request)
Deletes an ActiveMQ user.
deleteUser in interface AmazonMQdeleteUserRequest - 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.public DescribeBrokerResult describeBroker(DescribeBrokerRequest request)
Returns information about the specified broker.
describeBroker in interface AmazonMQdescribeBrokerRequest - 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.public DescribeBrokerEngineTypesResult describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request)
Describe available engine types and versions.
describeBrokerEngineTypes in interface AmazonMQdescribeBrokerEngineTypesRequest - 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.public DescribeBrokerInstanceOptionsResult describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request)
Describe available broker instance options.
describeBrokerInstanceOptions in interface AmazonMQdescribeBrokerInstanceOptionsRequest - 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.public DescribeConfigurationResult describeConfiguration(DescribeConfigurationRequest request)
Returns information about the specified configuration.
describeConfiguration in interface AmazonMQdescribeConfigurationRequest - 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.public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request)
Returns the specified configuration revision for the specified configuration.
describeConfigurationRevision in interface AmazonMQdescribeConfigurationRevisionRequest - 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.public DescribeUserResult describeUser(DescribeUserRequest request)
Returns information about an ActiveMQ user.
describeUser in interface AmazonMQdescribeUserRequest - 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.public ListBrokersResult listBrokers(ListBrokersRequest request)
Returns a list of all brokers.
listBrokers in interface AmazonMQlistBrokersRequest - 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.public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request)
Returns a list of all revisions for the specified configuration.
listConfigurationRevisions in interface AmazonMQlistConfigurationRevisionsRequest - 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.public ListConfigurationsResult listConfigurations(ListConfigurationsRequest request)
Returns a list of all configurations.
listConfigurations in interface AmazonMQlistConfigurationsRequest - 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.public ListTagsResult listTags(ListTagsRequest request)
Lists tags for a resource.
listTags in interface AmazonMQlistTagsRequest - 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.public ListUsersResult listUsers(ListUsersRequest request)
Returns a list of all ActiveMQ users.
listUsers in interface AmazonMQlistUsersRequest - 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.public RebootBrokerResult rebootBroker(RebootBrokerRequest request)
Reboots a broker. Note: This API is asynchronous.
rebootBroker in interface AmazonMQrebootBrokerRequest - 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.public UpdateBrokerResult updateBroker(UpdateBrokerRequest request)
Adds a pending configuration change to a broker.
updateBroker in interface AmazonMQupdateBrokerRequest - Updates the broker using the specified properties.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.public UpdateConfigurationResult updateConfiguration(UpdateConfigurationRequest request)
Updates the specified configuration.
updateConfiguration in interface AmazonMQupdateConfigurationRequest - Updates the specified configuration.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.public UpdateUserResult updateUser(UpdateUserRequest request)
Updates the information for an ActiveMQ user.
updateUser in interface AmazonMQupdateUserRequest - Updates the information for an ActiveMQ user.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.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata in interface AmazonMQrequest - The originally executed requestpublic void shutdown()
AmazonWebServiceClientshutdown in interface AmazonMQshutdown in class AmazonWebServiceClient