Class: AWSCDK::CodeDeploy::ECSDeploymentConfigProps
- Inherits:
-
BaseDeploymentConfigOptions
- Object
- BaseDeploymentConfigOptions
- AWSCDK::CodeDeploy::ECSDeploymentConfigProps
- Defined in:
- code_deploy/ecs_deployment_config_props.rb
Overview
Construction properties of EcsDeploymentConfig.
Instance Attribute Summary collapse
-
#deployment_config_name ⇒ String?
readonly
The physical, human-readable name of the Deployment Configuration.
-
#traffic_routing ⇒ AWSCDK::CodeDeploy::TrafficRouting?
readonly
The configuration that specifies how traffic is shifted from the 'blue' target group to the 'green' target group during a deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deployment_config_name: nil, traffic_routing: nil) ⇒ ECSDeploymentConfigProps
constructor
A new instance of ECSDeploymentConfigProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deployment_config_name: nil, traffic_routing: nil) ⇒ ECSDeploymentConfigProps
Returns a new instance of ECSDeploymentConfigProps.
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_name ⇒ String? (readonly)
Note:
Default: - automatically generated name
The physical, human-readable name of the Deployment Configuration.
20 21 22 |
# File 'code_deploy/ecs_deployment_config_props.rb', line 20 def deployment_config_name @deployment_config_name end |
#traffic_routing ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |