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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnDeployment
.static interface
Metadata to assign to the deployment strategy.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnDeployment
(Construct scope, String id, CfnDeploymentProps props) Create a newAWS::AppConfig::Deployment
.protected
CfnDeployment
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDeployment
(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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setApplicationId
(String value) The application ID.void
setConfigurationProfileId
(String value) The configuration profile ID.void
setConfigurationVersion
(String value) The configuration version to deploy.void
setDeploymentStrategyId
(String value) The deployment strategy ID.void
setDescription
(String value) A description of the deployment.void
setEnvironmentId
(String value) The environment ID.void
setKmsKeyIdentifier
(String value) The AWS KMS key identifier (key ID, key alias, or key ARN).void
setTags
(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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in 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.
-