Class: AWSCDK::CfnCodeDeployBlueGreenApplication
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnCodeDeployBlueGreenApplication
- Defined in:
- cfn_code_deploy_blue_green_application.rb
Overview
The application actually being deployed.
Type of the CfnCodeDeployBlueGreenHookProps.applications property.
Instance Attribute Summary collapse
-
#ecs_attributes ⇒ AWSCDK::CfnCodeDeployBlueGreenECSAttributes
readonly
The detailed attributes of the deployed target.
-
#target ⇒ AWSCDK::CfnCodeDeployBlueGreenApplicationTarget
readonly
The target that is being deployed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ecs_attributes:, target:) ⇒ CfnCodeDeployBlueGreenApplication
constructor
A new instance of CfnCodeDeployBlueGreenApplication.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ecs_attributes:, target:) ⇒ CfnCodeDeployBlueGreenApplication
Returns a new instance of CfnCodeDeployBlueGreenApplication.
11 12 13 14 15 16 |
# File 'cfn_code_deploy_blue_green_application.rb', line 11 def initialize(ecs_attributes:, target:) @ecs_attributes = ecs_attributes.is_a?(Hash) ? ::AWSCDK::CfnCodeDeployBlueGreenECSAttributes.new(**ecs_attributes.transform_keys(&:to_sym)) : ecs_attributes Jsii::Type.check_type(@ecs_attributes, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5Db2RlRGVwbG95Qmx1ZUdyZWVuRWNzQXR0cmlidXRlcyJ9")), "ecsAttributes") @target = target.is_a?(Hash) ? ::AWSCDK::CfnCodeDeployBlueGreenApplicationTarget.new(**target.transform_keys(&:to_sym)) : target Jsii::Type.check_type(@target, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5DZm5Db2RlRGVwbG95Qmx1ZUdyZWVuQXBwbGljYXRpb25UYXJnZXQifQ==")), "target") end |
Instance Attribute Details
#ecs_attributes ⇒ AWSCDK::CfnCodeDeployBlueGreenECSAttributes (readonly)
The detailed attributes of the deployed target.
21 22 23 |
# File 'cfn_code_deploy_blue_green_application.rb', line 21 def ecs_attributes @ecs_attributes end |
#target ⇒ AWSCDK::CfnCodeDeployBlueGreenApplicationTarget (readonly)
The target that is being deployed.
25 26 27 |
# File 'cfn_code_deploy_blue_green_application.rb', line 25 def target @target end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'cfn_code_deploy_blue_green_application.rb', line 27 def self.jsii_properties { :ecs_attributes => "ecsAttributes", :target => "target", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'cfn_code_deploy_blue_green_application.rb', line 34 def to_jsii result = {} result.merge!({ "ecsAttributes" => @ecs_attributes, "target" => @target, }) result.compact end |