Class CfnDeploymentConfig
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.codedeploy.CfnDeploymentConfig
- All Implemented Interfaces:
IInspectable,IDeploymentConfigRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:33.599Z")
@Stability(Stable)
public class CfnDeploymentConfig
extends CfnResource
implements IInspectable, IDeploymentConfigRef
The
AWS::CodeDeploy::DeploymentConfig resource creates a set of deployment rules, deployment success conditions, and deployment failure conditions that AWS CodeDeploy uses during a deployment.
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
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.codedeploy.*;
CfnDeploymentConfig cfnDeploymentConfig = CfnDeploymentConfig.Builder.create(this, "MyCfnDeploymentConfig")
.computePlatform("computePlatform")
.deploymentConfigName("deploymentConfigName")
.minimumHealthyHosts(MinimumHealthyHostsProperty.builder()
.type("type")
.value(123)
.build())
.trafficRoutingConfig(TrafficRoutingConfigProperty.builder()
.type("type")
// the properties below are optional
.timeBasedCanary(TimeBasedCanaryProperty.builder()
.canaryInterval(123)
.canaryPercentage(123)
.build())
.timeBasedLinear(TimeBasedLinearProperty.builder()
.linearInterval(123)
.linearPercentage(123)
.build())
.build())
.zonalConfig(ZonalConfigProperty.builder()
.firstZoneMonitorDurationInSeconds(123)
.minimumHealthyHostsPerZone(MinimumHealthyHostsPerZoneProperty.builder()
.type("type")
.value(123)
.build())
.monitorDurationInSeconds(123)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDeploymentConfig.static interfaceInformation about the minimum number of healthy instances per Availability Zone.static interfaceMinimumHealthyHostsis a property of the DeploymentConfig resource that defines how many instances must remain healthy during an AWS CodeDeploy deployment.static interfaceA configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in two increments.static interfaceA configuration that shifts traffic from one version of a Lambda function or ECS task set to another in equal increments, with an equal number of minutes between each increment.static interfaceThe configuration that specifies how traffic is shifted from one version of a Lambda function to another version during an AWS Lambda deployment, or from one Amazon ECS task set to another during an Amazon ECS deployment.static interfaceConfigure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.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.services.codedeploy.IDeploymentConfigRef
IDeploymentConfigRef.Jsii$Default, IDeploymentConfigRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef) CfnDeploymentConfig(software.constructs.Construct scope, String id) CfnDeploymentConfig(software.constructs.Construct scope, String id, CfnDeploymentConfigProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe destination platform type for the deployment (Lambda,Server, orECS).A name for the deployment configuration.A reference to a DeploymentConfig resource.The minimum number of healthy instances that should be available at any time during the deployment.The configuration that specifies how the deployment traffic is routed.Configure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetComputePlatform(String value) The destination platform type for the deployment (Lambda,Server, orECS).voidsetDeploymentConfigName(String value) A name for the deployment configuration.voidThe minimum number of healthy instances that should be available at any time during the deployment.voidThe minimum number of healthy instances that should be available at any time during the deployment.voidThe configuration that specifies how the deployment traffic is routed.voidThe configuration that specifies how the deployment traffic is routed.voidsetZonalConfig(IResolvable value) Configure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.voidConfigure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.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
-
CfnDeploymentConfig
protected CfnDeploymentConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDeploymentConfig
protected CfnDeploymentConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDeploymentConfig
@Stability(Stable) public CfnDeploymentConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDeploymentConfigProps 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.
-
CfnDeploymentConfig
@Stability(Stable) public CfnDeploymentConfig(@NotNull software.constructs.Construct scope, @NotNull String id) - 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.
-
-
Method Details
-
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.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDeploymentConfigRef
A reference to a DeploymentConfig resource.- Specified by:
getDeploymentConfigRefin interfaceIDeploymentConfigRef
-
getComputePlatform
The destination platform type for the deployment (Lambda,Server, orECS). -
setComputePlatform
The destination platform type for the deployment (Lambda,Server, orECS). -
getDeploymentConfigName
A name for the deployment configuration. -
setDeploymentConfigName
A name for the deployment configuration. -
getMinimumHealthyHosts
The minimum number of healthy instances that should be available at any time during the deployment.Returns union: either
IResolvableorCfnDeploymentConfig.MinimumHealthyHostsProperty -
setMinimumHealthyHosts
The minimum number of healthy instances that should be available at any time during the deployment. -
setMinimumHealthyHosts
@Stability(Stable) public void setMinimumHealthyHosts(@Nullable CfnDeploymentConfig.MinimumHealthyHostsProperty value) The minimum number of healthy instances that should be available at any time during the deployment. -
getTrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed.Returns union: either
IResolvableorCfnDeploymentConfig.TrafficRoutingConfigProperty -
setTrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed. -
setTrafficRoutingConfig
@Stability(Stable) public void setTrafficRoutingConfig(@Nullable CfnDeploymentConfig.TrafficRoutingConfigProperty value) The configuration that specifies how the deployment traffic is routed. -
getZonalConfig
Configure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.Returns union: either
IResolvableorCfnDeploymentConfig.ZonalConfigProperty -
setZonalConfig
Configure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region. -
setZonalConfig
@Stability(Stable) public void setZonalConfig(@Nullable CfnDeploymentConfig.ZonalConfigProperty value) Configure theZonalConfigobject if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.
-