Class ServerDeploymentGroup
A CodeDeploy Deployment Group that deploys to EC2/on-premise instances.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ServerDeploymentGroup : Resource, IServerDeploymentGroup, IResource
Syntax (vb)
Public Class ServerDeploymentGroup
Inherits Resource
Implements IServerDeploymentGroup, IResource
Remarks
Resource: AWS::CodeDeploy::DeploymentGroup
ExampleMetadata: infused
Examples
ApplicationLoadBalancer alb;
var listener = alb.AddListener("Listener", new BaseApplicationListenerProps { Port = 80 });
var targetGroup = listener.AddTargets("Fleet", new AddApplicationTargetsProps { Port = 80 });
var deploymentGroup = new ServerDeploymentGroup(this, "DeploymentGroup", new ServerDeploymentGroupProps {
LoadBalancer = LoadBalancer.Application(targetGroup)
});
Synopsis
Constructors
ServerDeploymentGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ServerDeploymentGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ServerDeploymentGroup(Construct, String, IServerDeploymentGroupProps) |
Properties
Application | |
AutoScalingGroups | |
DeploymentConfig | |
DeploymentGroupArn | The ARN of the Deployment Group. |
DeploymentGroupName | The name of the Deployment Group. |
Role | The service Role of this Deployment Group. |
Methods
AddAlarm(IAlarm) | Associates an additional alarm with this Deployment Group. |
AddAutoScalingGroup(AutoScalingGroup) | Adds an additional auto-scaling group to this Deployment Group. |
FromServerDeploymentGroupAttributes(Construct, String, IServerDeploymentGroupAttributes) | Import an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region. |
Constructors
ServerDeploymentGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ServerDeploymentGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ServerDeploymentGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ServerDeploymentGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ServerDeploymentGroup(Construct, String, IServerDeploymentGroupProps)
public ServerDeploymentGroup(Construct scope, string id, IServerDeploymentGroupProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IServerDeploymentGroupProps
Properties
Application
AutoScalingGroups
DeploymentConfig
public virtual IServerDeploymentConfig DeploymentConfig { get; }
Property Value
DeploymentGroupArn
The ARN of the Deployment Group.
public virtual string DeploymentGroupArn { get; }
Property Value
System.String
DeploymentGroupName
The name of the Deployment Group.
public virtual string DeploymentGroupName { get; }
Property Value
System.String
Role
Methods
AddAlarm(IAlarm)
Associates an additional alarm with this Deployment Group.
public virtual void AddAlarm(IAlarm alarm)
Parameters
- alarm IAlarm
the alarm to associate with this Deployment Group.
AddAutoScalingGroup(AutoScalingGroup)
Adds an additional auto-scaling group to this Deployment Group.
public virtual void AddAutoScalingGroup(AutoScalingGroup asg)
Parameters
- asg AutoScalingGroup
the auto-scaling group to add to this Deployment Group.
FromServerDeploymentGroupAttributes(Construct, String, IServerDeploymentGroupAttributes)
Import an EC2/on-premise Deployment Group defined either outside the CDK app, or in a different region.
public static IServerDeploymentGroup FromServerDeploymentGroupAttributes(Construct scope, string id, IServerDeploymentGroupAttributes attrs)
Parameters
- scope Constructs.Construct
the parent Construct for this new Construct.
- id System.String
the logical ID of this new Construct.
- attrs IServerDeploymentGroupAttributes
the properties of the referenced Deployment Group.
Returns
a Construct representing a reference to an existing Deployment Group