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
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-05T03:43:38.241Z")
@Stability(Stable)
public class CfnDeploymentStrategy
extends CfnResource
implements IInspectable, 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 classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnDeploymentStrategy
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnDeploymentStrategy
(software.amazon.jsii.JsiiObjectRef objRef) CfnDeploymentStrategy
(software.constructs.Construct scope, String id, CfnDeploymentStrategyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe deployment strategy ID.Tag Manager which manages the tags for this resource.Total amount of time for a deployment to last.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
Total amount of time for a deployment to last.void
setDescription
(String value) A description of the deployment strategy.void
setFinalBakeTimeInMinutes
(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.void
setGrowthFactor
(Number value) The percentage of targets to receive a deployed configuration during each interval.void
setGrowthType
(String value) The algorithm used to define how percentage grows over time.void
A name for the deployment strategy.void
setReplicateTo
(String value) Save the deployment strategy to a Systems Manager (SSM) document.void
Assigns 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, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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
-
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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrId
The deployment strategy ID. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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.
-