

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# Amazon MQ
<a name="AWS_AmazonMQ"></a>

**Resource types**
+ [AWS::AmazonMQ::Broker](aws-resource-amazonmq-broker.md)
+ [AWS::AmazonMQ::Configuration](aws-resource-amazonmq-configuration.md)
+ [AWS::AmazonMQ::ConfigurationAssociation](aws-resource-amazonmq-configurationassociation.md)

# AWS::AmazonMQ::Broker
<a name="aws-resource-amazonmq-broker"></a>

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](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/amazon-mq-setting-up.html#create-iam-user) and [Never Modify or Delete the Amazon MQ Elastic Network Interface](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/connecting-to-amazon-mq.html#never-modify-delete-elastic-network-interface) in the *Amazon MQ Developer Guide*.

## Syntax
<a name="aws-resource-amazonmq-broker-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-amazonmq-broker-syntax.json"></a>

```
{
  "Type" : "AWS::AmazonMQ::Broker",
  "Properties" : {
      "[AuthenticationStrategy](#cfn-amazonmq-broker-authenticationstrategy)" : String,
      "[AutoMinorVersionUpgrade](#cfn-amazonmq-broker-autominorversionupgrade)" : Boolean,
      "[BrokerName](#cfn-amazonmq-broker-brokername)" : String,
      "[Configuration](#cfn-amazonmq-broker-configuration)" : ConfigurationId,
      "[DataReplicationMode](#cfn-amazonmq-broker-datareplicationmode)" : String,
      "[DataReplicationPrimaryBrokerArn](#cfn-amazonmq-broker-datareplicationprimarybrokerarn)" : String,
      "[DeploymentMode](#cfn-amazonmq-broker-deploymentmode)" : String,
      "[EncryptionOptions](#cfn-amazonmq-broker-encryptionoptions)" : EncryptionOptions,
      "[EngineType](#cfn-amazonmq-broker-enginetype)" : String,
      "[EngineVersion](#cfn-amazonmq-broker-engineversion)" : String,
      "[HostInstanceType](#cfn-amazonmq-broker-hostinstancetype)" : String,
      "[LdapServerMetadata](#cfn-amazonmq-broker-ldapservermetadata)" : LdapServerMetadata,
      "[Logs](#cfn-amazonmq-broker-logs)" : LogList,
      "[MaintenanceWindowStartTime](#cfn-amazonmq-broker-maintenancewindowstarttime)" : MaintenanceWindow,
      "[PubliclyAccessible](#cfn-amazonmq-broker-publiclyaccessible)" : Boolean,
      "[SecurityGroups](#cfn-amazonmq-broker-securitygroups)" : [ String, ... ],
      "[StorageType](#cfn-amazonmq-broker-storagetype)" : String,
      "[SubnetIds](#cfn-amazonmq-broker-subnetids)" : [ String, ... ],
      "[Tags](#cfn-amazonmq-broker-tags)" : [ TagsEntry, ... ],
      "[Users](#cfn-amazonmq-broker-users)" : [ User, ... ]
    }
}
```

### YAML
<a name="aws-resource-amazonmq-broker-syntax.yaml"></a>

```
Type: AWS::AmazonMQ::Broker
Properties:
  [AuthenticationStrategy](#cfn-amazonmq-broker-authenticationstrategy): String
  [AutoMinorVersionUpgrade](#cfn-amazonmq-broker-autominorversionupgrade): Boolean
  [BrokerName](#cfn-amazonmq-broker-brokername): String
  [Configuration](#cfn-amazonmq-broker-configuration): 
    ConfigurationId
  [DataReplicationMode](#cfn-amazonmq-broker-datareplicationmode): String
  [DataReplicationPrimaryBrokerArn](#cfn-amazonmq-broker-datareplicationprimarybrokerarn): String
  [DeploymentMode](#cfn-amazonmq-broker-deploymentmode): String
  [EncryptionOptions](#cfn-amazonmq-broker-encryptionoptions): 
    EncryptionOptions
  [EngineType](#cfn-amazonmq-broker-enginetype): String
  [EngineVersion](#cfn-amazonmq-broker-engineversion): String
  [HostInstanceType](#cfn-amazonmq-broker-hostinstancetype): String
  [LdapServerMetadata](#cfn-amazonmq-broker-ldapservermetadata): 
    LdapServerMetadata
  [Logs](#cfn-amazonmq-broker-logs): 
    LogList
  [MaintenanceWindowStartTime](#cfn-amazonmq-broker-maintenancewindowstarttime): 
    MaintenanceWindow
  [PubliclyAccessible](#cfn-amazonmq-broker-publiclyaccessible): Boolean
  [SecurityGroups](#cfn-amazonmq-broker-securitygroups): 
    - String
  [StorageType](#cfn-amazonmq-broker-storagetype): String
  [SubnetIds](#cfn-amazonmq-broker-subnetids): 
    - String
  [Tags](#cfn-amazonmq-broker-tags): 
    - TagsEntry
  [Users](#cfn-amazonmq-broker-users): 
    - User
```

## Properties
<a name="aws-resource-amazonmq-broker-properties"></a>

`AuthenticationStrategy`  <a name="cfn-amazonmq-broker-authenticationstrategy"></a>
Optional. The authentication strategy used to secure the broker. The default is `SIMPLE`.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`AutoMinorVersionUpgrade`  <a name="cfn-amazonmq-broker-autominorversionupgrade"></a>
Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot. Set to `true` by default, if no value is specified.  
Must be set to `true` for ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`BrokerName`  <a name="cfn-amazonmq-broker-brokername"></a>
Required. The broker's name. This value must be unique in your AWS account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.  
 Do not add personally identifiable information (PII) or other confidential or sensitive information in broker names. Broker names are accessible to other AWS services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data. 
*Required*: Yes  
*Type*: String  
*Pattern*: `^[0-9A-Za-z_-]{1,50}$`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Configuration`  <a name="cfn-amazonmq-broker-configuration"></a>
A list of information about the configuration.  
*Required*: No  
*Type*: [ConfigurationId](aws-properties-amazonmq-broker-configurationid.md)  
*Update requires*: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)

`DataReplicationMode`  <a name="cfn-amazonmq-broker-datareplicationmode"></a>
Defines whether this broker is a part of a data replication pair.  
*Required*: No  
*Type*: String  
*Allowed values*: `NONE | CRDR`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DataReplicationPrimaryBrokerArn`  <a name="cfn-amazonmq-broker-datareplicationprimarybrokerarn"></a>
The Amazon Resource Name (ARN) of the primary broker that is used to replicate data from in a data replication pair, and is applied to the replica broker. Must be set when dataReplicationMode is set to CRDR.  
*Required*: No  
*Type*: String  
*Pattern*: `^arn:.*`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`DeploymentMode`  <a name="cfn-amazonmq-broker-deploymentmode"></a>
Required. The broker's deployment mode.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `SINGLE_INSTANCE | ACTIVE_STANDBY_MULTI_AZ | CLUSTER_MULTI_AZ`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EncryptionOptions`  <a name="cfn-amazonmq-broker-encryptionoptions"></a>
Encryption options for the broker.   
*Required*: No  
*Type*: [EncryptionOptions](aws-properties-amazonmq-broker-encryptionoptions.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EngineType`  <a name="cfn-amazonmq-broker-enginetype"></a>
Required. The type of broker engine. Currently, Amazon MQ supports `ACTIVEMQ` and `RABBITMQ`.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `ACTIVEMQ | RABBITMQ`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EngineVersion`  <a name="cfn-amazonmq-broker-engineversion"></a>
The broker engine version. Defaults to the latest available version for the specified broker engine type. For more information, see the [ActiveMQ version management](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/activemq-version-management.html) and the [RabbitMQ version management](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/rabbitmq-version-management.html) sections in the Amazon MQ Developer Guide.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`HostInstanceType`  <a name="cfn-amazonmq-broker-hostinstancetype"></a>
Required. The broker's instance type.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Some interruptions](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-some-interrupt)

`LdapServerMetadata`  <a name="cfn-amazonmq-broker-ldapservermetadata"></a>
Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.  
*Required*: No  
*Type*: [LdapServerMetadata](aws-properties-amazonmq-broker-ldapservermetadata.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Logs`  <a name="cfn-amazonmq-broker-logs"></a>
Enables Amazon CloudWatch logging for brokers.  
*Required*: No  
*Type*: [LogList](aws-properties-amazonmq-broker-loglist.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MaintenanceWindowStartTime`  <a name="cfn-amazonmq-broker-maintenancewindowstarttime"></a>
The parameters that determine the WeeklyStartTime.  
*Required*: No  
*Type*: [MaintenanceWindow](aws-properties-amazonmq-broker-maintenancewindow.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`PubliclyAccessible`  <a name="cfn-amazonmq-broker-publiclyaccessible"></a>
Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to `false` by default, if no value is provided.  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SecurityGroups`  <a name="cfn-amazonmq-broker-securitygroups"></a>
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.  
*Required*: No  
*Type*: Array of String  
*Minimum*: `1`  
*Maximum*: `5`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`StorageType`  <a name="cfn-amazonmq-broker-storagetype"></a>
The broker's storage type.  
*Required*: No  
*Type*: String  
*Allowed values*: `EBS | EFS`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`SubnetIds`  <a name="cfn-amazonmq-broker-subnetids"></a>
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE\$1INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE\$1STANDBY\$1MULTI\$1AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER\$1MULTI\$1AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.  
 If you specify subnets in a [shared VPC](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html) for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your AWS account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your AWS account. 
*Required*: No  
*Type*: Array of String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-amazonmq-broker-tags"></a>
Create tags when creating the broker.  
*Required*: No  
*Type*: Array of [TagsEntry](aws-properties-amazonmq-broker-tagsentry.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Users`  <a name="cfn-amazonmq-broker-users"></a>
The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.  
When OAuth 2.0 is enabled, the broker accepts one or no users.  
*Required*: No  
*Type*: Array of [User](aws-properties-amazonmq-broker-user.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-amazonmq-broker-return-values"></a>

### Ref
<a name="aws-resource-amazonmq-broker-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Amazon MQ broker ID. For example: 

 `b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-amazonmq-broker-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-amazonmq-broker-return-values-fn--getatt-fn--getatt"></a>

`AmqpEndpoints`  <a name="AmqpEndpoints-fn::getatt"></a>
The AMQP endpoints of each broker instance as a list of strings.  
 `amqp+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:5671` 

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the Amazon MQ broker.  
 `arn:aws:mq:us-east-2:123456789012:broker:MyBroker:b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

`ConfigurationId`  <a name="ConfigurationId-fn::getatt"></a>
The unique ID that Amazon MQ generates for the configuration.  
 `c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

`ConfigurationRevision`  <a name="ConfigurationRevision-fn::getatt"></a>
The revision number of the configuration.  
 `1` 

`ConsoleURLs`  <a name="ConsoleURLs-fn::getatt"></a>
Property description not available.

`EngineVersionCurrent`  <a name="EngineVersionCurrent-fn::getatt"></a>
Property description not available.

`IpAddresses`  <a name="IpAddresses-fn::getatt"></a>
The IP addresses of each broker instance as a list of strings. Does not apply to RabbitMQ brokers.  
 `['198.51.100.2', '203.0.113.9']` 

`MqttEndpoints`  <a name="MqttEndpoints-fn::getatt"></a>
The MQTT endpoints of each broker instance as a list of strings.  
 `mqtt+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:8883` 

`OpenWireEndpoints`  <a name="OpenWireEndpoints-fn::getatt"></a>
The OpenWire endpoints of each broker instance as a list of strings.  
 `ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61617` 

`StompEndpoints`  <a name="StompEndpoints-fn::getatt"></a>
The STOMP endpoints of each broker instance as a list of strings.  
 `stomp+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61614` 

`WssEndpoints`  <a name="WssEndpoints-fn::getatt"></a>
The WSS endpoints of each broker instance as a list of strings.  
 `wss://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61619` 

## Examples
<a name="aws-resource-amazonmq-broker--examples"></a>

**Topics**
+ [Basic Amazon MQ Broker](#aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker)
+ [Complex Amazon MQ Broker](#aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker)

### Basic Amazon MQ Broker
<a name="aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker"></a>

The following examples creates a basic Amazon MQ broker. The RabbitMQ example creates a broker with one administrative user, while the ActiveMQ example creates a broker with one user that belongs to a group.

#### JSON
<a name="aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker--json"></a>

```
{
  "Description": "Create a basic Amazon MQ for ActiveMQ broker",
  "Resources": {
    "BasicBroker": {
      "Type": "AWS::AmazonMQ::Broker",
      "Properties": {
        "AutoMinorVersionUpgrade": "false",
        "BrokerName": "MyBasicActiveBroker",
        "DeploymentMode": "SINGLE_INSTANCE",
        "EngineType": "ActiveMQ",
        "EngineVersion": "5.15.0",
        "HostInstanceType": "mq.t2.micro",
        "PubliclyAccessible": "true",
        "Users": [
          {
            "ConsoleAccess": "true",
            "Groups": [
              "MyGroup"
            ],
            "Password" : "AmazonMqPassword",
            "Username" : "AmazonMqUsername"
          }
        ]
      }
    }
  }
}
```

#### JSON
<a name="aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker--json"></a>

```
{
"Description": "Create a basic Amazon MQ for RabbitMQ broker",
"Resources": {
  "BasicBroker": {
    "Type": "AWS::AmazonMQ::Broker",
    "Properties": {
      "AutoMinorVersionUpgrade": "false",
      "BrokerName": "MyBasicRabbitBroker",
      "DeploymentMode": "SINGLE_INSTANCE",
      "EngineType": "RabbitMQ",
      "EngineVersion": "3.8.6",
      "HostInstanceType": "mq.t3.micro",
      "PubliclyAccessible": "true",
      "Users": [
          {
            "Password" : "AmazonMqPassword",
            "Username" : "AmazonMqUsername"
          }
        ]
      }
    }
  }
}
```

#### YAML
<a name="aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker--yaml"></a>

```
--- 
Description: "Create a basic Amazon MQ for ActiveMQ broker"
Resources: 
  BasicBroker:
    Type: "AWS::AmazonMQ::Broker"
    Properties: 
      AutoMinorVersionUpgrade: "false"
      BrokerName: MyBasicActiveBroker
      DeploymentMode: SINGLE_INSTANCE
      EngineType: ActiveMQ
      EngineVersion: "5.15.0"
      HostInstanceType: mq.t2.micro
      PubliclyAccessible: "true"
      Users: 
        - 
          ConsoleAccess: "true"
          Groups: 
            - MyGroup
          Password: AmazonMqPassword           
          Username: AmazonMqUsername
```

#### YAML
<a name="aws-resource-amazonmq-broker--examples--Basic_Amazon_MQ_Broker--yaml"></a>

```
--- 
Description: "Create a basic Amazon MQ for RabbitMQ broker"
Resources: 
  BasicBroker:
    Type: "AWS::AmazonMQ::Broker"
    Properties: 
      AutoMinorVersionUpgrade: "false"
      BrokerName: MyBasicRabbitBroker
      DeploymentMode: SINGLE_INSTANCE
      EngineType: RabbitMQ
      EngineVersion: "3.8.6"
      HostInstanceType: mq.t3.micro
      PubliclyAccessible: "true"
      Users: 
        - 
          Password: AmazonMqPassword            
          Username: AmazonMqUsername
```

### Complex Amazon MQ Broker
<a name="aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker"></a>

The following example creates a complex Amazon MQ broker. The ActiveMQ example creates a broker with two users that don't belong to a group and one user that belongs in a group. The RabbitMQ example creates one administrator user, which can then create and manage other users via the RabbitMQ web console or the management API.

#### JSON
<a name="aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker--json"></a>

```
{
  "Description": "Create a complex, single-instance Amazon MQ for ActiveMQ broker",
  "Resources": {
    "ComplexBroker": {
      "Type": "AWS::AmazonMQ::Broker",
      "Properties": {
        "AutoMinorVersionUpgrade": "false",
        "BrokerName": "MyComplexActiveBroker",
        "Configuration": {
          "Id": { "Ref": "Configuration1" },
          "Revision" : { "Fn::GetAtt": ["Configuration1", "Revision"] }
        },
        "DeploymentMode": "SINGLE_INSTANCE",
        "EngineType": "ActiveMQ",
        "EngineVersion": "5.15.0",
        "HostInstanceType": "mq.t2.micro",
        "Logs": {
            "General": true,
            "Audit": false
        },
        "MaintenanceWindowStartTime": {
          "DayOfWeek": "Monday",
          "TimeOfDay": "22:45",
          "TimeZone": "America/Los_Angeles"
        },
        "PubliclyAccessible": "true",
        "SecurityGroups": [
          "sg-a1b234cd",
          "sg-e5f678gh"
        ],
        "SubnetIds": [
          "subnet-12a3b45c",
          "subnet-67d8e90f"
        ],         
        "Users": [{
          "ConsoleAccess": "true",
          "Password" : "AmazonMqPassword",
          "Username" : "AmazonMqUsername"
        }, {
          "Password" : "AmazonMqPassword2",
          "Username" : "AmazonMqUsername2"
        }, {
          "Groups": [
            "MyGroup1",
            "MyGroup2"
          ],
          "Password" : "AmazonMqPassword3",          
          "Username" : "AmazonMqUsername3" 
        }]
      }
    }
  }
}
```

#### JSON
<a name="aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker--json"></a>

```
{
  "Description": "Create a complex, single-instance Amazon MQ RabbitMQ broker without public accessibility",
  "Resources": {
    "ComplexBroker": {
      "Type": "AWS::AmazonMQ::Broker",
      "Properties": {
        "AutoMinorVersionUpgrade": "true",
        "BrokerName": "MyComplexRabbitBroker",
        "DeploymentMode": "SINGLE_INSTANCE",
        "EngineType": "RabbitMQ",
        "EngineVersion": "3.8.6",
        "HostInstanceType": "mq.t3.micro",
        "Logs": {
          "General": true
        },
        "MaintenanceWindowStartTime": {
          "DayOfWeek": "Monday",
          "TimeOfDay": "22:45",
          "TimeZone": "America/Los_Angeles"
        },
        "PubliclyAccessible": "false",
        "SecurityGroups": [
          "sg-1a234b5cd6efgh7i8"
        ],
        "SubnetIds": [
          "subnet-123456b7891abcd1f"
        ],
        "Users": [
          {
            "Password" : "AmazonMqPassword",
            "Username" : "AmazonMqUsername"
          }
        ]
      }
    }   
  }
}
```

#### YAML
<a name="aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker--yaml"></a>

```
Description: Create a complex, single-instance Amazon MQ for ActiveMQ broker
Resources:
  ComplexBroker:
    Type: 'AWS::AmazonMQ::Broker'
    Properties:
      AutoMinorVersionUpgrade: 'false'
      BrokerName: MyComplexActiveBroker
      Configuration:
        Id: !Ref Configuration1
        Revision: !GetAtt 
          - Configuration1
          - Revision
      DeploymentMode: SINGLE_INSTANCE
      EngineType: ActiveMQ
      EngineVersion: 5.15.0
      HostInstanceType: mq.t2.micro
      Logs:
        General: true
        Audit: false
      MaintenanceWindowStartTime:
        DayOfWeek: Monday
        TimeOfDay: '22:45'
        TimeZone: America/Los_Angeles
      PubliclyAccessible: 'true'
      SecurityGroups:
        - sg-a1b234cd
        - sg-e5f678gh
      SubnetIds:
        - subnet-12a3b45c
        - subnet-67d8e90f
      Users:
        - ConsoleAccess: 'true'
          Password: AmazonMqPassword
          Username: AmazonMqUsername
        - Password: AmazonMqPassword2
          Username: AmazonMqUsername2
        - Groups:
            - MyGroup1
            - MyGroup2
          Password: AmazonMqPassword3
          Username: AmazonMqUsername3
```

#### YAML
<a name="aws-resource-amazonmq-broker--examples--Complex_Amazon_MQ_Broker--yaml"></a>

```
Description: Create a single-instance Amazon MQ for RabbitMQ broker without public accessibility
Resources:
  ComplexBroker:
    Type: 'AWS::AmazonMQ::Broker'
    Properties:
      AutoMinorVersionUpgrade: false
      BrokerName: MyComplexRabbitBroker
      DeploymentMode: SINGLE_INSTANCE
      EngineType: RabbitMQ
      EngineVersion: 3.8.6
      HostInstanceType: mq.t3.micro
      Logs:
        General: true
      MaintenanceWindowStartTime:
        DayOfWeek: Monday
        TimeOfDay: '22:45'
        TimeZone: America/Los_Angeles
      PubliclyAccessible: false
      SecurityGroups:
        - 'sg-1a234b5cd6efgh7i8'
      SubnetIds:
        - 'subnet-123456b7891abcd1f'
      Users:
        - Password: AmazonMqPassword
          Username: AmazonMqUsername
```

# AWS::AmazonMQ::Broker ConfigurationId
<a name="aws-properties-amazonmq-broker-configurationid"></a>

A list of information about the configuration.

## Syntax
<a name="aws-properties-amazonmq-broker-configurationid-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-configurationid-syntax.json"></a>

```
{
  "[Id](#cfn-amazonmq-broker-configurationid-id)" : String,
  "[Revision](#cfn-amazonmq-broker-configurationid-revision)" : Integer
}
```

### YAML
<a name="aws-properties-amazonmq-broker-configurationid-syntax.yaml"></a>

```
  [Id](#cfn-amazonmq-broker-configurationid-id): String
  [Revision](#cfn-amazonmq-broker-configurationid-revision): Integer
```

## Properties
<a name="aws-properties-amazonmq-broker-configurationid-properties"></a>

`Id`  <a name="cfn-amazonmq-broker-configurationid-id"></a>
Required. The unique ID that Amazon MQ generates for the configuration.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Revision`  <a name="cfn-amazonmq-broker-configurationid-revision"></a>
The revision number of the configuration.  
*Required*: Yes  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Broker EncryptionOptions
<a name="aws-properties-amazonmq-broker-encryptionoptions"></a>

Encryption options for the broker.

## Syntax
<a name="aws-properties-amazonmq-broker-encryptionoptions-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-encryptionoptions-syntax.json"></a>

```
{
  "[KmsKeyId](#cfn-amazonmq-broker-encryptionoptions-kmskeyid)" : String,
  "[UseAwsOwnedKey](#cfn-amazonmq-broker-encryptionoptions-useawsownedkey)" : Boolean
}
```

### YAML
<a name="aws-properties-amazonmq-broker-encryptionoptions-syntax.yaml"></a>

```
  [KmsKeyId](#cfn-amazonmq-broker-encryptionoptions-kmskeyid): String
  [UseAwsOwnedKey](#cfn-amazonmq-broker-encryptionoptions-useawsownedkey): Boolean
```

## Properties
<a name="aws-properties-amazonmq-broker-encryptionoptions-properties"></a>

`KmsKeyId`  <a name="cfn-amazonmq-broker-encryptionoptions-kmskeyid"></a>
The customer master key (CMK) to use for the A AWS KMS (KMS). This key is used to encrypt your data at rest. If not provided, Amazon MQ will use a default CMK to encrypt your data.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`UseAwsOwnedKey`  <a name="cfn-amazonmq-broker-encryptionoptions-useawsownedkey"></a>
Enables the use of an AWS owned CMK using AWS KMS (KMS). Set to `true` by default, if no value is provided, for example, for RabbitMQ brokers.  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

# AWS::AmazonMQ::Broker LdapServerMetadata
<a name="aws-properties-amazonmq-broker-ldapservermetadata"></a>

Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

## Syntax
<a name="aws-properties-amazonmq-broker-ldapservermetadata-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-ldapservermetadata-syntax.json"></a>

```
{
  "[Hosts](#cfn-amazonmq-broker-ldapservermetadata-hosts)" : [ String, ... ],
  "[RoleBase](#cfn-amazonmq-broker-ldapservermetadata-rolebase)" : String,
  "[RoleName](#cfn-amazonmq-broker-ldapservermetadata-rolename)" : String,
  "[RoleSearchMatching](#cfn-amazonmq-broker-ldapservermetadata-rolesearchmatching)" : String,
  "[RoleSearchSubtree](#cfn-amazonmq-broker-ldapservermetadata-rolesearchsubtree)" : Boolean,
  "[ServiceAccountPassword](#cfn-amazonmq-broker-ldapservermetadata-serviceaccountpassword)" : String,
  "[ServiceAccountUsername](#cfn-amazonmq-broker-ldapservermetadata-serviceaccountusername)" : String,
  "[UserBase](#cfn-amazonmq-broker-ldapservermetadata-userbase)" : String,
  "[UserRoleName](#cfn-amazonmq-broker-ldapservermetadata-userrolename)" : String,
  "[UserSearchMatching](#cfn-amazonmq-broker-ldapservermetadata-usersearchmatching)" : String,
  "[UserSearchSubtree](#cfn-amazonmq-broker-ldapservermetadata-usersearchsubtree)" : Boolean
}
```

### YAML
<a name="aws-properties-amazonmq-broker-ldapservermetadata-syntax.yaml"></a>

```
  [Hosts](#cfn-amazonmq-broker-ldapservermetadata-hosts): 
    - String
  [RoleBase](#cfn-amazonmq-broker-ldapservermetadata-rolebase): String
  [RoleName](#cfn-amazonmq-broker-ldapservermetadata-rolename): String
  [RoleSearchMatching](#cfn-amazonmq-broker-ldapservermetadata-rolesearchmatching): String
  [RoleSearchSubtree](#cfn-amazonmq-broker-ldapservermetadata-rolesearchsubtree): Boolean
  [ServiceAccountPassword](#cfn-amazonmq-broker-ldapservermetadata-serviceaccountpassword): String
  [ServiceAccountUsername](#cfn-amazonmq-broker-ldapservermetadata-serviceaccountusername): String
  [UserBase](#cfn-amazonmq-broker-ldapservermetadata-userbase): String
  [UserRoleName](#cfn-amazonmq-broker-ldapservermetadata-userrolename): String
  [UserSearchMatching](#cfn-amazonmq-broker-ldapservermetadata-usersearchmatching): String
  [UserSearchSubtree](#cfn-amazonmq-broker-ldapservermetadata-usersearchsubtree): Boolean
```

## Properties
<a name="aws-properties-amazonmq-broker-ldapservermetadata-properties"></a>

`Hosts`  <a name="cfn-amazonmq-broker-ldapservermetadata-hosts"></a>
Property description not available.  
*Required*: Yes  
*Type*: Array of String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoleBase`  <a name="cfn-amazonmq-broker-ldapservermetadata-rolebase"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoleName`  <a name="cfn-amazonmq-broker-ldapservermetadata-rolename"></a>
Property description not available.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoleSearchMatching`  <a name="cfn-amazonmq-broker-ldapservermetadata-rolesearchmatching"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoleSearchSubtree`  <a name="cfn-amazonmq-broker-ldapservermetadata-rolesearchsubtree"></a>
Property description not available.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ServiceAccountPassword`  <a name="cfn-amazonmq-broker-ldapservermetadata-serviceaccountpassword"></a>
Property description not available.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ServiceAccountUsername`  <a name="cfn-amazonmq-broker-ldapservermetadata-serviceaccountusername"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UserBase`  <a name="cfn-amazonmq-broker-ldapservermetadata-userbase"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UserRoleName`  <a name="cfn-amazonmq-broker-ldapservermetadata-userrolename"></a>
Property description not available.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UserSearchMatching`  <a name="cfn-amazonmq-broker-ldapservermetadata-usersearchmatching"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`UserSearchSubtree`  <a name="cfn-amazonmq-broker-ldapservermetadata-usersearchsubtree"></a>
Property description not available.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Broker LogList
<a name="aws-properties-amazonmq-broker-loglist"></a>

The list of information about logs to be enabled for the specified broker.

## Syntax
<a name="aws-properties-amazonmq-broker-loglist-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-loglist-syntax.json"></a>

```
{
  "[Audit](#cfn-amazonmq-broker-loglist-audit)" : Boolean,
  "[General](#cfn-amazonmq-broker-loglist-general)" : Boolean
}
```

### YAML
<a name="aws-properties-amazonmq-broker-loglist-syntax.yaml"></a>

```
  [Audit](#cfn-amazonmq-broker-loglist-audit): Boolean
  [General](#cfn-amazonmq-broker-loglist-general): Boolean
```

## Properties
<a name="aws-properties-amazonmq-broker-loglist-properties"></a>

`Audit`  <a name="cfn-amazonmq-broker-loglist-audit"></a>
Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. Does not apply to RabbitMQ brokers.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`General`  <a name="cfn-amazonmq-broker-loglist-general"></a>
Enables general logging.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Broker MaintenanceWindow
<a name="aws-properties-amazonmq-broker-maintenancewindow"></a>

The parameters that determine the WeeklyStartTime.

## Syntax
<a name="aws-properties-amazonmq-broker-maintenancewindow-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-maintenancewindow-syntax.json"></a>

```
{
  "[DayOfWeek](#cfn-amazonmq-broker-maintenancewindow-dayofweek)" : String,
  "[TimeOfDay](#cfn-amazonmq-broker-maintenancewindow-timeofday)" : String,
  "[TimeZone](#cfn-amazonmq-broker-maintenancewindow-timezone)" : String
}
```

### YAML
<a name="aws-properties-amazonmq-broker-maintenancewindow-syntax.yaml"></a>

```
  [DayOfWeek](#cfn-amazonmq-broker-maintenancewindow-dayofweek): String
  [TimeOfDay](#cfn-amazonmq-broker-maintenancewindow-timeofday): String
  [TimeZone](#cfn-amazonmq-broker-maintenancewindow-timezone): String
```

## Properties
<a name="aws-properties-amazonmq-broker-maintenancewindow-properties"></a>

`DayOfWeek`  <a name="cfn-amazonmq-broker-maintenancewindow-dayofweek"></a>
Required. The day of the week.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY | SATURDAY | SUNDAY`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TimeOfDay`  <a name="cfn-amazonmq-broker-maintenancewindow-timeofday"></a>
Required. The time, in 24-hour format.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[0-9]{1,2}:[0-9]{2}(:[0-9]{2})?$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TimeZone`  <a name="cfn-amazonmq-broker-maintenancewindow-timezone"></a>
The time zone, UTC by default, in either the Country/City format, or the UTC offset format.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Broker TagsEntry
<a name="aws-properties-amazonmq-broker-tagsentry"></a>

Create tags when creating the broker.

## Syntax
<a name="aws-properties-amazonmq-broker-tagsentry-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-tagsentry-syntax.json"></a>

```
{
  "[Key](#cfn-amazonmq-broker-tagsentry-key)" : String,
  "[Value](#cfn-amazonmq-broker-tagsentry-value)" : String
}
```

### YAML
<a name="aws-properties-amazonmq-broker-tagsentry-syntax.yaml"></a>

```
  [Key](#cfn-amazonmq-broker-tagsentry-key): String
  [Value](#cfn-amazonmq-broker-tagsentry-value): String
```

## Properties
<a name="aws-properties-amazonmq-broker-tagsentry-properties"></a>

`Key`  <a name="cfn-amazonmq-broker-tagsentry-key"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-amazonmq-broker-tagsentry-value"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Broker User
<a name="aws-properties-amazonmq-broker-user"></a>

The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.

When OAuth 2.0 is enabled, the broker accepts one or no users.

## Syntax
<a name="aws-properties-amazonmq-broker-user-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-broker-user-syntax.json"></a>

```
{
  "[ConsoleAccess](#cfn-amazonmq-broker-user-consoleaccess)" : Boolean,
  "[Groups](#cfn-amazonmq-broker-user-groups)" : [ String, ... ],
  "[Password](#cfn-amazonmq-broker-user-password)" : String,
  "[ReplicationUser](#cfn-amazonmq-broker-user-replicationuser)" : Boolean,
  "[Username](#cfn-amazonmq-broker-user-username)" : String
}
```

### YAML
<a name="aws-properties-amazonmq-broker-user-syntax.yaml"></a>

```
  [ConsoleAccess](#cfn-amazonmq-broker-user-consoleaccess): Boolean
  [Groups](#cfn-amazonmq-broker-user-groups): 
    - String
  [Password](#cfn-amazonmq-broker-user-password): String
  [ReplicationUser](#cfn-amazonmq-broker-user-replicationuser): Boolean
  [Username](#cfn-amazonmq-broker-user-username): String
```

## Properties
<a name="aws-properties-amazonmq-broker-user-properties"></a>

`ConsoleAccess`  <a name="cfn-amazonmq-broker-user-consoleaccess"></a>
Enables access to the ActiveMQ Web Console for the ActiveMQ user. Does not apply to RabbitMQ brokers.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Groups`  <a name="cfn-amazonmq-broker-user-groups"></a>
The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . \$1 \$1). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.  
*Required*: No  
*Type*: Array of String  
*Maximum*: `20`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Password`  <a name="cfn-amazonmq-broker-user-password"></a>
 Required. The password of the user. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).  
*Required*: Yes  
*Type*: String  
*Pattern*: `^[^,:=]+$`  
*Minimum*: `12`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ReplicationUser`  <a name="cfn-amazonmq-broker-user-replicationuser"></a>
Defines if this user is intended for CRDR replication purposes.  
*Required*: No  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Username`  <a name="cfn-amazonmq-broker-user-username"></a>
The username of the broker user. The following restrictions apply to broker usernames:  
+  For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . \$1 \$1). This value must be 2-100 characters long. 
+ For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . \$1). This value must not contain a tilde (\$1) character. Amazon MQ prohibts using `guest` as a valid usename. This value must be 2-100 characters long.
 Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other AWS services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data. 
*Required*: Yes  
*Type*: String  
*Pattern*: `^[A-Za-z0-9_.~-]{2,100}$`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::Configuration
<a name="aws-resource-amazonmq-configuration"></a>

Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).

## Syntax
<a name="aws-resource-amazonmq-configuration-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-amazonmq-configuration-syntax.json"></a>

```
{
  "Type" : "AWS::AmazonMQ::Configuration",
  "Properties" : {
      "[AuthenticationStrategy](#cfn-amazonmq-configuration-authenticationstrategy)" : String,
      "[Data](#cfn-amazonmq-configuration-data)" : String,
      "[Description](#cfn-amazonmq-configuration-description)" : String,
      "[EngineType](#cfn-amazonmq-configuration-enginetype)" : String,
      "[EngineVersion](#cfn-amazonmq-configuration-engineversion)" : String,
      "[Name](#cfn-amazonmq-configuration-name)" : String,
      "[Tags](#cfn-amazonmq-configuration-tags)" : [ TagsEntry, ... ]
    }
}
```

### YAML
<a name="aws-resource-amazonmq-configuration-syntax.yaml"></a>

```
Type: AWS::AmazonMQ::Configuration
Properties:
  [AuthenticationStrategy](#cfn-amazonmq-configuration-authenticationstrategy): String
  [Data](#cfn-amazonmq-configuration-data): String
  [Description](#cfn-amazonmq-configuration-description): String
  [EngineType](#cfn-amazonmq-configuration-enginetype): String
  [EngineVersion](#cfn-amazonmq-configuration-engineversion): String
  [Name](#cfn-amazonmq-configuration-name): String
  [Tags](#cfn-amazonmq-configuration-tags): 
    - TagsEntry
```

## Properties
<a name="aws-resource-amazonmq-configuration-properties"></a>

`AuthenticationStrategy`  <a name="cfn-amazonmq-configuration-authenticationstrategy"></a>
Optional. The authentication strategy associated with the configuration. The default is `SIMPLE`.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Data`  <a name="cfn-amazonmq-configuration-data"></a>
Amazon MQ for Active MQ: The base64-encoded XML configuration. Amazon MQ for RabbitMQ: the base64-encoded Cuttlefish configuration.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Description`  <a name="cfn-amazonmq-configuration-description"></a>
The description of the configuration.  
*Required*: No  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`EngineType`  <a name="cfn-amazonmq-configuration-enginetype"></a>
Required. The type of broker engine. Currently, Amazon MQ supports `ACTIVEMQ` and `RABBITMQ`.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EngineVersion`  <a name="cfn-amazonmq-configuration-engineversion"></a>
The broker engine version. Defaults to the latest available version for the specified broker engine type. For more information, see the [ActiveMQ version management](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/activemq-version-management.html) and the [RabbitMQ version management](https://docs.aws.amazon.com//amazon-mq/latest/developer-guide/rabbitmq-version-management.html) sections in the Amazon MQ Developer Guide.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Name`  <a name="cfn-amazonmq-configuration-name"></a>
Required. The name of the configuration. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . \$1 \$1). This value must be 1-150 characters long.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-amazonmq-configuration-tags"></a>
Create tags when creating the configuration.  
*Required*: No  
*Type*: Array of [TagsEntry](aws-properties-amazonmq-configuration-tagsentry.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-amazonmq-configuration-return-values"></a>

### Ref
<a name="aws-resource-amazonmq-configuration-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Amazon MQ configuration ID. For example: 

 `c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

### Fn::GetAtt
<a name="aws-resource-amazonmq-configuration-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-amazonmq-configuration-return-values-fn--getatt-fn--getatt"></a>

`Arn`  <a name="Arn-fn::getatt"></a>
The Amazon Resource Name (ARN) of the Amazon MQ configuration.  
 `arn:aws:mq:us-east-2:123456789012:configuration:MyConfigurationDevelopment:c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

`Id`  <a name="Id-fn::getatt"></a>
The ID of the Amazon MQ configuration.  
 `c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

`Revision`  <a name="Revision-fn::getatt"></a>
The revision number of the configuration.  
 `1` 

## Examples
<a name="aws-resource-amazonmq-configuration--examples"></a>

### Amazon MQ Configuration
<a name="aws-resource-amazonmq-configuration--examples--Amazon_MQ_Configuration"></a>

#### JSON
<a name="aws-resource-amazonmq-configuration--examples--Amazon_MQ_Configuration--json"></a>

```
{
  "Description": "Create an Amazon MQ for ActiveMQ configuration",
    "Configuration1": {
      "Type": "AWS::AmazonMQ::Configuration",
      "Properties": {
        "Data": {
          "Fn::Base64": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<broker xmlns=\"http://activemq.apache.org/schema/core\" start=\"false\">\n  <destinationPolicy>\n    <policyMap>\n      <policyEntries>\n        <policyEntry topic=\">\">\n          <pendingMessageLimitStrategy>\n            <constantPendingMessageLimitStrategy limit=\"3000\"/>\n          </pendingMessageLimitStrategy>\n        </policyEntry>\n      </policyEntries>\n    </policyMap>\n  </destinationPolicy>\n  <plugins>\n  </plugins>\n</broker>\n"
        },
        "EngineType": "ACTIVEMQ",
        "EngineVersion": "5.15.0",
        "Name": "my-configuration-1"
      }
   }
}
```

#### YAML
<a name="aws-resource-amazonmq-configuration--examples--Amazon_MQ_Configuration--yaml"></a>

```
--- 
Description: "Create an Amazon MQ for ActiveMQ configuration"
Resources: 
  Configuration: 
    Type: "AWS::AmazonMQ::Configuration"
    Properties: 
      Data: 
        ? "Fn::Base64"
        : |
            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
            <broker xmlns="http://activemq.apache.org/schema/core" start="false">
              <destinationPolicy>
                <policyMap>
                  <policyEntries>
                    <policyEntry topic=">">
                      <pendingMessageLimitStrategy>
                        <constantPendingMessageLimitStrategy limit="3000"/>
                      </pendingMessageLimitStrategy>
                    </policyEntry>
                  </policyEntries>
                </policyMap>
              </destinationPolicy>
              <plugins>
              </plugins>
            </broker>
      EngineType: ACTIVEMQ
      EngineVersion: "5.15.0"
      Name: my-configuration-1
```

# AWS::AmazonMQ::Configuration TagsEntry
<a name="aws-properties-amazonmq-configuration-tagsentry"></a>

The list of all tags associated with this configuration.

## Syntax
<a name="aws-properties-amazonmq-configuration-tagsentry-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-configuration-tagsentry-syntax.json"></a>

```
{
  "[Key](#cfn-amazonmq-configuration-tagsentry-key)" : String,
  "[Value](#cfn-amazonmq-configuration-tagsentry-value)" : String
}
```

### YAML
<a name="aws-properties-amazonmq-configuration-tagsentry-syntax.yaml"></a>

```
  [Key](#cfn-amazonmq-configuration-tagsentry-key): String
  [Value](#cfn-amazonmq-configuration-tagsentry-value): String
```

## Properties
<a name="aws-properties-amazonmq-configuration-tagsentry-properties"></a>

`Key`  <a name="cfn-amazonmq-configuration-tagsentry-key"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Value`  <a name="cfn-amazonmq-configuration-tagsentry-value"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

# AWS::AmazonMQ::ConfigurationAssociation
<a name="aws-resource-amazonmq-configurationassociation"></a>

<a name="aws-resource-amazonmq-configurationassociation-description"></a>The `AWS::AmazonMQ::ConfigurationAssociation` resource Property description not available. for AmazonMQ.

## Syntax
<a name="aws-resource-amazonmq-configurationassociation-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-amazonmq-configurationassociation-syntax.json"></a>

```
{
  "Type" : "AWS::AmazonMQ::ConfigurationAssociation",
  "Properties" : {
      "[Broker](#cfn-amazonmq-configurationassociation-broker)" : String,
      "[Configuration](#cfn-amazonmq-configurationassociation-configuration)" : ConfigurationId
    }
}
```

### YAML
<a name="aws-resource-amazonmq-configurationassociation-syntax.yaml"></a>

```
Type: AWS::AmazonMQ::ConfigurationAssociation
Properties:
  [Broker](#cfn-amazonmq-configurationassociation-broker): String
  [Configuration](#cfn-amazonmq-configurationassociation-configuration): 
    ConfigurationId
```

## Properties
<a name="aws-resource-amazonmq-configurationassociation-properties"></a>

`Broker`  <a name="cfn-amazonmq-configurationassociation-broker"></a>
Property description not available.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Configuration`  <a name="cfn-amazonmq-configurationassociation-configuration"></a>
Returns information about all configurations.  
*Required*: Yes  
*Type*: [ConfigurationId](aws-properties-amazonmq-configurationassociation-configurationid.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

## Return values
<a name="aws-resource-amazonmq-configurationassociation-return-values"></a>

### Ref
<a name="aws-resource-amazonmq-configurationassociation-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the Amazon MQ configurationassociation ID. For example: 

 `c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9` 

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-amazonmq-configurationassociation-return-values-fn--getatt"></a>

## Examples
<a name="aws-resource-amazonmq-configurationassociation--examples"></a>

### ConfigurationAssociation
<a name="aws-resource-amazonmq-configurationassociation--examples--ConfigurationAssociation"></a>

The following example creates an Amazon MQ for ActiveMQ ConfigurationAssociation.

#### JSON
<a name="aws-resource-amazonmq-configurationassociation--examples--ConfigurationAssociation--json"></a>

```
"ConfigurationAssociation1": {
		"Type": "AWS::AmazonMQ::ConfigurationAssociation",
		"Properties": {
			"Broker": {
				"Ref": "Broker1"
			},
			"Configuration": {
				"Id": {
					"Ref": "Configuration1"
				},
				"Revision": {
					"Fn::GetAtt": [
						"Configuration1",
						"Revision"
					]
				}
			}
		}
	}
```

#### YAML
<a name="aws-resource-amazonmq-configurationassociation--examples--ConfigurationAssociation--yaml"></a>

```
 ConfigurationAssociation1:
    Type: AWS::AmazonMQ::ConfigurationAssociation
    Properties:
      Broker: {Ref: Broker1}
      Configuration:
        Id: {Ref: Configuration1}
        Revision: {'Fn::GetAtt': [Configuration1, Revision]}
```

# AWS::AmazonMQ::ConfigurationAssociation ConfigurationId
<a name="aws-properties-amazonmq-configurationassociation-configurationid"></a>

A list of information about the configuration.

## Syntax
<a name="aws-properties-amazonmq-configurationassociation-configurationid-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-amazonmq-configurationassociation-configurationid-syntax.json"></a>

```
{
  "[Id](#cfn-amazonmq-configurationassociation-configurationid-id)" : String,
  "[Revision](#cfn-amazonmq-configurationassociation-configurationid-revision)" : Integer
}
```

### YAML
<a name="aws-properties-amazonmq-configurationassociation-configurationid-syntax.yaml"></a>

```
  [Id](#cfn-amazonmq-configurationassociation-configurationid-id): String
  [Revision](#cfn-amazonmq-configurationassociation-configurationid-revision): Integer
```

## Properties
<a name="aws-properties-amazonmq-configurationassociation-configurationid-properties"></a>

`Id`  <a name="cfn-amazonmq-configurationassociation-configurationid-id"></a>
Required. The unique ID that Amazon MQ generates for the configuration.  
*Required*: Yes  
*Type*: String  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Revision`  <a name="cfn-amazonmq-configurationassociation-configurationid-revision"></a>
The revision number of the configuration.  
*Required*: Yes  
*Type*: Integer  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)