Class: AWSCDK::CodeDeploy::CfnDeploymentGroup::TargetGroupInfoProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeDeploy::CfnDeploymentGroup::TargetGroupInfoProperty
- Defined in:
- code_deploy/cfn_deployment_group.rb
Overview
The TargetGroupInfo property type specifies information about a target group in Elastic Load Balancing to use in a deployment.
Instances are registered as targets in a target group, and traffic is routed to the target group. For more information, see TargetGroupInfo in the AWS CodeDeploy API Reference
If you specify the TargetGroupInfo property, the DeploymentStyle.DeploymentOption property must be set to WITH_TRAFFIC_CONTROL for CodeDeploy to route your traffic using the specified target groups.
TargetGroupInfo is a property of the LoadBalancerInfo property type.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil) ⇒ TargetGroupInfoProperty
constructor
A new instance of TargetGroupInfoProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil) ⇒ TargetGroupInfoProperty
Returns a new instance of TargetGroupInfoProperty.
1831 1832 1833 1834 |
# File 'code_deploy/cfn_deployment_group.rb', line 1831 def initialize(name: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with.
For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. No duplicates allowed.
CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
This value cannot exceed 32 characters, so you should use the Name property of the target group, or the TargetGroupName attribute with the Fn::GetAtt intrinsic function, as shown in the following example. Don't use the group's Amazon Resource Name (ARN) or TargetGroupFullName attribute.
1846 1847 1848 |
# File 'code_deploy/cfn_deployment_group.rb', line 1846 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
1848 1849 1850 1851 1852 |
# File 'code_deploy/cfn_deployment_group.rb', line 1848 def self.jsii_properties { :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
1854 1855 1856 1857 1858 1859 1860 |
# File 'code_deploy/cfn_deployment_group.rb', line 1854 def to_jsii result = {} result.merge!({ "name" => @name, }) result.compact end |