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,IHostedConfigurationVersionRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:30.678Z")
@Stability(Stable)
public class CfnHostedConfigurationVersion
extends CfnResource
implements IInspectable, IHostedConfigurationVersionRef
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnHostedConfigurationVersion.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appconfig.IHostedConfigurationVersionRef
IHostedConfigurationVersionRef.Jsii$Default, IHostedConfigurationVersionRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnHostedConfigurationVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnHostedConfigurationVersion(software.amazon.jsii.JsiiObjectRef objRef) CfnHostedConfigurationVersion(software.constructs.Construct scope, String id, CfnHostedConfigurationVersionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe application ID.The configuration version.The configuration profile ID.The configuration data, as bytes.A standard MIME type describing the format of the configuration content.A description of the configuration.A reference to a HostedConfigurationVersion resource.An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.A user-defined label for an AWS AppConfig hosted configuration version.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationId(String value) The application ID.voidsetConfigurationProfileId(String value) The configuration profile ID.voidsetContent(String value) The configuration data, as bytes.voidsetContentType(String value) A standard MIME type describing the format of the configuration content.voidsetDescription(String value) A description of the configuration.voidsetLatestVersionNumber(Number value) An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version.voidsetVersionLabel(String value) A user-defined label for an AWS AppConfig hosted configuration version.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrVersionNumber
The configuration version. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getHostedConfigurationVersionRef
@Stability(Stable) @NotNull public HostedConfigurationVersionReference getHostedConfigurationVersionRef()A reference to a HostedConfigurationVersion resource.- Specified by:
getHostedConfigurationVersionRefin interfaceIHostedConfigurationVersionRef
-
getApplicationId
The application ID. -
setApplicationId
The application ID. -
getConfigurationProfileId
The configuration profile ID. -
setConfigurationProfileId
The configuration profile ID. -
getContent
The configuration data, as bytes. -
setContent
The configuration data, as bytes. -
getContentType
A standard MIME type describing the format of the configuration content. -
setContentType
A standard MIME type describing the format of the configuration content. -
getDescription
A description of the configuration. -
setDescription
A description of the configuration. -
getLatestVersionNumber
An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. -
setLatestVersionNumber
An optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. -
getVersionLabel
A user-defined label for an AWS AppConfig hosted configuration version. -
setVersionLabel
A user-defined label for an AWS AppConfig hosted configuration version.
-