Class: AWSCDK::CfnCodeDeployBlueGreenApplicationTarget
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnCodeDeployBlueGreenApplicationTarget
- Defined in:
- cfn_code_deploy_blue_green_application_target.rb
Overview
Type of the CfnCodeDeployBlueGreenApplication.target property.
Instance Attribute Summary collapse
-
#logical_id ⇒ String
readonly
The logical id of the target resource.
-
#type ⇒ String
readonly
The resource type of the target being deployed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(logical_id:, type:) ⇒ CfnCodeDeployBlueGreenApplicationTarget
constructor
A new instance of CfnCodeDeployBlueGreenApplicationTarget.
- #to_jsii ⇒ Object
Constructor Details
#initialize(logical_id:, type:) ⇒ CfnCodeDeployBlueGreenApplicationTarget
Returns a new instance of CfnCodeDeployBlueGreenApplicationTarget.
9 10 11 12 13 14 |
# File 'cfn_code_deploy_blue_green_application_target.rb', line 9 def initialize(logical_id:, type:) @logical_id = logical_id Jsii::Type.check_type(@logical_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logicalId") @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#logical_id ⇒ String (readonly)
The logical id of the target resource.
19 20 21 |
# File 'cfn_code_deploy_blue_green_application_target.rb', line 19 def logical_id @logical_id end |
#type ⇒ String (readonly)
The resource type of the target being deployed.
Right now, the only allowed value is 'AWS::ECS::Service'.
25 26 27 |
# File 'cfn_code_deploy_blue_green_application_target.rb', line 25 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'cfn_code_deploy_blue_green_application_target.rb', line 27 def self.jsii_properties { :logical_id => "logicalId", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'cfn_code_deploy_blue_green_application_target.rb', line 34 def to_jsii result = {} result.merge!({ "logicalId" => @logical_id, "type" => @type, }) result.compact end |