Class CfnBroker
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IBrokerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 .
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
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amazonmq.*;
CfnBroker cfnBroker = CfnBroker.Builder.create(this, "MyCfnBroker")
.brokerName("brokerName")
.deploymentMode("deploymentMode")
.engineType("engineType")
.hostInstanceType("hostInstanceType")
.publiclyAccessible(false)
// the properties below are optional
.authenticationStrategy("authenticationStrategy")
.autoMinorVersionUpgrade(false)
.configuration(ConfigurationIdProperty.builder()
.id("id")
.revision(123)
.build())
.dataReplicationMode("dataReplicationMode")
.dataReplicationPrimaryBrokerArn("dataReplicationPrimaryBrokerArn")
.encryptionOptions(EncryptionOptionsProperty.builder()
.useAwsOwnedKey(false)
// the properties below are optional
.kmsKeyId("kmsKeyId")
.build())
.engineVersion("engineVersion")
.ldapServerMetadata(LdapServerMetadataProperty.builder()
.hosts(List.of("hosts"))
.roleBase("roleBase")
.roleSearchMatching("roleSearchMatching")
.serviceAccountUsername("serviceAccountUsername")
.userBase("userBase")
.userSearchMatching("userSearchMatching")
// the properties below are optional
.roleName("roleName")
.roleSearchSubtree(false)
.serviceAccountPassword("serviceAccountPassword")
.userRoleName("userRoleName")
.userSearchSubtree(false)
.build())
.logs(LogListProperty.builder()
.audit(false)
.general(false)
.build())
.maintenanceWindowStartTime(MaintenanceWindowProperty.builder()
.dayOfWeek("dayOfWeek")
.timeOfDay("timeOfDay")
.timeZone("timeZone")
.build())
.securityGroups(List.of("securityGroups"))
.storageType("storageType")
.subnetIds(List.of("subnetIds"))
.tags(List.of(TagsEntryProperty.builder()
.key("key")
.value("value")
.build()))
.users(List.of(UserProperty.builder()
.password("password")
.username("username")
// the properties below are optional
.consoleAccess(false)
.groups(List.of("groups"))
.replicationUser(false)
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnBroker.static interfaceA list of information about the configuration.static interfaceEncryption options for the broker.static interfaceOptional.static interfaceThe list of information about logs to be enabled for the specified broker.static interfaceThe parameters that determine theWeeklyStartTimeto apply pending updates or patches to the broker.static interfaceA key-value pair to associate with the broker.static interfaceThe list of broker users (persons or applications) who can access queues and topics.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.amazonmq.IBrokerRef
IBrokerRef.Jsii$Default, IBrokerRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBroker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBroker(software.amazon.jsii.JsiiObjectRef objRef) CfnBroker(software.constructs.Construct scope, String id, CfnBrokerProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe AMQP endpoints of each broker instance as a list of strings.The Amazon Resource Name (ARN) of the Amazon MQ broker.The unique ID that Amazon MQ generates for the configuration.The revision number of the configuration.The version in use.Required.The IP addresses of each broker instance as a list of strings.The MQTT endpoints of each broker instance as a list of strings.The OpenWire endpoints of each broker instance as a list of strings.The STOMP endpoints of each broker instance as a list of strings.The WSS endpoints of each broker instance as a list of strings.Optional.Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ.The name of the broker.A reference to a Broker resource.A list of information about the configuration.Defines whether this broker is a part of a data replication pair.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.The deployment mode of the broker.Encryption options for the broker.The type of broker engine.The version of the broker engine.The broker's instance type.Optional.getLogs()Enables Amazon CloudWatch logging for brokers.The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.Enables connections from applications outside of the VPC that hosts the broker's subnets.The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.The broker's storage type.The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.getTags()Tag Manager which manages the tags for this resource.An array of key-value pairs.getUsers()The list of broker users (persons or applications) who can access queues and topics.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAuthenticationStrategy(String value) Optional.voidEnables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ.voidEnables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ.voidsetBrokerName(String value) The name of the broker.voidsetConfiguration(IResolvable value) A list of information about the configuration.voidA list of information about the configuration.voidsetDataReplicationMode(String value) Defines whether this broker is a part of a data replication pair.voidThe 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.voidsetDeploymentMode(String value) The deployment mode of the broker.voidsetEncryptionOptions(IResolvable value) Encryption options for the broker.voidEncryption options for the broker.voidsetEngineType(String value) The type of broker engine.voidsetEngineVersion(String value) The version of the broker engine.voidsetHostInstanceType(String value) The broker's instance type.voidsetLdapServerMetadata(IResolvable value) Optional.voidOptional.voidsetLogs(IResolvable value) Enables Amazon CloudWatch logging for brokers.voidsetLogs(CfnBroker.LogListProperty value) Enables Amazon CloudWatch logging for brokers.voidThe scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.voidThe scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.voidsetPubliclyAccessible(Boolean value) Enables connections from applications outside of the VPC that hosts the broker's subnets.voidsetPubliclyAccessible(IResolvable value) Enables connections from applications outside of the VPC that hosts the broker's subnets.voidsetSecurityGroups(List<String> value) The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.voidsetStorageType(String value) The broker's storage type.voidsetSubnetIds(List<String> value) The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.voidAn array of key-value pairs.voidThe list of broker users (persons or applications) who can access queues and topics.voidsetUsers(IResolvable value) The list of broker users (persons or applications) who can access queues and topics.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBroker
protected CfnBroker(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBroker
protected CfnBroker(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBroker
@Stability(Stable) public CfnBroker(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBrokerProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAmqpEndpoints
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 -
getAttrArn
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 -
getAttrConfigurationId
The unique ID that Amazon MQ generates for the configuration.c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9 -
getAttrConfigurationRevision
The revision number of the configuration.1 -
getAttrConsoleUrLs
-
getAttrEngineVersionCurrent
The version in use.This may have more precision than the specified EngineVersion.
-
getAttrId
Required.The unique ID that Amazon MQ generates for the configuration.
-
getAttrIpAddresses
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'] -
getAttrMqttEndpoints
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 -
getAttrOpenWireEndpoints
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 -
getAttrStompEndpoints
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 -
getAttrWssEndpoints
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 -
getBrokerRef
A reference to a Broker resource.- Specified by:
getBrokerRefin interfaceIBrokerRef
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getBrokerName
The name of the broker. -
setBrokerName
The name of the broker. -
getDeploymentMode
The deployment mode of the broker.Available values:.
-
setDeploymentMode
The deployment mode of the broker.Available values:.
-
getEngineType
The type of broker engine. -
setEngineType
The type of broker engine. -
getHostInstanceType
The broker's instance type. -
setHostInstanceType
The broker's instance type. -
getPubliclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets.Returns union: either
BooleanorIResolvable -
setPubliclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets. -
setPubliclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets. -
getAuthenticationStrategy
Optional. -
setAuthenticationStrategy
Optional. -
getAutoMinorVersionUpgrade
Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ.Returns union: either
BooleanorIResolvable -
setAutoMinorVersionUpgrade
Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ. -
setAutoMinorVersionUpgrade
Enables automatic upgrades to new minor versions for brokers, as new broker engine versions are released and supported by Amazon MQ. -
getConfiguration
A list of information about the configuration.Returns union: either
IResolvableorCfnBroker.ConfigurationIdProperty -
setConfiguration
A list of information about the configuration. -
setConfiguration
A list of information about the configuration. -
getDataReplicationMode
Defines whether this broker is a part of a data replication pair. -
setDataReplicationMode
Defines whether this broker is a part of a data replication pair. -
getDataReplicationPrimaryBrokerArn
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. -
setDataReplicationPrimaryBrokerArn
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. -
getEncryptionOptions
Encryption options for the broker.Returns union: either
IResolvableorCfnBroker.EncryptionOptionsProperty -
setEncryptionOptions
Encryption options for the broker. -
setEncryptionOptions
@Stability(Stable) public void setEncryptionOptions(@Nullable CfnBroker.EncryptionOptionsProperty value) Encryption options for the broker. -
getEngineVersion
The version of the broker engine. -
setEngineVersion
The version of the broker engine. -
getLdapServerMetadata
Optional.Returns union: either
IResolvableorCfnBroker.LdapServerMetadataProperty -
setLdapServerMetadata
Optional. -
setLdapServerMetadata
@Stability(Stable) public void setLdapServerMetadata(@Nullable CfnBroker.LdapServerMetadataProperty value) Optional. -
getLogs
Enables Amazon CloudWatch logging for brokers.Returns union: either
IResolvableorCfnBroker.LogListProperty -
setLogs
Enables Amazon CloudWatch logging for brokers. -
setLogs
Enables Amazon CloudWatch logging for brokers. -
getMaintenanceWindowStartTime
The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker.Returns union: either
IResolvableorCfnBroker.MaintenanceWindowProperty -
setMaintenanceWindowStartTime
The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker. -
setMaintenanceWindowStartTime
@Stability(Stable) public void setMaintenanceWindowStartTime(@Nullable CfnBroker.MaintenanceWindowProperty value) The scheduled time period relative to UTC during which Amazon MQ begins to apply pending updates or patches to the broker. -
getSecurityGroups
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. -
setSecurityGroups
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. -
getStorageType
The broker's storage type. -
setStorageType
The broker's storage type. -
getSubnetIds
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. -
setSubnetIds
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. -
getTagsRaw
An array of key-value pairs. -
setTagsRaw
An array of key-value pairs. -
getUsers
The list of broker users (persons or applications) who can access queues and topics.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBroker.UserProperty> -
setUsers
The list of broker users (persons or applications) who can access queues and topics. -
setUsers
The list of broker users (persons or applications) who can access queues and topics.
-