Class: AWSCDK::CfnCodeDeployBlueGreenApplication

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ecs_attributes:, target:) ⇒ CfnCodeDeployBlueGreenApplication

Returns a new instance of CfnCodeDeployBlueGreenApplication.

Parameters:



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_attributesAWSCDK::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

#targetAWSCDK::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_propertiesObject



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_jsiiObject



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