Class: AWSCDK::CodeDeploy::CfnDeploymentConfig::MinimumHealthyHostsPerZoneProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_deploy/cfn_deployment_config.rb

Overview

Information about the minimum number of healthy instances per Availability Zone.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ MinimumHealthyHostsPerZoneProperty

Returns a new instance of MinimumHealthyHostsPerZoneProperty.

Parameters:

  • type (String)

    The type associated with the MinimumHealthyHostsPerZone option.

  • value (Numeric)

    The value associated with the MinimumHealthyHostsPerZone option.



550
551
552
553
554
555
# File 'code_deploy/cfn_deployment_config.rb', line 550

def initialize(type:, value:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#typeString (readonly)

The type associated with the MinimumHealthyHostsPerZone option.



561
562
563
# File 'code_deploy/cfn_deployment_config.rb', line 561

def type
  @type
end

#valueNumeric (readonly)

The value associated with the MinimumHealthyHostsPerZone option.



566
567
568
# File 'code_deploy/cfn_deployment_config.rb', line 566

def value
  @value
end

Class Method Details

.jsii_propertiesObject



568
569
570
571
572
573
# File 'code_deploy/cfn_deployment_config.rb', line 568

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



575
576
577
578
579
580
581
582
# File 'code_deploy/cfn_deployment_config.rb', line 575

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end