AlternateTargetOptions

class aws_cdk.aws_ecs.AlternateTargetOptions(*, role=None, test_listener=None)

Bases: object

Options for AlternateTarget configuration.

Parameters:
  • role (Optional[IRole]) – The IAM role for the configuration. Default: - a new role will be created

  • test_listener (Optional[ListenerRuleConfiguration]) – The test listener configuration. 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
from aws_cdk import aws_iam as iam

# listener_rule_configuration: ecs.ListenerRuleConfiguration
# role: iam.Role

alternate_target_options = ecs.AlternateTargetOptions(
    role=role,
    test_listener=listener_rule_configuration
)

Attributes

role

The IAM role for the configuration.

Default:
  • a new role will be created

test_listener

The test listener configuration.

Default:
  • none