Class CfnHostedConfigurationVersion

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.appconfig.CfnHostedConfigurationVersion
All Implemented Interfaces:
IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:33:57.083Z") @Stability(Stable) public class CfnHostedConfigurationVersion extends CfnResource implements IInspectable
Create a new configuration in the AWS AppConfig hosted configuration store.

Configurations must be 1 MB or smaller. The AWS AppConfig hosted configuration store provides the following benefits over other configuration store options.

  • You don't need to set up and configure other services such as Amazon Simple Storage Service ( Amazon S3 ) or Parameter Store.
  • You don't need to configure AWS Identity and Access Management ( IAM ) permissions to use the configuration store.
  • You can store configurations in any content type.
  • There is no cost to use the store.
  • You can create a configuration and add it to the store when you create a configuration profile.

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.appconfig.*;
 CfnHostedConfigurationVersion cfnHostedConfigurationVersion = CfnHostedConfigurationVersion.Builder.create(this, "MyCfnHostedConfigurationVersion")
         .applicationId("applicationId")
         .configurationProfileId("configurationProfileId")
         .content("content")
         .contentType("contentType")
         // the properties below are optional
         .description("description")
         .latestVersionNumber(123)
         .versionLabel("versionLabel")
         .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

    • CfnHostedConfigurationVersion

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

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

      @Stability(Stable) public CfnHostedConfigurationVersion(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnHostedConfigurationVersionProps 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.
    • getAttrVersionNumber

      @Stability(Stable) @NotNull public String getAttrVersionNumber()
      The configuration version.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public String getApplicationId()
      The application ID.
    • setApplicationId

      @Stability(Stable) public void setApplicationId(@NotNull String value)
      The application ID.
    • getConfigurationProfileId

      @Stability(Stable) @NotNull public String getConfigurationProfileId()
      The configuration profile ID.
    • setConfigurationProfileId

      @Stability(Stable) public void setConfigurationProfileId(@NotNull String value)
      The configuration profile ID.
    • getContent

      @Stability(Stable) @NotNull public String getContent()
      The configuration data, as bytes.
    • setContent

      @Stability(Stable) public void setContent(@NotNull String value)
      The configuration data, as bytes.
    • getContentType

      @Stability(Stable) @NotNull public String getContentType()
      A standard MIME type describing the format of the configuration content.
    • setContentType

      @Stability(Stable) public void setContentType(@NotNull String value)
      A standard MIME type describing the format of the configuration content.
    • getDescription

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

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

      @Stability(Stable) @Nullable public Number getLatestVersionNumber()
      An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.
    • setLatestVersionNumber

      @Stability(Stable) public void setLatestVersionNumber(@Nullable Number value)
      An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.
    • getVersionLabel

      @Stability(Stable) @Nullable public String getVersionLabel()
      A user-defined label for an AWS AppConfig hosted configuration version.
    • setVersionLabel

      @Stability(Stable) public void setVersionLabel(@Nullable String value)
      A user-defined label for an AWS AppConfig hosted configuration version.