Class CfnDeployment
- All Implemented Interfaces:
IInspectable,IDeploymentRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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
- Choose a pre-defined deployment strategy or create your own
- 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")
.dynamicExtensionParameters(List.of(DynamicExtensionParametersProperty.builder()
.extensionReference("extensionReference")
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.kmsKeyIdentifier("kmsKeyIdentifier")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeployment.static interfaceA map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions.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.interfaces.appconfig.IDeploymentRef
IDeploymentRef.Jsii$Default, IDeploymentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDeployment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeployment(software.amazon.jsii.JsiiObjectRef objRef) CfnDeployment(software.constructs.Construct scope, String id, CfnDeploymentProps props) Create a newAWS::AppConfig::Deployment. -
Method Summary
Modifier and TypeMethodDescriptionThe application ID.The sequence number of the deployment.The state of the deployment.Tag Manager which manages the tags for this resource.The configuration profile ID.The configuration version to deploy.A reference to a Deployment resource.The deployment strategy ID.A description of the deployment.A map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions.The environment ID.The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.getTags()Metadata to assign to the deployment.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDeployment.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.voidsetDynamicExtensionParameters(List<Object> value) A map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions.voidA map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions.voidsetEnvironmentId(String value) The environment ID.voidsetKmsKeyIdentifier(String value) The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated.voidMetadata to assign to the deployment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnDeploymentProps props) Create a newAWS::AppConfig::Deployment.- 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
-
isCfnDeployment
Checks whether the given object is a CfnDeployment.- Parameters:
x- This parameter is required.
-
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.
-
getAttrDeploymentNumber
The sequence number of the deployment. -
getAttrState
The state of the deployment. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeploymentRef
A reference to a Deployment resource.- Specified by:
getDeploymentRefin interfaceIDeploymentRef
-
getApplicationId
The application ID. -
setApplicationId
The application ID. -
getConfigurationProfileId
The configuration profile ID. -
setConfigurationProfileId
The configuration profile ID. -
getConfigurationVersion
The configuration version to deploy. -
setConfigurationVersion
The configuration version to deploy. -
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. -
getDynamicExtensionParameters
A map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDeployment.DynamicExtensionParametersProperty> -
setDynamicExtensionParameters
A map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions. -
setDynamicExtensionParameters
A map of dynamic extension parameter names to values to pass to associated extensions withPRE_START_DEPLOYMENTactions. -
getKmsKeyIdentifier
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated. -
setKmsKeyIdentifier
The AWS Key Management Service key identifier (key ID, key alias, or key ARN) provided when the resource was created or updated. -
getTags
Metadata to assign to the deployment. -
setTags
Metadata to assign to the deployment.
-