#[non_exhaustive]pub struct CreateBrokerInputBuilder { /* private fields */ }
Expand description
A builder for CreateBrokerInput
.
Implementations§
source§impl CreateBrokerInputBuilder
impl CreateBrokerInputBuilder
sourcepub fn authentication_strategy(self, input: AuthenticationStrategy) -> Self
pub fn authentication_strategy(self, input: AuthenticationStrategy) -> Self
Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
sourcepub fn set_authentication_strategy(
self,
input: Option<AuthenticationStrategy>
) -> Self
pub fn set_authentication_strategy( self, input: Option<AuthenticationStrategy> ) -> Self
Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
sourcepub fn get_authentication_strategy(&self) -> &Option<AuthenticationStrategy>
pub fn get_authentication_strategy(&self) -> &Option<AuthenticationStrategy>
Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
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.
sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
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.
sourcepub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>
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.
sourcepub fn broker_name(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_broker_name(self, input: Option<String>) -> Self
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.
sourcepub fn get_broker_name(&self) -> &Option<String>
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.
sourcepub fn configuration(self, input: ConfigurationId) -> Self
pub fn configuration(self, input: ConfigurationId) -> Self
A list of information about the configuration.
sourcepub fn set_configuration(self, input: Option<ConfigurationId>) -> Self
pub fn set_configuration(self, input: Option<ConfigurationId>) -> Self
A list of information about the configuration.
sourcepub fn get_configuration(&self) -> &Option<ConfigurationId>
pub fn get_configuration(&self) -> &Option<ConfigurationId>
A list of information about the configuration.
sourcepub fn creator_request_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_creator_request_id(self, input: Option<String>) -> Self
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.
sourcepub fn get_creator_request_id(&self) -> &Option<String>
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.
sourcepub fn deployment_mode(self, input: DeploymentMode) -> Self
pub fn deployment_mode(self, input: DeploymentMode) -> Self
Required. The broker's deployment mode.
sourcepub fn set_deployment_mode(self, input: Option<DeploymentMode>) -> Self
pub fn set_deployment_mode(self, input: Option<DeploymentMode>) -> Self
Required. The broker's deployment mode.
sourcepub fn get_deployment_mode(&self) -> &Option<DeploymentMode>
pub fn get_deployment_mode(&self) -> &Option<DeploymentMode>
Required. The broker's deployment mode.
sourcepub fn encryption_options(self, input: EncryptionOptions) -> Self
pub fn encryption_options(self, input: EncryptionOptions) -> Self
Encryption options for the broker.
sourcepub fn set_encryption_options(self, input: Option<EncryptionOptions>) -> Self
pub fn set_encryption_options(self, input: Option<EncryptionOptions>) -> Self
Encryption options for the broker.
sourcepub fn get_encryption_options(&self) -> &Option<EncryptionOptions>
pub fn get_encryption_options(&self) -> &Option<EncryptionOptions>
Encryption options for the broker.
sourcepub fn engine_type(self, input: EngineType) -> Self
pub fn engine_type(self, input: EngineType) -> Self
Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
sourcepub fn set_engine_type(self, input: Option<EngineType>) -> Self
pub fn set_engine_type(self, input: Option<EngineType>) -> Self
Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
sourcepub fn get_engine_type(&self) -> &Option<EngineType>
pub fn get_engine_type(&self) -> &Option<EngineType>
Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
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.
sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
Required. The broker engine's version. For a list of supported engine versions, see Supported engines.
sourcepub fn host_instance_type(self, input: impl Into<String>) -> Self
pub fn host_instance_type(self, input: impl Into<String>) -> Self
Required. The broker's instance type.
sourcepub fn set_host_instance_type(self, input: Option<String>) -> Self
pub fn set_host_instance_type(self, input: Option<String>) -> Self
Required. The broker's instance type.
sourcepub fn get_host_instance_type(&self) -> &Option<String>
pub fn get_host_instance_type(&self) -> &Option<String>
Required. The broker's instance type.
sourcepub fn ldap_server_metadata(self, input: LdapServerMetadataInput) -> Self
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.
sourcepub fn set_ldap_server_metadata(
self,
input: Option<LdapServerMetadataInput>
) -> Self
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.
sourcepub fn get_ldap_server_metadata(&self) -> &Option<LdapServerMetadataInput>
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.
sourcepub fn set_logs(self, input: Option<Logs>) -> Self
pub fn set_logs(self, input: Option<Logs>) -> Self
Enables Amazon CloudWatch logging for brokers.
sourcepub fn maintenance_window_start_time(self, input: WeeklyStartTime) -> Self
pub fn maintenance_window_start_time(self, input: WeeklyStartTime) -> Self
The parameters that determine the WeeklyStartTime.
sourcepub fn set_maintenance_window_start_time(
self,
input: Option<WeeklyStartTime>
) -> Self
pub fn set_maintenance_window_start_time( self, input: Option<WeeklyStartTime> ) -> Self
The parameters that determine the WeeklyStartTime.
sourcepub fn get_maintenance_window_start_time(&self) -> &Option<WeeklyStartTime>
pub fn get_maintenance_window_start_time(&self) -> &Option<WeeklyStartTime>
The parameters that determine the WeeklyStartTime.
sourcepub fn publicly_accessible(self, input: bool) -> Self
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.
sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
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.
sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
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.
sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
sourcepub fn storage_type(self, input: BrokerStorageType) -> Self
pub fn storage_type(self, input: BrokerStorageType) -> Self
The broker's storage type.
sourcepub fn set_storage_type(self, input: Option<BrokerStorageType>) -> Self
pub fn set_storage_type(self, input: Option<BrokerStorageType>) -> Self
The broker's storage type.
sourcepub fn get_storage_type(&self) -> &Option<BrokerStorageType>
pub fn get_storage_type(&self) -> &Option<BrokerStorageType>
The broker's storage type.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
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.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
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.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
Create tags when creating the broker.
Create tags when creating the broker.
Create tags when creating the broker.
sourcepub fn users(self, input: User) -> Self
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.
sourcepub fn set_users(self, input: Option<Vec<User>>) -> Self
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.
sourcepub fn get_users(&self) -> &Option<Vec<User>>
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.
sourcepub fn data_replication_mode(self, input: DataReplicationMode) -> Self
pub fn data_replication_mode(self, input: DataReplicationMode) -> Self
Defines whether this broker is a part of a data replication pair.
sourcepub fn set_data_replication_mode(
self,
input: Option<DataReplicationMode>
) -> Self
pub fn set_data_replication_mode( self, input: Option<DataReplicationMode> ) -> Self
Defines whether this broker is a part of a data replication pair.
sourcepub fn get_data_replication_mode(&self) -> &Option<DataReplicationMode>
pub fn get_data_replication_mode(&self) -> &Option<DataReplicationMode>
Defines whether this broker is a part of a data replication pair.
sourcepub fn data_replication_primary_broker_arn(
self,
input: impl Into<String>
) -> Self
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.
sourcepub fn set_data_replication_primary_broker_arn(
self,
input: Option<String>
) -> Self
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.
sourcepub fn get_data_replication_primary_broker_arn(&self) -> &Option<String>
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.
sourcepub fn build(self) -> Result<CreateBrokerInput, BuildError>
pub fn build(self) -> Result<CreateBrokerInput, BuildError>
Consumes the builder and constructs a CreateBrokerInput
.
source§impl CreateBrokerInputBuilder
impl CreateBrokerInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateBrokerOutput, SdkError<CreateBrokerError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateBrokerOutput, SdkError<CreateBrokerError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateBrokerInputBuilder
impl Clone for CreateBrokerInputBuilder
source§fn clone(&self) -> CreateBrokerInputBuilder
fn clone(&self) -> CreateBrokerInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateBrokerInputBuilder
impl Debug for CreateBrokerInputBuilder
source§impl Default for CreateBrokerInputBuilder
impl Default for CreateBrokerInputBuilder
source§fn default() -> CreateBrokerInputBuilder
fn default() -> CreateBrokerInputBuilder
source§impl PartialEq<CreateBrokerInputBuilder> for CreateBrokerInputBuilder
impl PartialEq<CreateBrokerInputBuilder> for CreateBrokerInputBuilder
source§fn eq(&self, other: &CreateBrokerInputBuilder) -> bool
fn eq(&self, other: &CreateBrokerInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.