Class CfnBroker
A broker is a message broker environment running on Amazon MQ .
Inherited Members
Namespace: Amazon.CDK.AWS.AmazonMQ
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBroker : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnBroker
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
It is the basic building block of Amazon MQ .
The AWS::AmazonMQ::Broker
resource lets you create Amazon MQ for ActiveMQ and Amazon MQ for RabbitMQ brokers, add configuration changes or modify users for a speified ActiveMQ broker, return information about the specified broker, and delete the broker. For more information, see How Amazon MQ works in the Amazon MQ Developer Guide .
This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account.
This permission is required to attach the ENI to the broker instance.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html
CloudformationResource: AWS::AmazonMQ::Broker
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmazonMQ;
var cfnBroker = new CfnBroker(this, "MyCfnBroker", new CfnBrokerProps {
AutoMinorVersionUpgrade = false,
BrokerName = "brokerName",
DeploymentMode = "deploymentMode",
EngineType = "engineType",
EngineVersion = "engineVersion",
HostInstanceType = "hostInstanceType",
PubliclyAccessible = false,
Users = new [] { new UserProperty {
Password = "password",
Username = "username",
// the properties below are optional
ConsoleAccess = false,
Groups = new [] { "groups" },
ReplicationUser = false
} },
// the properties below are optional
AuthenticationStrategy = "authenticationStrategy",
Configuration = new ConfigurationIdProperty {
Id = "id",
Revision = 123
},
DataReplicationMode = "dataReplicationMode",
DataReplicationPrimaryBrokerArn = "dataReplicationPrimaryBrokerArn",
EncryptionOptions = new EncryptionOptionsProperty {
UseAwsOwnedKey = false,
// the properties below are optional
KmsKeyId = "kmsKeyId"
},
LdapServerMetadata = new LdapServerMetadataProperty {
Hosts = new [] { "hosts" },
RoleBase = "roleBase",
RoleSearchMatching = "roleSearchMatching",
ServiceAccountPassword = "serviceAccountPassword",
ServiceAccountUsername = "serviceAccountUsername",
UserBase = "userBase",
UserSearchMatching = "userSearchMatching",
// the properties below are optional
RoleName = "roleName",
RoleSearchSubtree = false,
UserRoleName = "userRoleName",
UserSearchSubtree = false
},
Logs = new LogListProperty {
Audit = false,
General = false
},
MaintenanceWindowStartTime = new MaintenanceWindowProperty {
DayOfWeek = "dayOfWeek",
TimeOfDay = "timeOfDay",
TimeZone = "timeZone"
},
SecurityGroups = new [] { "securityGroups" },
StorageType = "storageType",
SubnetIds = new [] { "subnetIds" },
Tags = new [] { new TagsEntryProperty {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnBroker(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnBroker(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnBroker(Construct, String, ICfnBrokerProps) |
Properties
AttrAmqpEndpoints | The AMQP endpoints of each broker instance as a list of strings. |
AttrArn | The Amazon Resource Name (ARN) of the Amazon MQ broker. |
AttrConfigurationId | The unique ID that Amazon MQ generates for the configuration. |
AttrConfigurationRevision | The revision number of the configuration. |
AttrId | Required. |
AttrIpAddresses | The IP addresses of each broker instance as a list of strings. Does not apply to RabbitMQ brokers. |
AttrMqttEndpoints | The MQTT endpoints of each broker instance as a list of strings. |
AttrOpenWireEndpoints | The OpenWire endpoints of each broker instance as a list of strings. |
AttrStompEndpoints | The STOMP endpoints of each broker instance as a list of strings. |
AttrWssEndpoints | The WSS endpoints of each broker instance as a list of strings. |
AuthenticationStrategy | Optional. |
AutoMinorVersionUpgrade | Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ. |
BrokerName | The name of the broker. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Configuration | A list of information about the configuration. |
DataReplicationMode | Defines whether this broker is a part of a data replication pair. |
DataReplicationPrimaryBrokerArn | 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. |
DeploymentMode | The deployment mode of the broker. |
EncryptionOptions | Encryption options for the broker. |
EngineType | The type of broker engine. |
EngineVersion | The version of the broker engine. |
HostInstanceType | The broker's instance type. |
LdapServerMetadata | Optional. |
Logs | Enables Amazon CloudWatch logging for brokers. |
MaintenanceWindowStartTime | The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker. |
PubliclyAccessible | Enables connections from applications outside of the VPC that hosts the broker's subnets. |
SecurityGroups | The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. |
StorageType | The broker's storage type. |
SubnetIds | The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | An array of key-value pairs. |
Users | The list of broker users (persons or applications) who can access queues and topics. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnBroker(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnBroker(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnBroker(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnBroker(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnBroker(Construct, String, ICfnBrokerProps)
public CfnBroker(Construct scope, string id, ICfnBrokerProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnBrokerProps
Resource properties.
Properties
AttrAmqpEndpoints
The AMQP endpoints of each broker instance as a list of strings.
public virtual string[] AttrAmqpEndpoints { get; }
Property Value
System.String[]
Remarks
amqp+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:5671
CloudformationAttribute: AmqpEndpoints
AttrArn
The Amazon Resource Name (ARN) of the Amazon MQ broker.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
arn:aws:mq:us-east-2:123456789012:broker:MyBroker:b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
CloudformationAttribute: Arn
AttrConfigurationId
The unique ID that Amazon MQ generates for the configuration.
public virtual string AttrConfigurationId { get; }
Property Value
System.String
Remarks
c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
CloudformationAttribute: ConfigurationId
AttrConfigurationRevision
The revision number of the configuration.
public virtual double AttrConfigurationRevision { get; }
Property Value
System.Double
Remarks
1
CloudformationAttribute: ConfigurationRevision
AttrId
Required.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
The unique ID that Amazon MQ generates for the configuration.
CloudformationAttribute: Id
AttrIpAddresses
The IP addresses of each broker instance as a list of strings. Does not apply to RabbitMQ brokers.
public virtual string[] AttrIpAddresses { get; }
Property Value
System.String[]
Remarks
['198.51.100.2', '203.0.113.9']
CloudformationAttribute: IpAddresses
AttrMqttEndpoints
The MQTT endpoints of each broker instance as a list of strings.
public virtual string[] AttrMqttEndpoints { get; }
Property Value
System.String[]
Remarks
mqtt+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:8883
CloudformationAttribute: MqttEndpoints
AttrOpenWireEndpoints
The OpenWire endpoints of each broker instance as a list of strings.
public virtual string[] AttrOpenWireEndpoints { get; }
Property Value
System.String[]
Remarks
ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61617
CloudformationAttribute: OpenWireEndpoints
AttrStompEndpoints
The STOMP endpoints of each broker instance as a list of strings.
public virtual string[] AttrStompEndpoints { get; }
Property Value
System.String[]
Remarks
stomp+ssl://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61614
CloudformationAttribute: StompEndpoints
AttrWssEndpoints
The WSS endpoints of each broker instance as a list of strings.
public virtual string[] AttrWssEndpoints { get; }
Property Value
System.String[]
Remarks
wss://b-4aada85d-a80c-4be0-9d30-e344a01b921e-1.mq.eu-central-amazonaws.com:61619
CloudformationAttribute: WssEndpoints
AuthenticationStrategy
Optional.
public virtual string AuthenticationStrategy { get; set; }
Property Value
System.String
AutoMinorVersionUpgrade
Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ.
public virtual object AutoMinorVersionUpgrade { get; set; }
Property Value
System.Object
BrokerName
The name of the broker.
public virtual string BrokerName { get; set; }
Property Value
System.String
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
Configuration
A list of information about the configuration.
public virtual object Configuration { get; set; }
Property Value
System.Object
DataReplicationMode
Defines whether this broker is a part of a data replication pair.
public virtual string DataReplicationMode { get; set; }
Property Value
System.String
DataReplicationPrimaryBrokerArn
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.
public virtual string DataReplicationPrimaryBrokerArn { get; set; }
Property Value
System.String
DeploymentMode
The deployment mode of the broker.
public virtual string DeploymentMode { get; set; }
Property Value
System.String
Remarks
Available values:.
EncryptionOptions
Encryption options for the broker.
public virtual object EncryptionOptions { get; set; }
Property Value
System.Object
EngineType
The type of broker engine.
public virtual string EngineType { get; set; }
Property Value
System.String
EngineVersion
The version of the broker engine.
public virtual string EngineVersion { get; set; }
Property Value
System.String
HostInstanceType
The broker's instance type.
public virtual string HostInstanceType { get; set; }
Property Value
System.String
LdapServerMetadata
Optional.
public virtual object LdapServerMetadata { get; set; }
Property Value
System.Object
Logs
Enables Amazon CloudWatch logging for brokers.
public virtual object Logs { get; set; }
Property Value
System.Object
MaintenanceWindowStartTime
The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.
public virtual object MaintenanceWindowStartTime { get; set; }
Property Value
System.Object
PubliclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets.
public virtual object PubliclyAccessible { get; set; }
Property Value
System.Object
SecurityGroups
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
public virtual string[] SecurityGroups { get; set; }
Property Value
System.String[]
StorageType
The broker's storage type.
public virtual string StorageType { get; set; }
Property Value
System.String
SubnetIds
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
public virtual string[] SubnetIds { get; set; }
Property Value
System.String[]
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
An array of key-value pairs.
public virtual CfnBroker.ITagsEntryProperty[] TagsRaw { get; set; }
Property Value
CfnBroker.ITagsEntryProperty[]
Users
The list of broker users (persons or applications) who can access queues and topics.
public virtual object Users { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>