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
Syntax (vb)
Public Class ServerDeploymentConfig
Inherits BaseDeploymentConfig
Implements IResource, IServerDeploymentConfig, IBaseDeploymentConfig
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ServerDeploymentConfig(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ServerDeploymentConfig(Construct, String, IServerDeploymentConfigProps) |
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. |
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(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ServerDeploymentConfig(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ServerDeploymentConfig(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ServerDeploymentConfig(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ServerDeploymentConfig(Construct, String, IServerDeploymentConfigProps)
public ServerDeploymentConfig(Construct scope, string id, IServerDeploymentConfigProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IServerDeploymentConfigProps
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
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 Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- serverDeploymentConfigName System.String
the properties of the referenced custom Deployment Configuration.
Returns
a Construct representing a reference to an existing custom Deployment Configuration