Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::GreenFleetProvisioningOptionProperty

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

Overview

Information about the instances that belong to the replacement environment in a blue/green deployment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action: nil) ⇒ GreenFleetProvisioningOptionProperty

Returns a new instance of GreenFleetProvisioningOptionProperty.

Parameters:

  • action (String, nil) (defaults to: nil)

    The method used to add instances to a replacement environment.



1438
1439
1440
1441
# File 'code_deploy/cfn_deployment_group.rb', line 1438

def initialize(action: nil)
  @action = action
  Jsii::Type.check_type(@action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "action") unless @action.nil?
end

Instance Attribute Details

#actionString? (readonly)

The method used to add instances to a replacement environment.

  • DISCOVER_EXISTING : Use instances that already exist or will be created manually.
  • COPY_AUTO_SCALING_GROUP : Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.


1450
1451
1452
# File 'code_deploy/cfn_deployment_group.rb', line 1450

def action
  @action
end

Class Method Details

.jsii_propertiesObject



1452
1453
1454
1455
1456
# File 'code_deploy/cfn_deployment_group.rb', line 1452

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

Instance Method Details

#to_jsiiObject



1458
1459
1460
1461
1462
1463
1464
# File 'code_deploy/cfn_deployment_group.rb', line 1458

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