Class CfnConfiguration

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:11.626Z") @Stability(Stable) public class CfnConfiguration extends CfnResource implements IInspectable, ITaggable
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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnConfiguration

      protected CfnConfiguration(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnConfiguration

      protected CfnConfiguration(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnConfiguration

      @Stability(Stable) public CfnConfiguration(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConfigurationProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the Amazon MQ configuration.

      arn:aws:mq:us-east-2:123456789012:configuration:MyConfigurationDevelopment:c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9

    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The ID of the Amazon MQ configuration.

      c-1234a5b6-78cd-901e-2fgh-3i45j6k178l9

    • getAttrRevision

      @Stability(Stable) @NotNull public Number getAttrRevision()
      The revision number of the configuration.

      1

    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getData

      @Stability(Stable) @NotNull public String getData()
      The base64-encoded XML configuration.
    • setData

      @Stability(Stable) public void setData(@NotNull String value)
      The base64-encoded XML configuration.
    • getEngineType

      @Stability(Stable) @NotNull public String getEngineType()
      The type of broker engine.
    • setEngineType

      @Stability(Stable) public void setEngineType(@NotNull String value)
      The type of broker engine.
    • getEngineVersion

      @Stability(Stable) @NotNull public String getEngineVersion()
      The version of the broker engine.
    • setEngineVersion

      @Stability(Stable) public void setEngineVersion(@NotNull String value)
      The version of the broker engine.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the configuration.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the configuration.
    • getAuthenticationStrategy

      @Stability(Stable) @Nullable public String getAuthenticationStrategy()
      Optional.
    • setAuthenticationStrategy

      @Stability(Stable) public void setAuthenticationStrategy(@Nullable String value)
      Optional.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      The description of the configuration.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      The description of the configuration.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnConfiguration.TagsEntryProperty> getTagsRaw()
      Create tags when creating the configuration.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnConfiguration.TagsEntryProperty> value)
      Create tags when creating the configuration.