View source: R/ecs_operations.R
ecs_run_task | R Documentation |
Starts a new task using the specified task definition.
See https://www.paws-r-sdk.com/docs/ecs_run_task/ for full documentation.
ecs_run_task(
capacityProviderStrategy = NULL,
cluster = NULL,
count = NULL,
enableECSManagedTags = NULL,
enableExecuteCommand = NULL,
group = NULL,
launchType = NULL,
networkConfiguration = NULL,
overrides = NULL,
placementConstraints = NULL,
placementStrategy = NULL,
platformVersion = NULL,
propagateTags = NULL,
referenceId = NULL,
startedBy = NULL,
tags = NULL,
taskDefinition,
clientToken = NULL,
volumeConfigurations = NULL
)
capacityProviderStrategy |
The capacity provider strategy to use for the task. If a When you use cluster auto scaling, you must specify
A capacity provider strategy may contain a maximum of 6 capacity providers. |
cluster |
The short name or full Amazon Resource Name (ARN) of the cluster to run your task on. If you do not specify a cluster, the default cluster is assumed. |
count |
The number of instantiations of the specified task to place on your cluster. You can specify up to 10 tasks for each call. |
enableECSManagedTags |
Specifies whether to use Amazon ECS managed tags for the task. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide. |
enableExecuteCommand |
Determines whether to use the execute command functionality for the
containers in this task. If If |
group |
The name of the task group to associate with the task. The default value
is the family name of the task definition (for example,
|
launchType |
The infrastructure to run your standalone task on. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide. The Fargate Spot infrastructure is available for use but a capacity provider strategy must be used. For more information, see Fargate capacity providers in the Amazon ECS Developer Guide. The The A task can use either a launch type or a capacity provider strategy. If
a When you use cluster auto scaling, you must specify
|
networkConfiguration |
The network configuration for the task. This parameter is required for
task definitions that use the |
overrides |
A list of container overrides in JSON format that specify the name of a
container in the specified task definition and the overrides it should
receive. You can override the default command for a container (that's
specified in the task definition or Docker image) with a A total of 8192 characters are allowed for overrides. This limit includes the JSON formatting characters of the override structure. |
placementConstraints |
An array of placement constraint objects to use for the task. You can specify up to 10 constraints for each task (including constraints in the task definition and those specified at runtime). |
placementStrategy |
The placement strategy objects to use for the task. You can specify a maximum of 5 strategy rules for each task. |
platformVersion |
The platform version the task uses. A platform version is only specified
for tasks hosted on Fargate. If one isn't specified, the |
propagateTags |
Specifies whether to propagate the tags from the task definition to the
task. If no value is specified, the tags aren't propagated. Tags can
only be propagated to the task during task creation. To add tags to a
task after task creation, use the An error will be received if you specify the |
referenceId |
The reference ID to use for the task. The reference ID can have a maximum length of 1024 characters. |
startedBy |
An optional tag specified when a task is started. For example, if you
automatically trigger a task to run a batch process job, you could apply
a unique identifier for that job to your task with the If a task is started by an Amazon ECS service, then the |
tags |
The metadata that you apply to the task to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define. The following basic restrictions apply to tags:
|
taskDefinition |
[required] The The full ARN value must match the value that you specified as the
When you specify a task definition, you must either specify a specific revision, or all revisions in the ARN. To specify a specific revision, include the revision number in the ARN.
For example, to specify revision 2, use
To specify all revisions, use the wildcard (*) in the ARN. For example,
to specify all revisions, use
For more information, see Policy Resources for Amazon ECS in the Amazon Elastic Container Service Developer Guide. |
clientToken |
An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 64 characters are allowed. The valid characters are characters in the range of 33-126, inclusive. For more information, see Ensuring idempotency. |
volumeConfigurations |
The details of the volume that was |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.