Skip to content
v2.274.0

AlternateTargetConfig Struct ​

Configuration returned by AlternateTargetConfiguration.bind().

Example ​

ts
// 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 ​

alternateTargetGroupArnstringalternate_target_group_arnstralternateTargetGroupArnStringAlternateTargetGroupArnstringAlternateTargetGroupArn*stringrequired#
The ARN of the alternate target group.
productionListenerRuleoptionalstringproduction_listener_ruleoptionalstrproductionListenerRuleoptionalStringProductionListenerRuleoptionalstringProductionListenerRuleoptional*string= none#
The production listener rule ARN (ALB) or listener ARN (NLB).
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*stringrequired#
The IAM role ARN for the configuration.

Default: a new role will be created

testListenerRuleoptionalstringtest_listener_ruleoptionalstrtestListenerRuleoptionalStringTestListenerRuleoptionalstringTestListenerRuleoptional*string= none#
The test listener rule ARN (ALB) or listener ARN (NLB).