Class CfnBrokerProps.Builder

java.lang.Object
software.amazon.awscdk.services.amazonmq.CfnBrokerProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBrokerProps>
Enclosing interface:
CfnBrokerProps

@Stability(Stable) public static final class CfnBrokerProps.Builder extends Object implements software.amazon.jsii.Builder<CfnBrokerProps>
A builder for CfnBrokerProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • brokerName

      @Stability(Stable) public CfnBrokerProps.Builder brokerName(String brokerName)
      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

      @Stability(Stable) public CfnBrokerProps.Builder deploymentMode(String deploymentMode)
      Parameters:
      deploymentMode - Required. This parameter is required. The broker's deployment mode.
      Returns:
      this
    • engineType

      @Stability(Stable) public CfnBrokerProps.Builder engineType(String engineType)
      Parameters:
      engineType - Required. This parameter is required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ .
      Returns:
      this
    • hostInstanceType

      @Stability(Stable) public CfnBrokerProps.Builder hostInstanceType(String hostInstanceType)
      Parameters:
      hostInstanceType - Required. This parameter is required. The broker's instance type.
      Returns:
      this
    • publiclyAccessible

      @Stability(Stable) public CfnBrokerProps.Builder publiclyAccessible(Boolean publiclyAccessible)
      Parameters:
      publiclyAccessible - Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required. Set to false by default, if no value is provided.
      Returns:
      this
    • publiclyAccessible

      @Stability(Stable) public CfnBrokerProps.Builder publiclyAccessible(IResolvable publiclyAccessible)
      Parameters:
      publiclyAccessible - Enables connections from applications outside of the VPC that hosts the broker's subnets. This parameter is required. Set to false by default, if no value is provided.
      Returns:
      this
    • authenticationStrategy

      @Stability(Stable) public CfnBrokerProps.Builder authenticationStrategy(String authenticationStrategy)
      Parameters:
      authenticationStrategy - Optional. The authentication strategy used to secure the broker. The default is SIMPLE .
      Returns:
      this
    • autoMinorVersionUpgrade

      @Stability(Stable) public CfnBrokerProps.Builder autoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade)
      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 to true by default, if no value is specified.

      Must be set to true for 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)
      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 to true by default, if no value is specified.

      Must be set to true for ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.

      Returns:
      this
    • configuration

      @Stability(Stable) public CfnBrokerProps.Builder configuration(IResolvable configuration)
      Parameters:
      configuration - A list of information about the configuration.
      Returns:
      this
    • configuration

      @Stability(Stable) public CfnBrokerProps.Builder configuration(CfnBroker.ConfigurationIdProperty configuration)
      Parameters:
      configuration - A list of information about the configuration.
      Returns:
      this
    • dataReplicationMode

      @Stability(Stable) public CfnBrokerProps.Builder dataReplicationMode(String dataReplicationMode)
      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)
      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

      @Stability(Stable) public CfnBrokerProps.Builder encryptionOptions(IResolvable encryptionOptions)
      Parameters:
      encryptionOptions - Encryption options for the broker.
      Returns:
      this
    • encryptionOptions

      @Stability(Stable) public CfnBrokerProps.Builder encryptionOptions(CfnBroker.EncryptionOptionsProperty encryptionOptions)
      Parameters:
      encryptionOptions - Encryption options for the broker.
      Returns:
      this
    • engineVersion

      @Stability(Stable) public CfnBrokerProps.Builder engineVersion(String engineVersion)
      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

      @Stability(Stable) public CfnBrokerProps.Builder ldapServerMetadata(IResolvable ldapServerMetadata)
      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)
      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

      @Stability(Stable) public CfnBrokerProps.Builder logs(IResolvable logs)
      Sets the value of CfnBrokerProps.getLogs()
      Parameters:
      logs - Enables Amazon CloudWatch logging for brokers.
      Returns:
      this
    • logs

      @Stability(Stable) public CfnBrokerProps.Builder logs(CfnBroker.LogListProperty logs)
      Sets the value of CfnBrokerProps.getLogs()
      Parameters:
      logs - Enables Amazon CloudWatch logging for brokers.
      Returns:
      this
    • maintenanceWindowStartTime

      @Stability(Stable) public CfnBrokerProps.Builder maintenanceWindowStartTime(IResolvable maintenanceWindowStartTime)
      Parameters:
      maintenanceWindowStartTime - The parameters that determine the WeeklyStartTime.
      Returns:
      this
    • maintenanceWindowStartTime

      @Stability(Stable) public CfnBrokerProps.Builder maintenanceWindowStartTime(CfnBroker.MaintenanceWindowProperty maintenanceWindowStartTime)
      Parameters:
      maintenanceWindowStartTime - The parameters that determine the WeeklyStartTime.
      Returns:
      this
    • securityGroups

      @Stability(Stable) public CfnBrokerProps.Builder securityGroups(List<String> securityGroups)
      Parameters:
      securityGroups - The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
      Returns:
      this
    • storageType

      @Stability(Stable) public CfnBrokerProps.Builder storageType(String storageType)
      Parameters:
      storageType - The broker's storage type.
      Returns:
      this
    • subnetIds

      @Stability(Stable) public CfnBrokerProps.Builder subnetIds(List<String> subnetIds)
      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 of CfnBrokerProps.getTags()
      Parameters:
      tags - Create tags when creating the broker.
      Returns:
      this
    • users

      @Stability(Stable) public CfnBrokerProps.Builder users(IResolvable users)
      Sets the value of CfnBrokerProps.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

      @Stability(Stable) public CfnBrokerProps.Builder users(List<? extends Object> users)
      Sets the value of CfnBrokerProps.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

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