Readonly
applicationReadonly
containersOptional
Readonly
executionReadonly
listenersOptional
Readonly
logReadonly
networkReadonly
runRun 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.
Readonly
taskOptional
Readonly
taskCreates a service with this as its task definition.
Static
createCreates 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.
Optional
assumeRolePolicy: anyOptional
policyArns: string[]Optional
opts: anyStatic
createCreates 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.
Optional
assumeRolePolicy: anyOptional
policyArns: string[]Optional
opts: anyStatic
defaultStatic
defaultStatic
defaultGenerated using TypeDoc
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].