Class TaskSetState.Builder

  • Enclosing class:
    TaskSetState

    public static final class TaskSetState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • arn

        public TaskSetState.Builder arn​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN that identifies the task set.
        Returns:
        builder
      • arn

        public TaskSetState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN that identifies the task set.
        Returns:
        builder
      • capacityProviderStrategies

        public TaskSetState.Builder capacityProviderStrategies​(@Nullable
                                                               com.pulumi.core.Output<java.util.List<TaskSetCapacityProviderStrategyArgs>> capacityProviderStrategies)
        Parameters:
        capacityProviderStrategies - Capacity provider strategy to use for the service. Can be one or more. Defined below.
        Returns:
        builder
      • capacityProviderStrategies

        public TaskSetState.Builder capacityProviderStrategies​(java.util.List<TaskSetCapacityProviderStrategyArgs> capacityProviderStrategies)
        Parameters:
        capacityProviderStrategies - Capacity provider strategy to use for the service. Can be one or more. Defined below.
        Returns:
        builder
      • capacityProviderStrategies

        public TaskSetState.Builder capacityProviderStrategies​(TaskSetCapacityProviderStrategyArgs... capacityProviderStrategies)
        Parameters:
        capacityProviderStrategies - Capacity provider strategy to use for the service. Can be one or more. Defined below.
        Returns:
        builder
      • cluster

        public TaskSetState.Builder cluster​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> cluster)
        Parameters:
        cluster - Short name or ARN of the cluster that hosts the service to create the task set in.
        Returns:
        builder
      • cluster

        public TaskSetState.Builder cluster​(java.lang.String cluster)
        Parameters:
        cluster - Short name or ARN of the cluster that hosts the service to create the task set in.
        Returns:
        builder
      • externalId

        public TaskSetState.Builder externalId​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> externalId)
        Parameters:
        externalId - External ID associated with the task set.
        Returns:
        builder
      • externalId

        public TaskSetState.Builder externalId​(java.lang.String externalId)
        Parameters:
        externalId - External ID associated with the task set.
        Returns:
        builder
      • forceDelete

        public TaskSetState.Builder forceDelete​(@Nullable
                                                com.pulumi.core.Output<java.lang.Boolean> forceDelete)
        Parameters:
        forceDelete - Whether to allow deleting the task set without waiting for scaling down to 0. You can force a task set to delete even if it's in the process of scaling a resource. Normally, the provider drains all the tasks before deleting the task set. This bypasses that behavior and potentially leaves resources dangling.
        Returns:
        builder
      • forceDelete

        public TaskSetState.Builder forceDelete​(java.lang.Boolean forceDelete)
        Parameters:
        forceDelete - Whether to allow deleting the task set without waiting for scaling down to 0. You can force a task set to delete even if it's in the process of scaling a resource. Normally, the provider drains all the tasks before deleting the task set. This bypasses that behavior and potentially leaves resources dangling.
        Returns:
        builder
      • launchType

        public TaskSetState.Builder launchType​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> launchType)
        Parameters:
        launchType - Launch type on which to run your service. Valid values are `EC2`, `FARGATE`, and `EXTERNAL`. Defaults to `EC2`.
        Returns:
        builder
      • launchType

        public TaskSetState.Builder launchType​(java.lang.String launchType)
        Parameters:
        launchType - Launch type on which to run your service. Valid values are `EC2`, `FARGATE`, and `EXTERNAL`. Defaults to `EC2`.
        Returns:
        builder
      • loadBalancers

        public TaskSetState.Builder loadBalancers​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<TaskSetLoadBalancerArgs>> loadBalancers)
        Parameters:
        loadBalancers - Details on load balancers that are used with a task set. Detailed below.
        Returns:
        builder
      • loadBalancers

        public TaskSetState.Builder loadBalancers​(java.util.List<TaskSetLoadBalancerArgs> loadBalancers)
        Parameters:
        loadBalancers - Details on load balancers that are used with a task set. Detailed below.
        Returns:
        builder
      • loadBalancers

        public TaskSetState.Builder loadBalancers​(TaskSetLoadBalancerArgs... loadBalancers)
        Parameters:
        loadBalancers - Details on load balancers that are used with a task set. Detailed below.
        Returns:
        builder
      • networkConfiguration

        public TaskSetState.Builder networkConfiguration​(@Nullable
                                                         com.pulumi.core.Output<TaskSetNetworkConfigurationArgs> networkConfiguration)
        Parameters:
        networkConfiguration - Network configuration for the service. Required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and not supported for other network modes. Detailed below.
        Returns:
        builder
      • networkConfiguration

        public TaskSetState.Builder networkConfiguration​(TaskSetNetworkConfigurationArgs networkConfiguration)
        Parameters:
        networkConfiguration - Network configuration for the service. Required for task definitions that use the `awsvpc` network mode to receive their own Elastic Network Interface, and not supported for other network modes. Detailed below.
        Returns:
        builder
      • platformVersion

        public TaskSetState.Builder platformVersion​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> platformVersion)
        Parameters:
        platformVersion - Platform version on which to run your service. Only applicable for `launchType` 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).
        Returns:
        builder
      • platformVersion

        public TaskSetState.Builder platformVersion​(java.lang.String platformVersion)
        Parameters:
        platformVersion - Platform version on which to run your service. Only applicable for `launchType` 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).
        Returns:
        builder
      • region

        public TaskSetState.Builder region​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public TaskSetState.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • scale

        public TaskSetState.Builder scale​(@Nullable
                                          com.pulumi.core.Output<TaskSetScaleArgs> scale)
        Parameters:
        scale - Floating-point percentage of the desired number of tasks to place and keep running in the task set. Detailed below.
        Returns:
        builder
      • scale

        public TaskSetState.Builder scale​(TaskSetScaleArgs scale)
        Parameters:
        scale - Floating-point percentage of the desired number of tasks to place and keep running in the task set. Detailed below.
        Returns:
        builder
      • service

        public TaskSetState.Builder service​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> service)
        Parameters:
        service - Short name or ARN of the ECS service.
        Returns:
        builder
      • service

        public TaskSetState.Builder service​(java.lang.String service)
        Parameters:
        service - Short name or ARN of the ECS service.
        Returns:
        builder
      • serviceRegistries

        public TaskSetState.Builder serviceRegistries​(@Nullable
                                                      com.pulumi.core.Output<TaskSetServiceRegistriesArgs> serviceRegistries)
        Parameters:
        serviceRegistries - Service discovery registries for the service. The maximum number of `serviceRegistries` blocks is `1`. Detailed below.
        Returns:
        builder
      • serviceRegistries

        public TaskSetState.Builder serviceRegistries​(TaskSetServiceRegistriesArgs serviceRegistries)
        Parameters:
        serviceRegistries - Service discovery registries for the service. The maximum number of `serviceRegistries` blocks is `1`. Detailed below.
        Returns:
        builder
      • stabilityStatus

        public TaskSetState.Builder stabilityStatus​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> stabilityStatus)
        Parameters:
        stabilityStatus - Stability status. This indicates whether the task set has reached a steady state.
        Returns:
        builder
      • stabilityStatus

        public TaskSetState.Builder stabilityStatus​(java.lang.String stabilityStatus)
        Parameters:
        stabilityStatus - Stability status. This indicates whether the task set has reached a steady state.
        Returns:
        builder
      • status

        public TaskSetState.Builder status​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> status)
        Parameters:
        status - Status of the task set.
        Returns:
        builder
      • status

        public TaskSetState.Builder status​(java.lang.String status)
        Parameters:
        status - Status of the task set.
        Returns:
        builder
      • tags

        public TaskSetState.Builder tags​(@Nullable
                                         com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
        Returns:
        builder
      • tags

        public TaskSetState.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. If you have set `copyTagsToBackups` to true, and you specify one or more tags, no existing file system tags are copied from the file system to the backup.
        Returns:
        builder
      • tagsAll

        public TaskSetState.Builder tagsAll​(@Nullable
                                            com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public TaskSetState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • taskDefinition

        public TaskSetState.Builder taskDefinition​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> taskDefinition)
        Parameters:
        taskDefinition - Family and revision (`family:revision`) or full ARN of the task definition to run in your service. The following arguments are optional:
        Returns:
        builder
      • taskDefinition

        public TaskSetState.Builder taskDefinition​(java.lang.String taskDefinition)
        Parameters:
        taskDefinition - Family and revision (`family:revision`) or full ARN of the task definition to run in your service. The following arguments are optional:
        Returns:
        builder
      • taskSetId

        public TaskSetState.Builder taskSetId​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> taskSetId)
        Parameters:
        taskSetId - ID of the task set.
        Returns:
        builder
      • taskSetId

        public TaskSetState.Builder taskSetId​(java.lang.String taskSetId)
        Parameters:
        taskSetId - ID of the task set.
        Returns:
        builder
      • waitUntilStable

        public TaskSetState.Builder waitUntilStable​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Boolean> waitUntilStable)
        Parameters:
        waitUntilStable - Whether the provider should wait until the task set has reached `STEADY_STATE`.
        Returns:
        builder
      • waitUntilStable

        public TaskSetState.Builder waitUntilStable​(java.lang.Boolean waitUntilStable)
        Parameters:
        waitUntilStable - Whether the provider should wait until the task set has reached `STEADY_STATE`.
        Returns:
        builder
      • waitUntilStableTimeout

        public TaskSetState.Builder waitUntilStableTimeout​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> waitUntilStableTimeout)
        Parameters:
        waitUntilStableTimeout - Wait timeout for task set to reach `STEADY_STATE`. Valid time units include `ns`, `us` (or `µs`), `ms`, `s`, `m`, and `h`. Default `10m`.
        Returns:
        builder
      • waitUntilStableTimeout

        public TaskSetState.Builder waitUntilStableTimeout​(java.lang.String waitUntilStableTimeout)
        Parameters:
        waitUntilStableTimeout - Wait timeout for task set to reach `STEADY_STATE`. Valid time units include `ns`, `us` (or `µs`), `ms`, `s`, `m`, and `h`. Default `10m`.
        Returns:
        builder