Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::DeploymentStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::DeploymentStyleProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.
Instance Attribute Summary collapse
-
#deployment_option ⇒ String?
readonly
Indicates whether to route deployment traffic behind a load balancer.
-
#deployment_type ⇒ String?
readonly
Indicates whether to run an in-place or blue/green deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deployment_option: nil, deployment_type: nil) ⇒ DeploymentStyleProperty
constructor
A new instance of DeploymentStyleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deployment_option: nil, deployment_type: nil) ⇒ DeploymentStyleProperty
Returns a new instance of DeploymentStyleProperty.
1124 1125 1126 1127 1128 1129 |
# File 'code_deploy/cfn_deployment_group.rb', line 1124 def initialize(deployment_option: nil, deployment_type: nil) @deployment_option = deployment_option Jsii::Type.check_type(@deployment_option, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentOption") unless @deployment_option.nil? @deployment_type = deployment_type Jsii::Type.check_type(@deployment_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deploymentType") unless @deployment_type.nil? end |
Instance Attribute Details
#deployment_option ⇒ String? (readonly)
Indicates whether to route deployment traffic behind a load balancer.
An Amazon EC2 Application Load Balancer or Network Load Balancer is required for an Amazon ECS deployment.
1137 1138 1139 |
# File 'code_deploy/cfn_deployment_group.rb', line 1137 def deployment_option @deployment_option end |
#deployment_type ⇒ String? (readonly)
Indicates whether to run an in-place or blue/green deployment.
1142 1143 1144 |
# File 'code_deploy/cfn_deployment_group.rb', line 1142 def deployment_type @deployment_type end |
Class Method Details
.jsii_properties ⇒ Object
1144 1145 1146 1147 1148 1149 |
# File 'code_deploy/cfn_deployment_group.rb', line 1144 def self.jsii_properties { :deployment_option => "deploymentOption", :deployment_type => "deploymentType", } end |
Instance Method Details
#to_jsii ⇒ Object
1151 1152 1153 1154 1155 1156 1157 1158 |
# File 'code_deploy/cfn_deployment_group.rb', line 1151 def to_jsii result = {} result.merge!({ "deploymentOption" => @deployment_option, "deploymentType" => @deployment_type, }) result.compact end |