pub struct CreateBrokerFluentBuilder { /* private fields */ }
Expand description

Fluent builder constructing a request to CreateBroker.

Creates a broker. Note: This API is asynchronous.

To create a broker, you must either use the AmazonMQFullAccess IAM policy or include the following EC2 permissions in your IAM policy.

  • ec2:CreateNetworkInterface

    This permission is required to allow Amazon MQ to create an elastic network interface (ENI) on behalf of your account.

  • ec2:CreateNetworkInterfacePermission

    This permission is required to attach the ENI to the broker instance.

  • ec2:DeleteNetworkInterface

  • ec2:DeleteNetworkInterfacePermission

  • ec2:DetachNetworkInterface

  • ec2:DescribeInternetGateways

  • ec2:DescribeNetworkInterfaces

  • ec2:DescribeNetworkInterfacePermissions

  • ec2:DescribeRouteTables

  • ec2:DescribeSecurityGroups

  • ec2:DescribeSubnets

  • ec2:DescribeVpcs

For more information, see Create an IAM User and Get Your Amazon Web Services Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide.

Implementations§

source§

impl CreateBrokerFluentBuilder

source

pub fn as_input(&self) -> &CreateBrokerInputBuilder

Access the CreateBroker as a reference.

source

pub async fn send( self ) -> Result<CreateBrokerOutput, SdkError<CreateBrokerError, HttpResponse>>

Sends the request and returns the response.

If an error occurs, an SdkError will be returned with additional details that can be matched against.

By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.

source

pub async fn customize( self ) -> Result<CustomizableOperation<CreateBrokerOutput, CreateBrokerError>, SdkError<CreateBrokerError>>

Consumes this builder, creating a customizable operation that can be modified before being sent.

source

pub fn authentication_strategy(self, input: AuthenticationStrategy) -> Self

Optional. The authentication strategy used to secure the broker. The default is SIMPLE.

source

pub fn set_authentication_strategy( self, input: Option<AuthenticationStrategy> ) -> Self

Optional. The authentication strategy used to secure the broker. The default is SIMPLE.

source

pub fn get_authentication_strategy(&self) -> &Option<AuthenticationStrategy>

Optional. The authentication strategy used to secure the broker. The default is SIMPLE.

source

pub fn auto_minor_version_upgrade(self, input: bool) -> Self

Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.

source

pub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self

Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.

source

pub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>

Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.

source

pub fn broker_name(self, input: impl Into<String>) -> Self

Required. The broker's name. This value must be unique in your Amazon Web Services 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 Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.

source

pub fn set_broker_name(self, input: Option<String>) -> Self

Required. The broker's name. This value must be unique in your Amazon Web Services 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 Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.

source

pub fn get_broker_name(&self) -> &Option<String>

Required. The broker's name. This value must be unique in your Amazon Web Services 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 Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.

source

pub fn configuration(self, input: ConfigurationId) -> Self

A list of information about the configuration.

source

pub fn set_configuration(self, input: Option<ConfigurationId>) -> Self

A list of information about the configuration.

source

pub fn get_configuration(&self) -> &Option<ConfigurationId>

A list of information about the configuration.

source

pub fn creator_request_id(self, input: impl Into<String>) -> Self

The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.

We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.

source

pub fn set_creator_request_id(self, input: Option<String>) -> Self

The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.

We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.

source

pub fn get_creator_request_id(&self) -> &Option<String>

The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.

We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.

source

pub fn deployment_mode(self, input: DeploymentMode) -> Self

Required. The broker's deployment mode.

source

pub fn set_deployment_mode(self, input: Option<DeploymentMode>) -> Self

Required. The broker's deployment mode.

source

pub fn get_deployment_mode(&self) -> &Option<DeploymentMode>

Required. The broker's deployment mode.

source

pub fn encryption_options(self, input: EncryptionOptions) -> Self

Encryption options for the broker.

source

pub fn set_encryption_options(self, input: Option<EncryptionOptions>) -> Self

Encryption options for the broker.

source

pub fn get_encryption_options(&self) -> &Option<EncryptionOptions>

Encryption options for the broker.

source

pub fn engine_type(self, input: EngineType) -> Self

Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

source

pub fn set_engine_type(self, input: Option<EngineType>) -> Self

Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

source

pub fn get_engine_type(&self) -> &Option<EngineType>

Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

source

pub fn engine_version(self, input: impl Into<String>) -> Self

Required. The broker engine's version. For a list of supported engine versions, see Supported engines.

source

pub fn set_engine_version(self, input: Option<String>) -> Self

Required. The broker engine's version. For a list of supported engine versions, see Supported engines.

source

pub fn get_engine_version(&self) -> &Option<String>

Required. The broker engine's version. For a list of supported engine versions, see Supported engines.

source

pub fn host_instance_type(self, input: impl Into<String>) -> Self

Required. The broker's instance type.

source

pub fn set_host_instance_type(self, input: Option<String>) -> Self

Required. The broker's instance type.

source

pub fn get_host_instance_type(&self) -> &Option<String>

Required. The broker's instance type.

source

pub fn ldap_server_metadata(self, input: LdapServerMetadataInput) -> Self

Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

source

pub fn set_ldap_server_metadata( self, input: Option<LdapServerMetadataInput> ) -> Self

Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

source

pub fn get_ldap_server_metadata(&self) -> &Option<LdapServerMetadataInput>

Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

source

pub fn logs(self, input: Logs) -> Self

Enables Amazon CloudWatch logging for brokers.

source

pub fn set_logs(self, input: Option<Logs>) -> Self

Enables Amazon CloudWatch logging for brokers.

source

pub fn get_logs(&self) -> &Option<Logs>

Enables Amazon CloudWatch logging for brokers.

source

pub fn maintenance_window_start_time(self, input: WeeklyStartTime) -> Self

The parameters that determine the WeeklyStartTime.

source

pub fn set_maintenance_window_start_time( self, input: Option<WeeklyStartTime> ) -> Self

The parameters that determine the WeeklyStartTime.

source

pub fn get_maintenance_window_start_time(&self) -> &Option<WeeklyStartTime>

The parameters that determine the WeeklyStartTime.

source

pub fn publicly_accessible(self, input: bool) -> Self

Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.

source

pub fn set_publicly_accessible(self, input: Option<bool>) -> Self

Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.

source

pub fn get_publicly_accessible(&self) -> &Option<bool>

Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.

source

pub fn security_groups(self, input: impl Into<String>) -> Self

Appends an item to SecurityGroups.

To override the contents of this collection use set_security_groups.

The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.

source

pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self

The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.

source

pub fn get_security_groups(&self) -> &Option<Vec<String>>

The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.

source

pub fn storage_type(self, input: BrokerStorageType) -> Self

The broker's storage type.

source

pub fn set_storage_type(self, input: Option<BrokerStorageType>) -> Self

The broker's storage type.

source

pub fn get_storage_type(&self) -> &Option<BrokerStorageType>

The broker's storage type.

source

pub fn subnet_ids(self, input: impl Into<String>) -> Self

Appends an item to SubnetIds.

To override the contents of this collection use set_subnet_ids.

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 Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

source

pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self

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 Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

source

pub fn get_subnet_ids(&self) -> &Option<Vec<String>>

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 Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to Tags.

To override the contents of this collection use set_tags.

Create tags when creating the broker.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

Create tags when creating the broker.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

Create tags when creating the broker.

source

pub fn users(self, input: User) -> Self

Appends an item to Users.

To override the contents of this collection use set_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.

source

pub fn set_users(self, input: Option<Vec<User>>) -> Self

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.

source

pub fn get_users(&self) -> &Option<Vec<User>>

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.

source

pub fn data_replication_mode(self, input: DataReplicationMode) -> Self

Defines whether this broker is a part of a data replication pair.

source

pub fn set_data_replication_mode( self, input: Option<DataReplicationMode> ) -> Self

Defines whether this broker is a part of a data replication pair.

source

pub fn get_data_replication_mode(&self) -> &Option<DataReplicationMode>

Defines whether this broker is a part of a data replication pair.

source

pub fn data_replication_primary_broker_arn( self, input: impl Into<String> ) -> Self

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.

source

pub fn set_data_replication_primary_broker_arn( self, input: Option<String> ) -> Self

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.

source

pub fn get_data_replication_primary_broker_arn(&self) -> &Option<String>

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.

Trait Implementations§

source§

impl Clone for CreateBrokerFluentBuilder

source§

fn clone(&self) -> CreateBrokerFluentBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateBrokerFluentBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more