@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:35.213Z") public class CfnConfiguration extends CfnResource implements IInspectable
Creates a new configuration for the specified configuration name. Amazon MQ uses the default configuration (the engine type and version).
Does not apply to RabbitMQ brokers.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.amazonmq.*; CfnConfiguration cfnConfiguration = CfnConfiguration.Builder.create(this, "MyCfnConfiguration") .data("data") .engineType("engineType") .engineVersion("engineVersion") .name("name") // the properties below are optional .authenticationStrategy("authenticationStrategy") .description("description") .tags(List.of(TagsEntryProperty.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnConfiguration.Builder
A fluent builder for
CfnConfiguration . |
static interface |
CfnConfiguration.TagsEntryProperty
A key-value pair to associate with the configuration.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnConfiguration(Construct scope,
java.lang.String id,
CfnConfigurationProps props)
Create a new `AWS::AmazonMQ::Configuration`.
|
protected |
CfnConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnConfiguration(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
The Amazon Resource Name (ARN) of the Amazon MQ configuration.
|
java.lang.String |
getAttrId()
The ID of the Amazon MQ configuration.
|
java.lang.Number |
getAttrRevision()
The revision number of the configuration.
|
java.lang.String |
getAuthenticationStrategy()
Optional.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getData()
The base64-encoded XML configuration.
|
java.lang.String |
getDescription()
The description of the configuration.
|
java.lang.String |
getEngineType()
The type of broker engine.
|
java.lang.String |
getEngineVersion()
The version of the broker engine.
|
java.lang.String |
getName()
The name of the configuration.
|
TagManager |
getTags()
Create tags when creating the configuration.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAuthenticationStrategy(java.lang.String value)
Optional.
|
void |
setData(java.lang.String value)
The base64-encoded XML configuration.
|
void |
setDescription(java.lang.String value)
The description of the configuration.
|
void |
setEngineType(java.lang.String value)
The type of broker engine.
|
void |
setEngineVersion(java.lang.String value)
The version of the broker engine.
|
void |
setName(java.lang.String value)
The name of the configuration.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnConfiguration(Construct scope, java.lang.String id, CfnConfigurationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
arn:aws:mq:us-east-2:123456789012:configuration:MyConfigurationDevelopment:c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
public java.lang.String getAttrId()
c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9
public java.lang.Number getAttrRevision()
1
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
public java.lang.String getData()
public void setData(java.lang.String value)
public java.lang.String getEngineType()
Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
public void setEngineType(java.lang.String value)
Note: Currently, Amazon MQ only supports ACTIVEMQ for creating and editing broker configurations.
public java.lang.String getEngineVersion()
public void setEngineVersion(java.lang.String value)
public java.lang.String getName()
This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.
public void setName(java.lang.String value)
This value can contain only alphanumeric characters, dashes, periods, underscores, and tildes (- . _ ~). This value must be 1-150 characters long.
public java.lang.String getAuthenticationStrategy()
The authentication strategy associated with the configuration. The default is SIMPLE
.
public void setAuthenticationStrategy(java.lang.String value)
The authentication strategy associated with the configuration. The default is SIMPLE
.
public java.lang.String getDescription()
public void setDescription(java.lang.String value)