Hierarchy (view full)

Constructors

Properties

applicationListeners: Record<string, ApplicationListener> = {}
containers: Record<string, Container>
executionRole?: any
listeners: Record<string, Listener> = {}

Mapping from container in this task to the ELB listener exposing it through a load balancer. Only present if a listener was provided in [Container.portMappings] or in [Container.applicationListener] or [Container.networkListener].

logGroup?: any
networkListeners: Record<string, NetworkListener> = {}
run: ((params) => Promise<RunTaskCommandOutput>)

Run one or more instances of this TaskDefinition using the ECS runTask API, returning the Task instances.

This wrapper around runTask provides appropriate defaults based on the TaskDefinition and allows specifying a Cluster instead of individual network configurations.

This API is designed for use at runtime.

Type declaration

    • (params): Promise<RunTaskCommandOutput>
    • Parameters

      Returns Promise<RunTaskCommandOutput>

taskDefinition: TaskDefinition
taskRole?: any

Methods

  • Creates the [executionRole] for a [TaskDefinition] if not provided explicitly. If [assumeRolePolicy] is provided it will be used when creating the task, otherwise [defaultRoleAssumeRolePolicy] will be used. If [policyArns] are provided, they will be used to create [RolePolicyAttachment]s for the Role. Otherwise, [defaultExecutionRolePolicyARNs] will be used.

    Parameters

    • name: string
    • Optional assumeRolePolicy: any
    • Optional policyArns: string[]
    • Optional opts: any

    Returns Role

  • Creates the [taskRole] for a [TaskDefinition] if not provided explicitly. If [assumeRolePolicy] is provided it will be used when creating the task, otherwise [defaultRoleAssumeRolePolicy] will be used. If [policyArns] are provided, they will be used to create [RolePolicyAttachment]s for the Role. Otherwise, [defaultTaskRolePolicyARNs] will be used.

    Parameters

    • name: string
    • Optional assumeRolePolicy: any
    • Optional policyArns: string[]
    • Optional opts: any

    Returns Role

Generated using TypeDoc