Class CfnBrokerPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.amazonmq.CfnBrokerPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-19T12:55:16.275Z")
@Stability(Stable)
public class CfnBrokerPropsMixin
extends Mixin
implements software.constructs.IMixin
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:DeleteNetworkInterfaceec2:DeleteNetworkInterfacePermissionec2:DetachNetworkInterfaceec2:DescribeInternetGatewaysec2:DescribeNetworkInterfacesec2:DescribeNetworkInterfacePermissionsec2:DescribeRouteTablesec2:DescribeSecurityGroupsec2:DescribeSubnetsec2:DescribeVpcs
For more information, see Create an IAM User and Get Your AWS Credentials and Never Modify or Delete the Amazon MQ Elastic Network Interface in the Amazon MQ Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.amazonmq.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnBrokerPropsMixin cfnBrokerPropsMixin = CfnBrokerPropsMixin.Builder.create(CfnBrokerMixinProps.builder()
.authenticationStrategy("authenticationStrategy")
.autoMinorVersionUpgrade(false)
.brokerName("brokerName")
.configuration(ConfigurationIdProperty.builder()
.id("id")
.revision(123)
.build())
.dataReplicationMode("dataReplicationMode")
.dataReplicationPrimaryBrokerArn("dataReplicationPrimaryBrokerArn")
.deploymentMode("deploymentMode")
.encryptionOptions(EncryptionOptionsProperty.builder()
.kmsKeyId("kmsKeyId")
.useAwsOwnedKey(false)
.build())
.engineType("engineType")
.engineVersion("engineVersion")
.hostInstanceType("hostInstanceType")
.ldapServerMetadata(LdapServerMetadataProperty.builder()
.hosts(List.of("hosts"))
.roleBase("roleBase")
.roleName("roleName")
.roleSearchMatching("roleSearchMatching")
.roleSearchSubtree(false)
.serviceAccountPassword("serviceAccountPassword")
.serviceAccountUsername("serviceAccountUsername")
.userBase("userBase")
.userRoleName("userRoleName")
.userSearchMatching("userSearchMatching")
.userSearchSubtree(false)
.build())
.logs(LogListProperty.builder()
.audit(false)
.general(false)
.build())
.maintenanceWindowStartTime(MaintenanceWindowProperty.builder()
.dayOfWeek("dayOfWeek")
.timeOfDay("timeOfDay")
.timeZone("timeZone")
.build())
.publiclyAccessible(false)
.securityGroups(List.of("securityGroups"))
.storageType("storageType")
.subnetIds(List.of("subnetIds"))
.tags(List.of(TagsEntryProperty.builder()
.key("key")
.value("value")
.build()))
.users(List.of(UserProperty.builder()
.consoleAccess(false)
.groups(List.of("groups"))
.password("password")
.replicationUser(false)
.username("username")
.build()))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnBrokerPropsMixin.static interfaceA list of information about the configuration.static interfaceEncryption options for the broker.static interfaceOptional.static interfaceThe list of information about logs to be enabled for the specified broker.static interfaceThe parameters that determine the WeeklyStartTime.static interfaceCreate tags when creating the broker.static interfaceThe list of broker users (persons or applications) who can access queues and topics.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::AmazonMQ::Broker.CfnBrokerPropsMixin(CfnBrokerMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AmazonMQ::Broker.protectedCfnBrokerPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBrokerPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnBrokerMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnBrokerPropsMixin
protected CfnBrokerPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBrokerPropsMixin
protected CfnBrokerPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBrokerPropsMixin
@Stability(Stable) public CfnBrokerPropsMixin(@NotNull CfnBrokerMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::AmazonMQ::Broker.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnBrokerPropsMixin
Create a mixin to apply properties toAWS::AmazonMQ::Broker.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-