Package com.pulumi.aws.ecs
Class TaskSet
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.ecs.TaskSet
-
public class TaskSet extends com.pulumi.resources.CustomResource
## Import ECS Task Sets can be imported via the `task_set_id`, `service`, and `cluster` separated by commas (`,`) e.g. ```sh $ pulumi import aws:ecs/taskSet:TaskSet example ecs-svc/7177320696926227436,arn:aws:ecs:us-west-2:123456789101:service/example/example-1234567890,arn:aws:ecs:us-west-2:123456789101:cluster/example ```
-
-
Constructor Summary
Constructors Constructor Description TaskSet(java.lang.String name)
TaskSet(java.lang.String name, TaskSetArgs args)
TaskSet(java.lang.String name, TaskSetArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
arn()
com.pulumi.core.Output<java.util.Optional<java.util.List<TaskSetCapacityProviderStrategy>>>
capacityProviderStrategies()
com.pulumi.core.Output<java.lang.String>
cluster()
com.pulumi.core.Output<java.lang.String>
externalId()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
forceDelete()
static TaskSet
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, TaskSetState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
launchType()
com.pulumi.core.Output<java.util.Optional<java.util.List<TaskSetLoadBalancer>>>
loadBalancers()
com.pulumi.core.Output<java.util.Optional<TaskSetNetworkConfiguration>>
networkConfiguration()
com.pulumi.core.Output<java.lang.String>
platformVersion()
com.pulumi.core.Output<TaskSetScale>
scale()
com.pulumi.core.Output<java.lang.String>
service()
com.pulumi.core.Output<java.util.Optional<TaskSetServiceRegistries>>
serviceRegistries()
com.pulumi.core.Output<java.lang.String>
stabilityStatus()
com.pulumi.core.Output<java.lang.String>
status()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>>
tagsAll()
com.pulumi.core.Output<java.lang.String>
taskDefinition()
com.pulumi.core.Output<java.lang.String>
taskSetId()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
waitUntilStable()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
waitUntilStableTimeout()
-
-
-
Constructor Detail
-
TaskSet
public TaskSet(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
TaskSet
public TaskSet(java.lang.String name, TaskSetArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
TaskSet
public TaskSet(java.lang.String name, TaskSetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
arn
public com.pulumi.core.Output<java.lang.String> arn()
- Returns:
- The Amazon Resource Name (ARN) that identifies the task set.
-
capacityProviderStrategies
public com.pulumi.core.Output<java.util.Optional<java.util.List<TaskSetCapacityProviderStrategy>>> capacityProviderStrategies()
- Returns:
- The capacity provider strategy to use for the service. Can be one or more. Defined below.
-
cluster
public com.pulumi.core.Output<java.lang.String> cluster()
- Returns:
- The short name or ARN of the cluster that hosts the service to create the task set in.
-
externalId
public com.pulumi.core.Output<java.lang.String> externalId()
- Returns:
- The external ID associated with the task set.
-
forceDelete
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> forceDelete()
-
launchType
public com.pulumi.core.Output<java.lang.String> launchType()
- Returns:
- The launch type on which to run your service. The valid values are `EC2`, `FARGATE`, and `EXTERNAL`. Defaults to `EC2`.
-
loadBalancers
public com.pulumi.core.Output<java.util.Optional<java.util.List<TaskSetLoadBalancer>>> loadBalancers()
- Returns:
- Details on load balancers that are used with a task set. Detailed below.
-
networkConfiguration
public com.pulumi.core.Output<java.util.Optional<TaskSetNetworkConfiguration>> networkConfiguration()
- Returns:
- The network configuration for the service. This parameter is required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and it is not supported for other network modes. Detailed below.
-
platformVersion
public com.pulumi.core.Output<java.lang.String> platformVersion()
- Returns:
- The platform version on which to run your service. Only applicable for `launch_type` set to `FARGATE`. Defaults to `LATEST`. More information about Fargate platform versions can be found in the [AWS ECS User Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html).
-
scale
public com.pulumi.core.Output<TaskSetScale> scale()
- Returns:
- A floating-point percentage of the desired number of tasks to place and keep running in the task set. Detailed below.
-
service
public com.pulumi.core.Output<java.lang.String> service()
- Returns:
- The short name or ARN of the ECS service.
-
serviceRegistries
public com.pulumi.core.Output<java.util.Optional<TaskSetServiceRegistries>> serviceRegistries()
- Returns:
- The service discovery registries for the service. The maximum number of `service_registries` blocks is `1`. Detailed below.
-
stabilityStatus
public com.pulumi.core.Output<java.lang.String> stabilityStatus()
- Returns:
- The stability status. This indicates whether the task set has reached a steady state.
-
status
public com.pulumi.core.Output<java.lang.String> status()
- Returns:
- The status of the task set.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- A map of tags to assign to the file system. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copy_tags_to_backups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
-
tagsAll
public com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll()
- Returns:
- A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
-
taskDefinition
public com.pulumi.core.Output<java.lang.String> taskDefinition()
- Returns:
- The family and revision (`family:revision`) or full ARN of the task definition that you want to run in your service.
-
taskSetId
public com.pulumi.core.Output<java.lang.String> taskSetId()
- Returns:
- The ID of the task set.
-
waitUntilStable
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> waitUntilStable()
-
waitUntilStableTimeout
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> waitUntilStableTimeout()
- Returns:
- Wait timeout for task set to reach `STEADY_STATE`. Valid time units include `ns`, `us` (or `µs`), `ms`, `s`, `m`, and `h`. Default `10m`.
-
get
public static TaskSet get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable TaskSetState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-