Class CfnDeploymentConfig
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.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeploymentConfig : CfnResource, IInspectable, IDeploymentConfigRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnDeploymentConfig Inherits CfnResource Implements IInspectable, IDeploymentConfigRef, IConstruct, IDependable, IEnvironmentAware
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var cfnDeploymentConfig = new CfnDeploymentConfig(this, "MyCfnDeploymentConfig", new CfnDeploymentConfigProps {
ComputePlatform = "computePlatform",
DeploymentConfigName = "deploymentConfigName",
MinimumHealthyHosts = new MinimumHealthyHostsProperty {
Type = "type",
Value = 123
},
TrafficRoutingConfig = new TrafficRoutingConfigProperty {
Type = "type",
// the properties below are optional
TimeBasedCanary = new TimeBasedCanaryProperty {
CanaryInterval = 123,
CanaryPercentage = 123
},
TimeBasedLinear = new TimeBasedLinearProperty {
LinearInterval = 123,
LinearPercentage = 123
}
},
ZonalConfig = new ZonalConfigProperty {
FirstZoneMonitorDurationInSeconds = 123,
MinimumHealthyHostsPerZone = new MinimumHealthyHostsPerZoneProperty {
Type = "type",
Value = 123
},
MonitorDurationInSeconds = 123
}
});
Synopsis
Constructors
| CfnDeploymentConfig(Construct, string, ICfnDeploymentConfigProps?) | Create a new |
Properties
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | The |
| CfnPropertyNames | The |
| ComputePlatform | The destination platform type for the deployment ( |
| DeploymentConfigName | A name for the deployment configuration. |
| DeploymentConfigRef | A reference to a DeploymentConfig resource. |
| MinimumHealthyHosts | The minimum number of healthy instances that should be available at any time during the deployment. |
| TrafficRoutingConfig | The configuration that specifies how the deployment traffic is routed. |
| ZonalConfig | Configure the |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnDeploymentConfig(object) | Checks whether the given object is a CfnDeploymentConfig. |
| RenderProperties(IDictionary<string, object>) | The |
Constructors
CfnDeploymentConfig(Construct, string, ICfnDeploymentConfigProps?)
Create a new AWS::CodeDeploy::DeploymentConfig.
public CfnDeploymentConfig(Construct scope, string id, ICfnDeploymentConfigProps? props = null)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnDeploymentConfigProps
Resource properties.
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
CfnProperties
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.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
CfnPropertyNames
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.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
ComputePlatform
The destination platform type for the deployment ( Lambda , Server , or ECS ).
public virtual string? ComputePlatform { get; set; }
Property Value
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
DeploymentConfigName
A name for the deployment configuration.
public virtual string? DeploymentConfigName { get; set; }
Property Value
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
DeploymentConfigRef
A reference to a DeploymentConfig resource.
public virtual IDeploymentConfigReference DeploymentConfigRef { get; }
Property Value
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
MinimumHealthyHosts
The minimum number of healthy instances that should be available at any time during the deployment.
public virtual object? MinimumHealthyHosts { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDeploymentConfig.IMinimumHealthyHostsProperty
TrafficRoutingConfig
The configuration that specifies how the deployment traffic is routed.
public virtual object? TrafficRoutingConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDeploymentConfig.ITrafficRoutingConfigProperty
ZonalConfig
Configure the ZonalConfig object if you want AWS CodeDeploy to deploy your application to one Availability Zone at a time, within an AWS Region.
public virtual object? ZonalConfig { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnDeploymentConfig.IZonalConfigProperty
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
IsCfnDeploymentConfig(object)
Checks whether the given object is a CfnDeploymentConfig.
public static bool IsCfnDeploymentConfig(object x)
Parameters
- x object
Returns
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
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.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.
CloudformationResource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: fixture=_generated