Class: AWSCDK::CodeDeploy::ECSDeploymentConfigProps

Inherits:
BaseDeploymentConfigOptions
  • Object
show all
Defined in:
code_deploy/ecs_deployment_config_props.rb

Overview

Construction properties of EcsDeploymentConfig.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deployment_config_name: nil, traffic_routing: nil) ⇒ ECSDeploymentConfigProps

Returns a new instance of ECSDeploymentConfigProps.

Parameters:

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

    The physical, human-readable name of the Deployment Configuration.

  • traffic_routing (AWSCDK::CodeDeploy::TrafficRouting, nil) (defaults to: nil)

    The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.



9
10
11
12
13
14
# File 'code_deploy/ecs_deployment_config_props.rb', line 9

def initialize(deployment_config_name: nil, traffic_routing: nil)
  @deployment_config_name = deployment_config_name
  Jsii::Type.check_type(@deployment_config_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentConfigName") unless @deployment_config_name.nil?
  @traffic_routing = traffic_routing
  Jsii::Type.check_type(@traffic_routing, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29kZWRlcGxveS5UcmFmZmljUm91dGluZyJ9")), "trafficRouting") unless @traffic_routing.nil?
end

Instance Attribute Details

#deployment_config_nameString? (readonly)

Note:

Default: - automatically generated name

The physical, human-readable name of the Deployment Configuration.

Returns:

  • (String, nil)


20
21
22
# File 'code_deploy/ecs_deployment_config_props.rb', line 20

def deployment_config_name
  @deployment_config_name
end

#traffic_routingAWSCDK::CodeDeploy::TrafficRouting? (readonly)

Note:

Default: AllAtOnce

The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.



25
26
27
# File 'code_deploy/ecs_deployment_config_props.rb', line 25

def traffic_routing
  @traffic_routing
end

Class Method Details

.jsii_propertiesObject



27
28
29
30
31
32
# File 'code_deploy/ecs_deployment_config_props.rb', line 27

def self.jsii_properties
  {
    :deployment_config_name => "deploymentConfigName",
    :traffic_routing => "trafficRouting",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
42
# File 'code_deploy/ecs_deployment_config_props.rb', line 34

def to_jsii
  result = {}
  result.merge!(super)
  result.merge!({
    "deploymentConfigName" => @deployment_config_name,
    "trafficRouting" => @traffic_routing,
  })
  result.compact
end