Values.CreateTaskSetRequestSourceCreate a task set in the specified cluster and service. This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide. On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition. For information about the maximum number of task sets and other quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide.
type nonrec t = {service : String_.t;The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
*)cluster : String_.t;The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
*)externalId : String_.t option;An optional non-unique tag that identifies this task set in external systems. If the task set is associated with a service discovery registry, the tasks in this task set will have the ECS_TASK_SET_EXTERNAL_ID Cloud Map attribute set to the provided value.
*)taskDefinition : String_.t;The task definition for the tasks in the task set to use. If a revision isn't specified, the latest ACTIVE revision is used.
*)networkConfiguration : NetworkConfiguration.t option;An object representing the network configuration for a task set.
*)loadBalancers : LoadBalancers.t option;A load balancer object representing the load balancer to use with the task set. The supported load balancer types are either an Application Load Balancer or a Network Load Balancer.
*)serviceRegistries : ServiceRegistries.t option;The details of the service discovery registries to assign to this task set. For more information, see Service discovery.
*)launchType : LaunchType.t option;The launch type that new tasks in the task set uses. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide. If a launchType is specified, the capacityProviderStrategy parameter must be omitted.
*)capacityProviderStrategy : CapacityProviderStrategy.t option;The capacity provider strategy to use for the task set. A capacity provider strategy consists of one or more capacity providers along with the base and weight to assign to them. A capacity provider must be associated with the cluster to be used in a capacity provider strategy. The PutClusterCapacityProviders API is used to associate a capacity provider with a cluster. Only capacity providers with an ACTIVE or UPDATING status can be used. If a capacityProviderStrategy is specified, the launchType parameter must be omitted. If no capacityProviderStrategy or launchType is specified, the defaultCapacityProviderStrategy for the cluster is used. If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must already be created. New capacity providers can be created with the CreateCapacityProviderProviderAPI operation. To use a Fargate capacity provider, specify either the FARGATE or FARGATE_SPOT capacity providers. The Fargate capacity providers are available to all accounts and only need to be associated with a cluster to be used. The PutClusterCapacityProviders API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
*)platformVersion : String_.t option;The platform version that the tasks in the task set uses. A platform version is specified only for tasks using the Fargate launch type. If one isn't specified, the LATEST platform version is used.
*)scale : Scale.t option;A floating-point percentage of the desired number of tasks to place and keep running in the task set.
*)clientToken : String_.t option;An identifier that you provide to ensure the idempotency of the request. It must be unique and is case sensitive. Up to 36 ASCII characters in the range of 33-126 (inclusive) are allowed.
*)}val make :
?externalId:??? ->
?networkConfiguration:??? ->
?loadBalancers:??? ->
?serviceRegistries:??? ->
?launchType:??? ->
?capacityProviderStrategy:??? ->
?platformVersion:??? ->
?scale:??? ->
?clientToken:??? ->
?tags:??? ->
service:String_.t ->
cluster:String_.t ->
taskDefinition:String_.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Integer of BoxedInteger.t
| `String of String_.t
| `Structure of (string * [> `String of String_.t ]) list ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `Double of Double.t
| `Enum of string
| `Structure of
(string
* [> `Enum of string
| `List of [> `String of String_.t ] list ])
list ])
list ])
list ]