Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::BlueGreenDeploymentConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::BlueGreenDeploymentConfigurationProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
Information about blue/green deployment options for a deployment group.
Instance Attribute Summary collapse
-
#deployment_ready_option ⇒ AWSCDK::IResolvable, ...
readonly
Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.
-
#green_fleet_provisioning_option ⇒ AWSCDK::IResolvable, ...
readonly
Information about how instances are provisioned for a replacement environment in a blue/green deployment.
-
#terminate_blue_instances_on_deployment_success ⇒ AWSCDK::IResolvable, ...
readonly
Information about whether to terminate instances in the original fleet during a blue/green deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(deployment_ready_option: nil, green_fleet_provisioning_option: nil, terminate_blue_instances_on_deployment_success: nil) ⇒ BlueGreenDeploymentConfigurationProperty
constructor
A new instance of BlueGreenDeploymentConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(deployment_ready_option: nil, green_fleet_provisioning_option: nil, terminate_blue_instances_on_deployment_success: nil) ⇒ BlueGreenDeploymentConfigurationProperty
Returns a new instance of BlueGreenDeploymentConfigurationProperty.
911 912 913 914 915 916 917 918 |
# File 'code_deploy/cfn_deployment_group.rb', line 911 def initialize(deployment_ready_option: nil, green_fleet_provisioning_option: nil, terminate_blue_instances_on_deployment_success: nil) @deployment_ready_option = deployment_ready_option.is_a?(Hash) ? ::AWSCDK::CodeDeploy::CfnDeploymentGroup::DeploymentReadyOptionProperty.new(**deployment_ready_option.transform_keys(&:to_sym)) : deployment_ready_option Jsii::Type.check_type(@deployment_ready_option, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlZGVwbG95LkNmbkRlcGxveW1lbnRHcm91cC5EZXBsb3ltZW50UmVhZHlPcHRpb25Qcm9wZXJ0eSJ9XX19")), "deploymentReadyOption") unless @deployment_ready_option.nil? @green_fleet_provisioning_option = green_fleet_provisioning_option.is_a?(Hash) ? ::AWSCDK::CodeDeploy::CfnDeploymentGroup::GreenFleetProvisioningOptionProperty.new(**green_fleet_provisioning_option.transform_keys(&:to_sym)) : green_fleet_provisioning_option Jsii::Type.check_type(@green_fleet_provisioning_option, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlZGVwbG95LkNmbkRlcGxveW1lbnRHcm91cC5HcmVlbkZsZWV0UHJvdmlzaW9uaW5nT3B0aW9uUHJvcGVydHkifV19fQ==")), "greenFleetProvisioningOption") unless @green_fleet_provisioning_option.nil? @terminate_blue_instances_on_deployment_success = terminate_blue_instances_on_deployment_success.is_a?(Hash) ? ::AWSCDK::CodeDeploy::CfnDeploymentGroup::BlueInstanceTerminationOptionProperty.new(**terminate_blue_instances_on_deployment_success.transform_keys(&:to_sym)) : terminate_blue_instances_on_deployment_success Jsii::Type.check_type(@terminate_blue_instances_on_deployment_success, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb2RlZGVwbG95LkNmbkRlcGxveW1lbnRHcm91cC5CbHVlSW5zdGFuY2VUZXJtaW5hdGlvbk9wdGlvblByb3BlcnR5In1dfX0=")), "terminateBlueInstancesOnDeploymentSuccess") unless @terminate_blue_instances_on_deployment_success.nil? end |
Instance Attribute Details
#deployment_ready_option ⇒ AWSCDK::IResolvable, ... (readonly)
Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment.
924 925 926 |
# File 'code_deploy/cfn_deployment_group.rb', line 924 def deployment_ready_option @deployment_ready_option end |
#green_fleet_provisioning_option ⇒ AWSCDK::IResolvable, ... (readonly)
Information about how instances are provisioned for a replacement environment in a blue/green deployment.
929 930 931 |
# File 'code_deploy/cfn_deployment_group.rb', line 929 def green_fleet_provisioning_option @green_fleet_provisioning_option end |
#terminate_blue_instances_on_deployment_success ⇒ AWSCDK::IResolvable, ... (readonly)
Information about whether to terminate instances in the original fleet during a blue/green deployment.
934 935 936 |
# File 'code_deploy/cfn_deployment_group.rb', line 934 def terminate_blue_instances_on_deployment_success @terminate_blue_instances_on_deployment_success end |
Class Method Details
.jsii_properties ⇒ Object
936 937 938 939 940 941 942 |
# File 'code_deploy/cfn_deployment_group.rb', line 936 def self.jsii_properties { :deployment_ready_option => "deploymentReadyOption", :green_fleet_provisioning_option => "greenFleetProvisioningOption", :terminate_blue_instances_on_deployment_success => "terminateBlueInstancesOnDeploymentSuccess", } end |
Instance Method Details
#to_jsii ⇒ Object
944 945 946 947 948 949 950 951 952 |
# File 'code_deploy/cfn_deployment_group.rb', line 944 def to_jsii result = {} result.merge!({ "deploymentReadyOption" => @deployment_ready_option, "greenFleetProvisioningOption" => @green_fleet_provisioning_option, "terminateBlueInstancesOnDeploymentSuccess" => @terminate_blue_instances_on_deployment_success, }) result.compact end |