CfnBrokerMixinProps
- class aws_cdk.mixins_preview.aws_amazonmq.mixins.CfnBrokerMixinProps(*, authentication_strategy=None, auto_minor_version_upgrade=None, broker_name=None, configuration=None, data_replication_mode=None, data_replication_primary_broker_arn=None, deployment_mode=None, encryption_options=None, engine_type=None, engine_version=None, host_instance_type=None, ldap_server_metadata=None, logs=None, maintenance_window_start_time=None, publicly_accessible=None, security_groups=None, storage_type=None, subnet_ids=None, tags=None, users=None)
Bases:
objectProperties for CfnBrokerPropsMixin.
- Parameters:
authentication_strategy (
Optional[str]) – Optional. The authentication strategy used to secure the broker. The default isSIMPLE.auto_minor_version_upgrade (
Union[bool,IResolvable,None]) – 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 totrueby default, if no value is specified. .. epigraph:: Must be set totruefor ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.broker_name (
Optional[str]) – 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. .. epigraph:: 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.configuration (
Union[IResolvable,ConfigurationIdProperty,Dict[str,Any],None]) – A list of information about the configuration.data_replication_mode (
Optional[str]) – Defines whether this broker is a part of a data replication pair.data_replication_primary_broker_arn (
Optional[str]) – 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.deployment_mode (
Optional[str]) – Required. The broker’s deployment mode.encryption_options (
Union[IResolvable,EncryptionOptionsProperty,Dict[str,Any],None]) – Encryption options for the broker.engine_type (
Optional[str]) – Required. The type of broker engine. Currently, Amazon MQ supportsACTIVEMQandRABBITMQ.engine_version (
Optional[str]) – 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.host_instance_type (
Optional[str]) – Required. The broker’s instance type.ldap_server_metadata (
Union[IResolvable,LdapServerMetadataProperty,Dict[str,Any],None]) – Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.logs (
Union[IResolvable,LogListProperty,Dict[str,Any],None]) – Enables Amazon CloudWatch logging for brokers.maintenance_window_start_time (
Union[IResolvable,MaintenanceWindowProperty,Dict[str,Any],None]) – The parameters that determine the WeeklyStartTime.publicly_accessible (
Union[bool,IResolvable,None]) – Enables connections from applications outside of the VPC that hosts the broker’s subnets. Set tofalseby default, if no value is provided.security_groups (
Optional[Sequence[str]]) – The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.storage_type (
Optional[str]) – The broker’s storage type.subnet_ids (
Optional[Sequence[str]]) – 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. .. epigraph:: 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 .tags (
Optional[Sequence[Union[TagsEntryProperty,Dict[str,Any]]]]) – Create tags when creating the broker.users (
Union[IResolvable,Sequence[Union[IResolvable,UserProperty,Dict[str,Any]]],None]) – 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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amazonmq-broker.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amazonmq import mixins as amazonmq_mixins cfn_broker_mixin_props = amazonmq_mixins.CfnBrokerMixinProps( authentication_strategy="authenticationStrategy", auto_minor_version_upgrade=False, broker_name="brokerName", configuration=amazonmq_mixins.CfnBrokerPropsMixin.ConfigurationIdProperty( id="id", revision=123 ), data_replication_mode="dataReplicationMode", data_replication_primary_broker_arn="dataReplicationPrimaryBrokerArn", deployment_mode="deploymentMode", encryption_options=amazonmq_mixins.CfnBrokerPropsMixin.EncryptionOptionsProperty( kms_key_id="kmsKeyId", use_aws_owned_key=False ), engine_type="engineType", engine_version="engineVersion", host_instance_type="hostInstanceType", ldap_server_metadata=amazonmq_mixins.CfnBrokerPropsMixin.LdapServerMetadataProperty( hosts=["hosts"], role_base="roleBase", role_name="roleName", role_search_matching="roleSearchMatching", role_search_subtree=False, service_account_password="serviceAccountPassword", service_account_username="serviceAccountUsername", user_base="userBase", user_role_name="userRoleName", user_search_matching="userSearchMatching", user_search_subtree=False ), logs=amazonmq_mixins.CfnBrokerPropsMixin.LogListProperty( audit=False, general=False ), maintenance_window_start_time=amazonmq_mixins.CfnBrokerPropsMixin.MaintenanceWindowProperty( day_of_week="dayOfWeek", time_of_day="timeOfDay", time_zone="timeZone" ), publicly_accessible=False, security_groups=["securityGroups"], storage_type="storageType", subnet_ids=["subnetIds"], tags=[amazonmq_mixins.CfnBrokerPropsMixin.TagsEntryProperty( key="key", value="value" )], users=[amazonmq_mixins.CfnBrokerPropsMixin.UserProperty( console_access=False, groups=["groups"], password="password", replication_user=False, username="username" )] )
Attributes
- authentication_strategy
Optional.
The authentication strategy used to secure the broker. The default is
SIMPLE.
- auto_minor_version_upgrade
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
trueby default, if no value is specified. .. epigraph:Must be set to ``true`` for ActiveMQ brokers version 5.18 and above and for RabbitMQ brokers version 3.13 and above.
- broker_name
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. .. epigraph:
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.
- configuration
A list of information about the configuration.
- data_replication_mode
Defines whether this broker is a part of a data replication pair.
- data_replication_primary_broker_arn
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.
- deployment_mode
Required.
The broker’s deployment mode.
- encryption_options
Encryption options for the broker.
- engine_type
Required.
The type of broker engine. Currently, Amazon MQ supports
ACTIVEMQandRABBITMQ.
- engine_version
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.
- host_instance_type
Required.
The broker’s instance type.
- ldap_server_metadata
Optional.
The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
- logs
Enables Amazon CloudWatch logging for brokers.
- maintenance_window_start_time
The parameters that determine the WeeklyStartTime.
- publicly_accessible
Enables connections from applications outside of the VPC that hosts the broker’s subnets.
Set to
falseby default, if no value is provided.
- security_groups
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
- storage_type
The broker’s storage type.
- 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. .. epigraph:
If you specify subnets in a `shared VPC <https://docs.aws.amazon.com/vpc/latest/userguide/vpc-sharing.html>`_ 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 .
- tags
Create tags when creating the broker.
- 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.