class CfnBrokerPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AmazonMQ.Mixins.CfnBrokerPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsamazonmq/mixins#CfnBrokerPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.amazonmq.mixins.CfnBrokerPropsMixin |
Python | aws_cdk.mixins_preview.aws_amazonmq.mixins.CfnBrokerPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_amazonmq » mixins » CfnBrokerPropsMixin |
Implements
IMixin
Extends
Mixin
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:DeleteNetworkInterfaceec2:DeleteNetworkInterfacePermissionec2:DetachNetworkInterfaceec2:DescribeInternetGatewaysec2:DescribeNetworkInterfacesec2:DescribeNetworkInterfacePermissionsec2:DescribeRouteTablesec2:DescribeSecurityGroupsec2:DescribeSubnetsec2: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 .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as amazonmq_mixins } from '@aws-cdk/mixins-preview/aws-amazonmq';
const cfnBrokerPropsMixin = new amazonmq_mixins.CfnBrokerPropsMixin({
authenticationStrategy: 'authenticationStrategy',
autoMinorVersionUpgrade: false,
brokerName: 'brokerName',
configuration: {
id: 'id',
revision: 123,
},
dataReplicationMode: 'dataReplicationMode',
dataReplicationPrimaryBrokerArn: 'dataReplicationPrimaryBrokerArn',
deploymentMode: 'deploymentMode',
encryptionOptions: {
kmsKeyId: 'kmsKeyId',
useAwsOwnedKey: false,
},
engineType: 'engineType',
engineVersion: 'engineVersion',
hostInstanceType: 'hostInstanceType',
ldapServerMetadata: {
hosts: ['hosts'],
roleBase: 'roleBase',
roleName: 'roleName',
roleSearchMatching: 'roleSearchMatching',
roleSearchSubtree: false,
serviceAccountPassword: 'serviceAccountPassword',
serviceAccountUsername: 'serviceAccountUsername',
userBase: 'userBase',
userRoleName: 'userRoleName',
userSearchMatching: 'userSearchMatching',
userSearchSubtree: false,
},
logs: {
audit: false,
general: false,
},
maintenanceWindowStartTime: {
dayOfWeek: 'dayOfWeek',
timeOfDay: 'timeOfDay',
timeZone: 'timeZone',
},
publiclyAccessible: false,
securityGroups: ['securityGroups'],
storageType: 'storageType',
subnetIds: ['subnetIds'],
tags: [{
key: 'key',
value: 'value',
}],
users: [{
consoleAccess: false,
groups: ['groups'],
password: 'password',
replicationUser: false,
username: 'username',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnBrokerPropsMixin(props: CfnBrokerMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Broker Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::AmazonMQ::Broker.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript