Class CfnBroker.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBroker>
- Enclosing class:
CfnBroker
CfnBroker.-
Method Summary
Modifier and TypeMethodDescriptionauthenticationStrategy(String authenticationStrategy) Optional.autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ.autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ.brokerName(String brokerName) Required.build()configuration(IResolvable configuration) A list of information about the configuration.configuration(CfnBroker.ConfigurationIdProperty configuration) A list of information about the configuration.static CfnBroker.BuilderdataReplicationMode(String dataReplicationMode) Defines whether this broker is a part of a data replication pair.dataReplicationPrimaryBrokerArn(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.deploymentMode(String deploymentMode) Required.encryptionOptions(IResolvable encryptionOptions) Encryption options for the broker.encryptionOptions(CfnBroker.EncryptionOptionsProperty encryptionOptions) Encryption options for the broker.engineType(String engineType) Required.engineVersion(String engineVersion) The broker engine version.hostInstanceType(String hostInstanceType) Required.ldapServerMetadata(IResolvable ldapServerMetadata) Optional.ldapServerMetadata(CfnBroker.LdapServerMetadataProperty ldapServerMetadata) Optional.logs(IResolvable logs) Enables Amazon CloudWatch logging for brokers.Enables Amazon CloudWatch logging for brokers.maintenanceWindowStartTime(IResolvable maintenanceWindowStartTime) The parameters that determine the WeeklyStartTime.maintenanceWindowStartTime(CfnBroker.MaintenanceWindowProperty maintenanceWindowStartTime) The parameters that determine the WeeklyStartTime.publiclyAccessible(Boolean publiclyAccessible) Enables connections from applications outside of the VPC that hosts the broker's subnets.publiclyAccessible(IResolvable publiclyAccessible) Enables connections from applications outside of the VPC that hosts the broker's subnets.securityGroups(List<String> securityGroups) The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.storageType(String storageType) The broker's storage type.The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.tags(List<? extends CfnBroker.TagsEntryProperty> tags) Create tags when creating the broker.The list of broker users (persons or applications) who can access queues and topics.users(IResolvable users) The list of broker users (persons or applications) who can access queues and topics.
-
Method Details
-
create
@Stability(Stable) public static CfnBroker.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnBroker.Builder.
-
brokerName
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.
- Parameters:
brokerName- Required. This parameter is required.- Returns:
this- See Also:
-
deploymentMode
Required.The broker's deployment mode.
- Parameters:
deploymentMode- Required. This parameter is required.- Returns:
this- See Also:
-
engineType
Required.The type of broker engine. Currently, Amazon MQ supports
ACTIVEMQandRABBITMQ.- Parameters:
engineType- Required. This parameter is required.- Returns:
this- See Also:
-
hostInstanceType
Required.The broker's instance type.
- Parameters:
hostInstanceType- Required. This parameter is required.- Returns:
this- See Also:
-
publiclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets.Set to
falseby default, if no value is provided.- Parameters:
publiclyAccessible- Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required.- Returns:
this- See Also:
-
publiclyAccessible
Enables connections from applications outside of the VPC that hosts the broker's subnets.Set to
falseby default, if no value is provided.- Parameters:
publiclyAccessible- Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required.- Returns:
this- See Also:
-
authenticationStrategy
Optional.The authentication strategy used to secure the broker. The default is
SIMPLE.- Parameters:
authenticationStrategy- Optional. This parameter is required.- Returns:
this- See Also:
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnBroker.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) 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
trueby default, if no value is specified.Must be set to
truefor ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.- Parameters:
autoMinorVersionUpgrade- Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. This parameter is required.- Returns:
this- See Also:
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnBroker.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) 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
trueby default, if no value is specified.Must be set to
truefor ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.- Parameters:
autoMinorVersionUpgrade- Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. This parameter is required.- Returns:
this- See Also:
-
configuration
A list of information about the configuration.- Parameters:
configuration- A list of information about the configuration. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnBroker.Builder configuration(CfnBroker.ConfigurationIdProperty configuration) A list of information about the configuration.- Parameters:
configuration- A list of information about the configuration. This parameter is required.- Returns:
this- See Also:
-
dataReplicationMode
Defines whether this broker is a part of a data replication pair.- Parameters:
dataReplicationMode- Defines whether this broker is a part of a data replication pair. This parameter is required.- Returns:
this- See Also:
-
dataReplicationPrimaryBrokerArn
@Stability(Stable) public CfnBroker.Builder dataReplicationPrimaryBrokerArn(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.Must be set when dataReplicationMode is set to CRDR.
- Parameters:
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. This parameter is required.- Returns:
this- See Also:
-
encryptionOptions
Encryption options for the broker.- Parameters:
encryptionOptions- Encryption options for the broker. This parameter is required.- Returns:
this- See Also:
-
encryptionOptions
@Stability(Stable) public CfnBroker.Builder encryptionOptions(CfnBroker.EncryptionOptionsProperty encryptionOptions) Encryption options for the broker.- Parameters:
encryptionOptions- Encryption options for the broker. This parameter is required.- Returns:
this- See Also:
-
engineVersion
The broker engine version.Defaults to the latest available version for the specified broker engine type. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
- Parameters:
engineVersion- The broker engine version. This parameter is required.- Returns:
this- See Also:
-
ldapServerMetadata
Optional.The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
- Parameters:
ldapServerMetadata- Optional. This parameter is required.- Returns:
this- See Also:
-
ldapServerMetadata
@Stability(Stable) public CfnBroker.Builder ldapServerMetadata(CfnBroker.LdapServerMetadataProperty ldapServerMetadata) Optional.The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
- Parameters:
ldapServerMetadata- Optional. This parameter is required.- Returns:
this- See Also:
-
logs
Enables Amazon CloudWatch logging for brokers.- Parameters:
logs- Enables Amazon CloudWatch logging for brokers. This parameter is required.- Returns:
this- See Also:
-
logs
Enables Amazon CloudWatch logging for brokers.- Parameters:
logs- Enables Amazon CloudWatch logging for brokers. This parameter is required.- Returns:
this- See Also:
-
maintenanceWindowStartTime
@Stability(Stable) public CfnBroker.Builder maintenanceWindowStartTime(IResolvable maintenanceWindowStartTime) The parameters that determine the WeeklyStartTime.- Parameters:
maintenanceWindowStartTime- The parameters that determine the WeeklyStartTime. This parameter is required.- Returns:
this- See Also:
-
maintenanceWindowStartTime
@Stability(Stable) public CfnBroker.Builder maintenanceWindowStartTime(CfnBroker.MaintenanceWindowProperty maintenanceWindowStartTime) The parameters that determine the WeeklyStartTime.- Parameters:
maintenanceWindowStartTime- The parameters that determine the WeeklyStartTime. This parameter is required.- Returns:
this- See Also:
-
securityGroups
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.- Parameters:
securityGroups- The list of rules (1 minimum, 125 maximum) that authorize connections to brokers. This parameter is required.- Returns:
this- See Also:
-
storageType
The broker's storage type.- Parameters:
storageType- The broker's storage type. This parameter is required.- Returns:
this- See Also:
-
subnetIds
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_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ 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 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 .
- Parameters:
subnetIds- The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. This parameter is required.- Returns:
this- See Also:
-
tags
Create tags when creating the broker.- Parameters:
tags- Create tags when creating the broker. This parameter is required.- Returns:
this- See Also:
-
users
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.
- Parameters:
users- The list of broker users (persons or applications) who can access queues and topics. This parameter is required.- Returns:
this- See Also:
-
users
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.
- Parameters:
users- The list of broker users (persons or applications) who can access queues and topics. This parameter is required.- Returns:
this- See Also:
-
build
-