Class CfnHostedConfigurationVersion

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.487Z") @Stability(Stable) public class CfnHostedConfigurationVersion extends CfnResource implements IInspectable
A CloudFormation AWS::AppConfig::HostedConfigurationVersion.

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();
 
  • 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 Construct scope, @NotNull String id, @NotNull CfnHostedConfigurationVersionProps props)
      Create a new AWS::AppConfig::HostedConfigurationVersion.

      Parameters:
      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.
  • 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.
    • 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 content of the configuration or the configuration data.
    • setContent

      @Stability(Stable) public void setContent(@NotNull String value)
      The content of the configuration or the configuration data.
    • getContentType

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

      For more information, see Content-Type .

    • setContentType

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

      For more information, see Content-Type .

    • 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.

      To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration 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.

      To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration 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.