Class CfnDeploymentStrategy
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.CfnDeploymentStrategy
- All Implemented Interfaces:
IInspectable,ITaggableV2,IDeploymentStrategyRef,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.667Z")
@Stability(Stable)
public class CfnDeploymentStrategy
extends CfnResource
implements IInspectable, IDeploymentStrategyRef, ITaggableV2
The
AWS::AppConfig::DeploymentStrategy resource creates an AWS AppConfig deployment strategy.
A deployment strategy defines important criteria for rolling out your configuration to the designated targets. A deployment strategy includes: the overall duration required, a percentage of targets to receive the deployment during each interval, an algorithm that defines how percentage grows, and bake time.
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.*;
CfnDeploymentStrategy cfnDeploymentStrategy = CfnDeploymentStrategy.Builder.create(this, "MyCfnDeploymentStrategy")
.deploymentDurationInMinutes(123)
.growthFactor(123)
.name("name")
.replicateTo("replicateTo")
// the properties below are optional
.description("description")
.finalBakeTimeInMinutes(123)
.growthType("growthType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.IDeploymentStrategyRef
IDeploymentStrategyRef.Jsii$Default, IDeploymentStrategyRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnDeploymentStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeploymentStrategy(software.amazon.jsii.JsiiObjectRef objRef) CfnDeploymentStrategy(software.constructs.Construct scope, String id, CfnDeploymentStrategyProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDeploymentStrategyReffromDeploymentStrategyId(software.constructs.Construct scope, String id, String deploymentStrategyId) Creates a new IDeploymentStrategyRef from a deploymentStrategyId.The deployment strategy ID.Tag Manager which manages the tags for this resource.Total amount of time for a deployment to last.A reference to a DeploymentStrategy resource.A description of the deployment strategy.Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete.The percentage of targets to receive a deployed configuration during each interval.The algorithm used to define how percentage grows over time.getName()A name for the deployment strategy.Save the deployment strategy to a Systems Manager (SSM) document.getTags()Assigns metadata to an AWS AppConfig resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidTotal amount of time for a deployment to last.voidsetDescription(String value) A description of the deployment strategy.voidsetFinalBakeTimeInMinutes(Number value) Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete.voidsetGrowthFactor(Number value) The percentage of targets to receive a deployed configuration during each interval.voidsetGrowthType(String value) The algorithm used to define how percentage grows over time.voidA name for the deployment strategy.voidsetReplicateTo(String value) Save the deployment strategy to a Systems Manager (SSM) document.voidAssigns metadata to an AWS AppConfig resource.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
-
CfnDeploymentStrategy
protected CfnDeploymentStrategy(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeploymentStrategy
protected CfnDeploymentStrategy(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeploymentStrategy
@Stability(Stable) public CfnDeploymentStrategy(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDeploymentStrategyProps 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
-
fromDeploymentStrategyId
@Stability(Stable) @NotNull public static IDeploymentStrategyRef fromDeploymentStrategyId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deploymentStrategyId) Creates a new IDeploymentStrategyRef from a deploymentStrategyId.- Parameters:
scope- This parameter is required.id- This parameter is required.deploymentStrategyId- 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.
-
getAttrId
The deployment strategy ID. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeploymentStrategyRef
A reference to a DeploymentStrategy resource.- Specified by:
getDeploymentStrategyRefin interfaceIDeploymentStrategyRef
-
getDeploymentDurationInMinutes
Total amount of time for a deployment to last. -
setDeploymentDurationInMinutes
Total amount of time for a deployment to last. -
getGrowthFactor
The percentage of targets to receive a deployed configuration during each interval. -
setGrowthFactor
The percentage of targets to receive a deployed configuration during each interval. -
getName
A name for the deployment strategy. -
setName
A name for the deployment strategy. -
getReplicateTo
Save the deployment strategy to a Systems Manager (SSM) document. -
setReplicateTo
Save the deployment strategy to a Systems Manager (SSM) document. -
getDescription
A description of the deployment strategy. -
setDescription
A description of the deployment strategy. -
getFinalBakeTimeInMinutes
Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. -
setFinalBakeTimeInMinutes
Specifies the amount of time AWS AppConfig monitors for Amazon CloudWatch alarms after the configuration has been deployed to 100% of its targets, before considering the deployment to be complete. -
getGrowthType
The algorithm used to define how percentage grows over time.AWS AppConfig supports the following growth types:.
-
setGrowthType
The algorithm used to define how percentage grows over time.AWS AppConfig supports the following growth types:.
-
getTags
Assigns metadata to an AWS AppConfig resource. -
setTags
Assigns metadata to an AWS AppConfig resource.
-