Class ServerDeploymentConfig
A custom Deployment Configuration for an EC2/on-premise Deployment Group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServerDeploymentConfig : BaseDeploymentConfig, IResource, IServerDeploymentConfig, IBaseDeploymentConfig, IDeploymentConfigRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class ServerDeploymentConfig Inherits BaseDeploymentConfig Implements IResource, IServerDeploymentConfig, IBaseDeploymentConfig, IDeploymentConfigRef, IConstruct, IDependable, IEnvironmentAware
Remarks
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused
Examples
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
DeploymentConfigName = "MyDeploymentConfiguration", // optional property
// one of these is required, but both cannot be specified at the same time
MinimumHealthyHosts = MinimumHealthyHosts.Count(2)
});
Synopsis
Constructors
| ServerDeploymentConfig(Construct, string, IServerDeploymentConfigProps) | A custom Deployment Configuration for an EC2/on-premise Deployment Group. |
Properties
| ALL_AT_ONCE | The CodeDeployDefault.AllAtOnce predefined deployment configuration for EC2/on-premises compute platform. |
| HALF_AT_A_TIME | The CodeDeployDefault.HalfAtATime predefined deployment configuration for EC2/on-premises compute platform. |
| ONE_AT_A_TIME | The CodeDeployDefault.OneAtATime predefined deployment configuration for EC2/on-premises compute platform. |
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Methods
| FromServerDeploymentConfigName(Construct, string, string) | Import a custom Deployment Configuration for an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region. |
Constructors
ServerDeploymentConfig(Construct, string, IServerDeploymentConfigProps)
A custom Deployment Configuration for an EC2/on-premise Deployment Group.
public ServerDeploymentConfig(Construct scope, string id, IServerDeploymentConfigProps props)
Parameters
- scope Construct
- id string
- props IServerDeploymentConfigProps
Remarks
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused
Examples
var deploymentConfig = new ServerDeploymentConfig(this, "DeploymentConfiguration", new ServerDeploymentConfigProps {
DeploymentConfigName = "MyDeploymentConfiguration", // optional property
// one of these is required, but both cannot be specified at the same time
MinimumHealthyHosts = MinimumHealthyHosts.Count(2)
});
Properties
ALL_AT_ONCE
The CodeDeployDefault.AllAtOnce predefined deployment configuration for EC2/on-premises compute platform.
public static IServerDeploymentConfig ALL_AT_ONCE { get; }
Property Value
Remarks
HALF_AT_A_TIME
The CodeDeployDefault.HalfAtATime predefined deployment configuration for EC2/on-premises compute platform.
public static IServerDeploymentConfig HALF_AT_A_TIME { get; }
Property Value
Remarks
ONE_AT_A_TIME
The CodeDeployDefault.OneAtATime predefined deployment configuration for EC2/on-premises compute platform.
public static IServerDeploymentConfig ONE_AT_A_TIME { get; }
Property Value
Remarks
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused
Methods
FromServerDeploymentConfigName(Construct, string, string)
Import a custom Deployment Configuration for an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region.
public static IServerDeploymentConfig FromServerDeploymentConfigName(Construct scope, string id, string serverDeploymentConfigName)
Parameters
- scope Construct
the parent Construct for this new Construct.
- id string
the logical ID of this new Construct.
- serverDeploymentConfigName string
the properties of the referenced custom Deployment Configuration.
Returns
a Construct representing a reference to an existing custom Deployment Configuration
Remarks
Resource: AWS::CodeDeploy::DeploymentConfig
ExampleMetadata: infused