Class CfnBrokerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBrokerProps>
- Enclosing interface:
CfnBrokerProps
CfnBrokerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticationStrategy(String authenticationStrategy) Sets the value ofCfnBrokerProps.getAuthenticationStrategy()autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnBrokerProps.getAutoMinorVersionUpgrade()autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnBrokerProps.getAutoMinorVersionUpgrade()brokerName(String brokerName) Sets the value ofCfnBrokerProps.getBrokerName()build()Builds the configured instance.configuration(IResolvable configuration) Sets the value ofCfnBrokerProps.getConfiguration()configuration(CfnBroker.ConfigurationIdProperty configuration) Sets the value ofCfnBrokerProps.getConfiguration()dataReplicationMode(String dataReplicationMode) Sets the value ofCfnBrokerProps.getDataReplicationMode()dataReplicationPrimaryBrokerArn(String dataReplicationPrimaryBrokerArn) Sets the value ofCfnBrokerProps.getDataReplicationPrimaryBrokerArn()deploymentMode(String deploymentMode) Sets the value ofCfnBrokerProps.getDeploymentMode()encryptionOptions(IResolvable encryptionOptions) Sets the value ofCfnBrokerProps.getEncryptionOptions()encryptionOptions(CfnBroker.EncryptionOptionsProperty encryptionOptions) Sets the value ofCfnBrokerProps.getEncryptionOptions()engineType(String engineType) Sets the value ofCfnBrokerProps.getEngineType()engineVersion(String engineVersion) Sets the value ofCfnBrokerProps.getEngineVersion()hostInstanceType(String hostInstanceType) Sets the value ofCfnBrokerProps.getHostInstanceType()ldapServerMetadata(IResolvable ldapServerMetadata) Sets the value ofCfnBrokerProps.getLdapServerMetadata()ldapServerMetadata(CfnBroker.LdapServerMetadataProperty ldapServerMetadata) Sets the value ofCfnBrokerProps.getLdapServerMetadata()logs(IResolvable logs) Sets the value ofCfnBrokerProps.getLogs()Sets the value ofCfnBrokerProps.getLogs()maintenanceWindowStartTime(IResolvable maintenanceWindowStartTime) Sets the value ofCfnBrokerProps.getMaintenanceWindowStartTime()maintenanceWindowStartTime(CfnBroker.MaintenanceWindowProperty maintenanceWindowStartTime) Sets the value ofCfnBrokerProps.getMaintenanceWindowStartTime()publiclyAccessible(Boolean publiclyAccessible) Sets the value ofCfnBrokerProps.getPubliclyAccessible()publiclyAccessible(IResolvable publiclyAccessible) Sets the value ofCfnBrokerProps.getPubliclyAccessible()securityGroups(List<String> securityGroups) Sets the value ofCfnBrokerProps.getSecurityGroups()storageType(String storageType) Sets the value ofCfnBrokerProps.getStorageType()Sets the value ofCfnBrokerProps.getSubnetIds()tags(List<? extends CfnBroker.TagsEntryProperty> tags) Sets the value ofCfnBrokerProps.getTags()Sets the value ofCfnBrokerProps.getUsers()users(IResolvable users) Sets the value ofCfnBrokerProps.getUsers()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
brokerName
Sets the value ofCfnBrokerProps.getBrokerName()- Parameters:
brokerName- Required. This parameter is 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.
- Returns:
this
-
deploymentMode
Sets the value ofCfnBrokerProps.getDeploymentMode()- Parameters:
deploymentMode- Required. This parameter is required. The broker's deployment mode.- Returns:
this
-
engineType
Sets the value ofCfnBrokerProps.getEngineType()- Parameters:
engineType- Required. This parameter is required. The type of broker engine. Currently, Amazon MQ supportsACTIVEMQandRABBITMQ.- Returns:
this
-
hostInstanceType
Sets the value ofCfnBrokerProps.getHostInstanceType()- Parameters:
hostInstanceType- Required. This parameter is required. The broker's instance type.- Returns:
this
-
publiclyAccessible
Sets the value ofCfnBrokerProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required. Set tofalseby default, if no value is provided.- Returns:
this
-
publiclyAccessible
Sets the value ofCfnBrokerProps.getPubliclyAccessible()- Parameters:
publiclyAccessible- Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required. Set tofalseby default, if no value is provided.- Returns:
this
-
authenticationStrategy
@Stability(Stable) public CfnBrokerProps.Builder authenticationStrategy(String authenticationStrategy) Sets the value ofCfnBrokerProps.getAuthenticationStrategy()- Parameters:
authenticationStrategy- Optional. The authentication strategy used to secure the broker. The default isSIMPLE.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnBrokerProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) Sets the value ofCfnBrokerProps.getAutoMinorVersionUpgrade()- Parameters:
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 totrueby 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.- Returns:
this
-
autoMinorVersionUpgrade
@Stability(Stable) public CfnBrokerProps.Builder autoMinorVersionUpgrade(IResolvable autoMinorVersionUpgrade) Sets the value ofCfnBrokerProps.getAutoMinorVersionUpgrade()- Parameters:
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 totrueby 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.- Returns:
this
-
configuration
Sets the value ofCfnBrokerProps.getConfiguration()- Parameters:
configuration- A list of information about the configuration.- Returns:
this
-
configuration
@Stability(Stable) public CfnBrokerProps.Builder configuration(CfnBroker.ConfigurationIdProperty configuration) Sets the value ofCfnBrokerProps.getConfiguration()- Parameters:
configuration- A list of information about the configuration.- Returns:
this
-
dataReplicationMode
Sets the value ofCfnBrokerProps.getDataReplicationMode()- Parameters:
dataReplicationMode- Defines whether this broker is a part of a data replication pair.- Returns:
this
-
dataReplicationPrimaryBrokerArn
@Stability(Stable) public CfnBrokerProps.Builder dataReplicationPrimaryBrokerArn(String dataReplicationPrimaryBrokerArn) Sets the value ofCfnBrokerProps.getDataReplicationPrimaryBrokerArn()- 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. Must be set when dataReplicationMode is set to CRDR.- Returns:
this
-
encryptionOptions
Sets the value ofCfnBrokerProps.getEncryptionOptions()- Parameters:
encryptionOptions- Encryption options for the broker.- Returns:
this
-
encryptionOptions
@Stability(Stable) public CfnBrokerProps.Builder encryptionOptions(CfnBroker.EncryptionOptionsProperty encryptionOptions) Sets the value ofCfnBrokerProps.getEncryptionOptions()- Parameters:
encryptionOptions- Encryption options for the broker.- Returns:
this
-
engineVersion
Sets the value ofCfnBrokerProps.getEngineVersion()- Parameters:
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.- Returns:
this
-
ldapServerMetadata
Sets the value ofCfnBrokerProps.getLdapServerMetadata()- Parameters:
ldapServerMetadata- Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.- Returns:
this
-
ldapServerMetadata
@Stability(Stable) public CfnBrokerProps.Builder ldapServerMetadata(CfnBroker.LdapServerMetadataProperty ldapServerMetadata) Sets the value ofCfnBrokerProps.getLdapServerMetadata()- Parameters:
ldapServerMetadata- Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.- Returns:
this
-
logs
Sets the value ofCfnBrokerProps.getLogs()- Parameters:
logs- Enables Amazon CloudWatch logging for brokers.- Returns:
this
-
logs
Sets the value ofCfnBrokerProps.getLogs()- Parameters:
logs- Enables Amazon CloudWatch logging for brokers.- Returns:
this
-
maintenanceWindowStartTime
@Stability(Stable) public CfnBrokerProps.Builder maintenanceWindowStartTime(IResolvable maintenanceWindowStartTime) Sets the value ofCfnBrokerProps.getMaintenanceWindowStartTime()- Parameters:
maintenanceWindowStartTime- The parameters that determine the WeeklyStartTime.- Returns:
this
-
maintenanceWindowStartTime
@Stability(Stable) public CfnBrokerProps.Builder maintenanceWindowStartTime(CfnBroker.MaintenanceWindowProperty maintenanceWindowStartTime) Sets the value ofCfnBrokerProps.getMaintenanceWindowStartTime()- Parameters:
maintenanceWindowStartTime- The parameters that determine the WeeklyStartTime.- Returns:
this
-
securityGroups
Sets the value ofCfnBrokerProps.getSecurityGroups()- Parameters:
securityGroups- The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.- Returns:
this
-
storageType
Sets the value ofCfnBrokerProps.getStorageType()- Parameters:
storageType- The broker's storage type.- Returns:
this
-
subnetIds
Sets the value ofCfnBrokerProps.getSubnetIds()- Parameters:
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 .
- Returns:
this
-
tags
@Stability(Stable) public CfnBrokerProps.Builder tags(List<? extends CfnBroker.TagsEntryProperty> tags) Sets the value ofCfnBrokerProps.getTags()- Parameters:
tags- Create tags when creating the broker.- Returns:
this
-
users
Sets the value ofCfnBrokerProps.getUsers()- Parameters:
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.
- Returns:
this
-
users
Sets the value ofCfnBrokerProps.getUsers()- Parameters:
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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBrokerProps>- Returns:
- a new instance of
CfnBrokerProps - Throws:
NullPointerException- if any required attribute was not provided
-