Class CfnBroker.UserProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amazonmq.CfnBroker.UserProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBroker.UserProperty>
- Enclosing interface:
CfnBroker.UserProperty
@Stability(Stable)
public static final class CfnBroker.UserProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBroker.UserProperty>
A builder for
CfnBroker.UserProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consoleAccess(Boolean consoleAccess) Sets the value ofCfnBroker.UserProperty.getConsoleAccess()consoleAccess(IResolvable consoleAccess) Sets the value ofCfnBroker.UserProperty.getConsoleAccess()Sets the value ofCfnBroker.UserProperty.getGroups()Sets the value ofCfnBroker.UserProperty.getPassword()replicationUser(Boolean replicationUser) Sets the value ofCfnBroker.UserProperty.getReplicationUser()replicationUser(IResolvable replicationUser) Sets the value ofCfnBroker.UserProperty.getReplicationUser()Sets the value ofCfnBroker.UserProperty.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
Sets the value ofCfnBroker.UserProperty.getPassword()- Parameters:
password- The password of the user. This parameter is required. This value must be at least 12 characters long, must contain at least 4 unique characters, and must not contain commas, colons, or equal signs (,:=).- Returns:
this
-
username
Sets the value ofCfnBroker.UserProperty.getUsername()- Parameters:
username- The username of the broker user. This parameter is required. For Amazon MQ for ActiveMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). For Amazon MQ for RabbitMQ brokers, this value can contain only alphanumeric characters, dashes, periods, underscores (- . _). This value must not contain a tilde (~) character. Amazon MQ prohibts using guest as a valid usename. This value must be 2-100 characters long.Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other AWS services, including CloudWatch Logs . Broker usernames are not intended to be used for private or sensitive data.
- Returns:
this
-
consoleAccess
Sets the value ofCfnBroker.UserProperty.getConsoleAccess()- Parameters:
consoleAccess- Enables access to the ActiveMQ web console for the ActiveMQ user. Does not apply to RabbitMQ brokers.- Returns:
this
-
consoleAccess
Sets the value ofCfnBroker.UserProperty.getConsoleAccess()- Parameters:
consoleAccess- Enables access to the ActiveMQ web console for the ActiveMQ user. Does not apply to RabbitMQ brokers.- Returns:
this
-
groups
Sets the value ofCfnBroker.UserProperty.getGroups()- Parameters:
groups- The list of groups (20 maximum) to which the ActiveMQ user belongs. This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 2-100 characters long. Does not apply to RabbitMQ brokers.- Returns:
this
-
replicationUser
Sets the value ofCfnBroker.UserProperty.getReplicationUser()- Parameters:
replicationUser- Defines if this user is intended for CRDR replication purposes.- Returns:
this
-
replicationUser
@Stability(Stable) public CfnBroker.UserProperty.Builder replicationUser(IResolvable replicationUser) Sets the value ofCfnBroker.UserProperty.getReplicationUser()- Parameters:
replicationUser- Defines if this user is intended for CRDR replication purposes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBroker.UserProperty>- Returns:
- a new instance of
CfnBroker.UserProperty - Throws:
NullPointerException- if any required attribute was not provided
-