interface AlternateTargetOptions
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.ECS.AlternateTargetOptions |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsecs#AlternateTargetOptions |
Java | software.amazon.awscdk.services.ecs.AlternateTargetOptions |
Python | aws_cdk.aws_ecs.AlternateTargetOptions |
TypeScript (source) | aws-cdk-lib » aws_ecs » AlternateTargetOptions |
Options for AlternateTarget configuration.
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';
import { aws_iam as iam } from 'aws-cdk-lib';
declare const listenerRuleConfiguration: ecs.ListenerRuleConfiguration;
declare const role: iam.Role;
const alternateTargetOptions: ecs.AlternateTargetOptions = {
role: role,
testListener: listenerRuleConfiguration,
};
Properties
| Name | Type | Description |
|---|---|---|
| role? | IRole | The IAM role for the configuration. |
| test | Listener | The test listener configuration. |
role?
Type:
IRole
(optional, default: a new role will be created)
The IAM role for the configuration.
testListener?
Type:
Listener
(optional, default: none)
The test listener configuration.

.NET
Go
Java
Python
TypeScript (