AWS::AmazonMQ::ConfigurationAssociation
Use the AWS CloudFormation AWS::AmazonMQ::ConfigurationAssociation resource to
associate a Configuration with a Broker, or return information about the specified
configurationassociation. Only use one per broker, and don't use a configuration on
the broker resource if you have associated a configuration with that broker.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::AmazonMQ::ConfigurationAssociation", "Properties" : { "Broker" :String, "Configuration" : ConfigurationId } }
YAML
Type: "AWS::AmazonMQ::ConfigurationAssociation" Properties: Broker:StringConfiguration: ConfigurationId
Properties
Broker-
The broker to associate with a configuration.
Required: Yes
Type: String
Update requires: Replacement
Configuration-
The configuration to associate with a broker.
Required: Yes
Type: ConfigurationId
Update requires: No interruption
Return Values
Ref
When you pass the logical ID of an AWS::AmazonMQ::ConfigurationAssociation
resource to the intrinsic Ref function, the function returns the Amazon MQ
configurationassociation ID. For example:
c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
For more information about using the
Ref function, see
Ref.
Examples
ConfigurationAssociation
The following example creates an Amazon MQ ConfigurationAssociation.
JSON
"ConfigurationAssociation1": { "Type": "AWS::AmazonMQ::ConfigurationAssociation", "Properties": { "Broker": { "Ref": "Broker1" }, "Configuration": { "Id": { "Ref": "Configuration1" }, "Revision": { "Fn::GetAtt": [ "Configuration1", "Revision" ] } } } }
YAML
ConfigurationAssociation1: Type: AWS::AmazonMQ::ConfigurationAssociation Properties: Broker: {Ref: Broker1} Configuration: Id: {Ref: Configuration1} Revision: {'Fn::GetAtt': [Configuration1, Revision]}
See Also
-
Broker Architecture in the Amazon MQ Developer Guide
