Class: AWSCDK::CodeDeploy::MinimumHealthyHostsPerZone

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

Overview

Minimum number of healthy hosts per availability zone for a server deployment.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MinimumHealthyHostsPerZone

Returns a new instance of MinimumHealthyHostsPerZone.

Raises:

  • (NoMethodError)


8
9
10
# File 'code_deploy/minimum_healthy_hosts_per_zone.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_codedeploy.MinimumHealthyHostsPerZone does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.count(value) ⇒ AWSCDK::CodeDeploy::MinimumHealthyHostsPerZone

The minimum healthy hosts threshold expressed as an absolute number.

Parameters:

  • value (Numeric)

Returns:

  • (AWSCDK::CodeDeploy::MinimumHealthyHostsPerZone)


21
22
23
24
# File 'code_deploy/minimum_healthy_hosts_per_zone.rb', line 21

def self.count(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codedeploy.MinimumHealthyHostsPerZone", "count", [value])
end

.jsii_overridable_methodsObject



12
13
14
15
# File 'code_deploy/minimum_healthy_hosts_per_zone.rb', line 12

def self.jsii_overridable_methods
  {
  }
end

.percentage(value) ⇒ AWSCDK::CodeDeploy::MinimumHealthyHostsPerZone

The minimum healthy hosts threshold expressed as a percentage of the fleet.

Parameters:

  • value (Numeric)

Returns:

  • (AWSCDK::CodeDeploy::MinimumHealthyHostsPerZone)


30
31
32
33
# File 'code_deploy/minimum_healthy_hosts_per_zone.rb', line 30

def self.percentage(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_codedeploy.MinimumHealthyHostsPerZone", "percentage", [value])
end