Class CfnDeployment
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::AppConfig::Deployment.
The AWS::AppConfig::Deployment resource starts a deployment. Starting a deployment in AWS AppConfig calls the StartDeployment API action. This call includes the IDs of the AWS AppConfig application, the environment, the configuration profile, and (optionally) the configuration data version to deploy. The call also includes the ID of the deployment strategy to use, which determines how the configuration data is deployed.
AWS AppConfig monitors the distribution to all hosts and reports status. If a distribution fails, then AWS AppConfig rolls back the configuration.
AWS AppConfig requires that you create resources and deploy a configuration in the following order:
- Create an application
- Create an environment
- Create a configuration profile
- Create a deployment strategy
- Deploy the configuration
For more information, see AWS AppConfig in the AWS AppConfig User Guide .
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.*;
CfnDeployment cfnDeployment = CfnDeployment.Builder.create(this, "MyCfnDeployment")
.applicationId("applicationId")
.configurationProfileId("configurationProfileId")
.configurationVersion("configurationVersion")
.deploymentStrategyId("deploymentStrategyId")
.environmentId("environmentId")
// the properties below are optional
.description("description")
.kmsKeyIdentifier("kmsKeyIdentifier")
.tags(List.of(TagsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeployment.static interfaceMetadata to assign to the deployment strategy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnDeployment(Construct scope, String id, CfnDeploymentProps props) Create a newAWS::AppConfig::Deployment.protectedCfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeployment(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe application ID.The configuration profile ID.The configuration version to deploy.The deployment strategy ID.A description of the deployment.The environment ID.The AWS KMS key identifier (key ID, key alias, or key ARN).getTags()Metadata to assign to the deployment.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.voidsetConfigurationVersion(String value) The configuration version to deploy.voidsetDeploymentStrategyId(String value) The deployment strategy ID.voidsetDescription(String value) A description of the deployment.voidsetEnvironmentId(String value) The environment ID.voidsetKmsKeyIdentifier(String value) The AWS KMS key identifier (key ID, key alias, or key ARN).voidsetTags(List<CfnDeployment.TagsProperty> value) Metadata to assign to the deployment.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDeployment
protected CfnDeployment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeployment
protected CfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeployment
@Stability(Stable) public CfnDeployment(@NotNull Construct scope, @NotNull String id, @NotNull CfnDeploymentProps props) Create a newAWS::AppConfig::Deployment.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getApplicationId
The application ID. -
setApplicationId
The application ID. -
getConfigurationProfileId
The configuration profile ID. -
setConfigurationProfileId
The configuration profile ID. -
getConfigurationVersion
The configuration version to deploy.If deploying an AWS AppConfig hosted configuration version, you can specify either the version number or version label. For all other configurations, you must specify the version number.
-
setConfigurationVersion
The configuration version to deploy.If deploying an AWS AppConfig hosted configuration version, you can specify either the version number or version label. For all other configurations, you must specify the version number.
-
getDeploymentStrategyId
The deployment strategy ID. -
setDeploymentStrategyId
The deployment strategy ID. -
getEnvironmentId
The environment ID. -
setEnvironmentId
The environment ID. -
getDescription
A description of the deployment. -
setDescription
A description of the deployment. -
getKmsKeyIdentifier
The AWS KMS key identifier (key ID, key alias, or key ARN).AWS AppConfig uses this ID to encrypt the configuration data using a customer managed key.
-
setKmsKeyIdentifier
The AWS KMS key identifier (key ID, key alias, or key ARN).AWS AppConfig uses this ID to encrypt the configuration data using a customer managed key.
-
getTags
Metadata to assign to the deployment.Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
-
setTags
Metadata to assign to the deployment.Tags help organize and categorize your AWS AppConfig resources. Each tag consists of a key and an optional value, both of which you define.
-