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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • password

      @Stability(Stable) public CfnBroker.UserProperty.Builder password(String password)
      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

      @Stability(Stable) public CfnBroker.UserProperty.Builder username(String username)
      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

      @Stability(Stable) public CfnBroker.UserProperty.Builder consoleAccess(Boolean consoleAccess)
      Parameters:
      consoleAccess - Enables access to the ActiveMQ web console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
      Returns:
      this
    • consoleAccess

      @Stability(Stable) public CfnBroker.UserProperty.Builder consoleAccess(IResolvable consoleAccess)
      Parameters:
      consoleAccess - Enables access to the ActiveMQ web console for the ActiveMQ user. Does not apply to RabbitMQ brokers.
      Returns:
      this
    • groups

      @Stability(Stable) public CfnBroker.UserProperty.Builder groups(List<String> groups)
      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

      @Stability(Stable) public CfnBroker.UserProperty.Builder replicationUser(Boolean replicationUser)
      Parameters:
      replicationUser - Defines if this user is intended for CRDR replication purposes.
      Returns:
      this
    • replicationUser

      @Stability(Stable) public CfnBroker.UserProperty.Builder replicationUser(IResolvable replicationUser)
      Parameters:
      replicationUser - Defines if this user is intended for CRDR replication purposes.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBroker.UserProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBroker.UserProperty>
      Returns:
      a new instance of CfnBroker.UserProperty
      Throws:
      NullPointerException - if any required attribute was not provided