interface AlternateTargetConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ECS.AlternateTargetConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#AlternateTargetConfig |
![]() | software.amazon.awscdk.services.ecs.AlternateTargetConfig |
![]() | aws_cdk.aws_ecs.AlternateTargetConfig |
![]() | aws-cdk-lib » aws_ecs » AlternateTargetConfig |
Obtainable from
Alternate
.bind()
Configuration returned by AlternateTargetConfiguration.bind().
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const alternateTargetConfig: ecs.AlternateTargetConfig = {
alternateTargetGroupArn: 'alternateTargetGroupArn',
roleArn: 'roleArn',
// the properties below are optional
productionListenerRule: 'productionListenerRule',
testListenerRule: 'testListenerRule',
};
Properties
Name | Type | Description |
---|---|---|
alternate | string | The ARN of the alternate target group. |
role | string | The IAM role ARN for the configuration. |
production | string | The production listener rule ARN (ALB) or listener ARN (NLB). |
test | string | The test listener rule ARN (ALB) or listener ARN (NLB). |
alternateTargetGroupArn
Type:
string
The ARN of the alternate target group.
roleArn
Type:
string
The IAM role ARN for the configuration.
productionListenerRule?
Type:
string
(optional, default: none)
The production listener rule ARN (ALB) or listener ARN (NLB).
testListenerRule?
Type:
string
(optional, default: none)
The test listener rule ARN (ALB) or listener ARN (NLB).