Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::ELBInfoProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_group.rb

Overview

The ELBInfo property type specifies information about the Elastic Load Balancing load balancer used for an CodeDeploy deployment group.

If you specify the ELBInfo property, the DeploymentStyle.DeploymentOption property must be set to WITH_TRAFFIC_CONTROL for AWS CodeDeploy to route your traffic using the specified load balancers.

ELBInfo is a property of the AWS CodeDeploy DeploymentGroup LoadBalancerInfo property type.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil) ⇒ ELBInfoProperty

Returns a new instance of ELBInfoProperty.

Parameters:

  • name (String, nil) (defaults to: nil)

    For blue/green deployments, the name of the load balancer that is used to route traffic from original instances to replacement instances in a blue/green deployment.



1356
1357
1358
1359
# File 'code_deploy/cfn_deployment_group.rb', line 1356

def initialize(name: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil?
end

Instance Attribute Details

#nameString? (readonly)

For blue/green deployments, the name of the load balancer that is used to route traffic from original instances to replacement instances in a blue/green deployment.

For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment is complete.

CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.



1369
1370
1371
# File 'code_deploy/cfn_deployment_group.rb', line 1369

def name
  @name
end

Class Method Details

.jsii_propertiesObject



1371
1372
1373
1374
1375
# File 'code_deploy/cfn_deployment_group.rb', line 1371

def self.jsii_properties
  {
    :name => "name",
  }
end

Instance Method Details

#to_jsiiObject



1377
1378
1379
1380
1381
1382
1383
# File 'code_deploy/cfn_deployment_group.rb', line 1377

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
  })
  result.compact
end