AlternateTargetConfig
- class aws_cdk.aws_ecs.AlternateTargetConfig(*, alternate_target_group_arn, role_arn, production_listener_rule=None, test_listener_rule=None)
Bases:
object
Configuration returned by AlternateTargetConfiguration.bind().
- Parameters:
alternate_target_group_arn (
str
) – The ARN of the alternate target group.role_arn (
str
) – The IAM role ARN for the configuration. Default: - a new role will be createdproduction_listener_rule (
Optional
[str
]) – The production listener rule ARN (ALB) or listener ARN (NLB). Default: - nonetest_listener_rule (
Optional
[str
]) – The test listener rule ARN (ALB) or listener ARN (NLB). Default: - none
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ecs as ecs alternate_target_config = ecs.AlternateTargetConfig( alternate_target_group_arn="alternateTargetGroupArn", role_arn="roleArn", # the properties below are optional production_listener_rule="productionListenerRule", test_listener_rule="testListenerRule" )
Attributes
- alternate_target_group_arn
The ARN of the alternate target group.
- production_listener_rule
The production listener rule ARN (ALB) or listener ARN (NLB).
- Default:
none
- role_arn
The IAM role ARN for the configuration.
- Default:
a new role will be created
- test_listener_rule
The test listener rule ARN (ALB) or listener ARN (NLB).
- Default:
none