Class TaskDefinitionArgs.Builder

  • Enclosing class:
    TaskDefinitionArgs

    public static final class TaskDefinitionArgs.Builder
    extends java.lang.Object
    • Method Detail

      • containerDefinitions

        public TaskDefinitionArgs.Builder containerDefinitions​(com.pulumi.core.Output<java.lang.String> containerDefinitions)
        Parameters:
        containerDefinitions - List of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
        Returns:
        builder
      • containerDefinitions

        public TaskDefinitionArgs.Builder containerDefinitions​(java.lang.String containerDefinitions)
        Parameters:
        containerDefinitions - List of valid [container definitions](http://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) provided as a single valid JSON document. Please note that you should only provide values that are part of the container definition document. For a detailed description of what parameters are available, see the [Task Definition Parameters](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html) section from the official [Developer Guide](https://docs.aws.amazon.com/AmazonECS/latest/developerguide).
        Returns:
        builder
      • cpu

        public TaskDefinitionArgs.Builder cpu​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> cpu)
        Parameters:
        cpu - Number of CPU units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
        Returns:
        builder
      • cpu

        public TaskDefinitionArgs.Builder cpu​(java.lang.String cpu)
        Parameters:
        cpu - Number of CPU units used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
        Returns:
        builder
      • enableFaultInjection

        public TaskDefinitionArgs.Builder enableFaultInjection​(@Nullable
                                                               com.pulumi.core.Output<java.lang.Boolean> enableFaultInjection)
        Parameters:
        enableFaultInjection - Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is `false`.
        Returns:
        builder
      • enableFaultInjection

        public TaskDefinitionArgs.Builder enableFaultInjection​(java.lang.Boolean enableFaultInjection)
        Parameters:
        enableFaultInjection - Enables fault injection and allows for fault injection requests to be accepted from the task's containers. Default is `false`.
        Returns:
        builder
      • ephemeralStorage

        public TaskDefinitionArgs.Builder ephemeralStorage​(@Nullable
                                                           com.pulumi.core.Output<TaskDefinitionEphemeralStorageArgs> ephemeralStorage)
        Parameters:
        ephemeralStorage - Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage.
        Returns:
        builder
      • ephemeralStorage

        public TaskDefinitionArgs.Builder ephemeralStorage​(TaskDefinitionEphemeralStorageArgs ephemeralStorage)
        Parameters:
        ephemeralStorage - Amount of ephemeral storage to allocate for the task. This parameter is used to expand the total amount of ephemeral storage available, beyond the default amount, for tasks hosted on AWS Fargate. See Ephemeral Storage.
        Returns:
        builder
      • executionRoleArn

        public TaskDefinitionArgs.Builder executionRoleArn​(@Nullable
                                                           com.pulumi.core.Output<java.lang.String> executionRoleArn)
        Parameters:
        executionRoleArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
        Returns:
        builder
      • executionRoleArn

        public TaskDefinitionArgs.Builder executionRoleArn​(java.lang.String executionRoleArn)
        Parameters:
        executionRoleArn - ARN of the task execution role that the Amazon ECS container agent and the Docker daemon can assume.
        Returns:
        builder
      • family

        public TaskDefinitionArgs.Builder family​(com.pulumi.core.Output<java.lang.String> family)
        Parameters:
        family - Unique name for your task definition. The following arguments are optional:
        Returns:
        builder
      • family

        public TaskDefinitionArgs.Builder family​(java.lang.String family)
        Parameters:
        family - Unique name for your task definition. The following arguments are optional:
        Returns:
        builder
      • ipcMode

        public TaskDefinitionArgs.Builder ipcMode​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> ipcMode)
        Parameters:
        ipcMode - IPC resource namespace to be used for the containers in the task. Valid values: `host`, `task`, `none`.
        Returns:
        builder
      • ipcMode

        public TaskDefinitionArgs.Builder ipcMode​(java.lang.String ipcMode)
        Parameters:
        ipcMode - IPC resource namespace to be used for the containers in the task. Valid values: `host`, `task`, `none`.
        Returns:
        builder
      • memory

        public TaskDefinitionArgs.Builder memory​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> memory)
        Parameters:
        memory - Amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
        Returns:
        builder
      • memory

        public TaskDefinitionArgs.Builder memory​(java.lang.String memory)
        Parameters:
        memory - Amount (in MiB) of memory used by the task. If the `requiresCompatibilities` is `FARGATE` this field is required.
        Returns:
        builder
      • networkMode

        public TaskDefinitionArgs.Builder networkMode​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> networkMode)
        Parameters:
        networkMode - Docker networking mode to use for the containers in the task. Valid values: `awsvpc`, `bridge`, `host`, and `none`.
        Returns:
        builder
      • networkMode

        public TaskDefinitionArgs.Builder networkMode​(java.lang.String networkMode)
        Parameters:
        networkMode - Docker networking mode to use for the containers in the task. Valid values: `awsvpc`, `bridge`, `host`, and `none`.
        Returns:
        builder
      • pidMode

        public TaskDefinitionArgs.Builder pidMode​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> pidMode)
        Parameters:
        pidMode - Process namespace to use for the containers in the task. Valid values: host` , `task`.
        Returns:
        builder
      • pidMode

        public TaskDefinitionArgs.Builder pidMode​(java.lang.String pidMode)
        Parameters:
        pidMode - Process namespace to use for the containers in the task. Valid values: host` , `task`.
        Returns:
        builder
      • placementConstraints

        public TaskDefinitionArgs.Builder placementConstraints​(@Nullable
                                                               com.pulumi.core.Output<java.util.List<TaskDefinitionPlacementConstraintArgs>> placementConstraints)
        Parameters:
        placementConstraints - Configuration block for rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`. Detailed below.
        Returns:
        builder
      • placementConstraints

        public TaskDefinitionArgs.Builder placementConstraints​(java.util.List<TaskDefinitionPlacementConstraintArgs> placementConstraints)
        Parameters:
        placementConstraints - Configuration block for rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`. Detailed below.
        Returns:
        builder
      • placementConstraints

        public TaskDefinitionArgs.Builder placementConstraints​(TaskDefinitionPlacementConstraintArgs... placementConstraints)
        Parameters:
        placementConstraints - Configuration block for rules that are taken into consideration during task placement. Maximum number of `placementConstraints` is `10`. Detailed below.
        Returns:
        builder
      • region

        public TaskDefinitionArgs.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 TaskDefinitionArgs.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
      • requiresCompatibilities

        public TaskDefinitionArgs.Builder requiresCompatibilities​(@Nullable
                                                                  com.pulumi.core.Output<java.util.List<java.lang.String>> requiresCompatibilities)
        Parameters:
        requiresCompatibilities - Set of launch types required by the task. Valid values: `EC2`, `EXTERNAL`, `FARGATE`, `MANAGED_INSTANCES`.
        Returns:
        builder
      • requiresCompatibilities

        public TaskDefinitionArgs.Builder requiresCompatibilities​(java.util.List<java.lang.String> requiresCompatibilities)
        Parameters:
        requiresCompatibilities - Set of launch types required by the task. Valid values: `EC2`, `EXTERNAL`, `FARGATE`, `MANAGED_INSTANCES`.
        Returns:
        builder
      • requiresCompatibilities

        public TaskDefinitionArgs.Builder requiresCompatibilities​(java.lang.String... requiresCompatibilities)
        Parameters:
        requiresCompatibilities - Set of launch types required by the task. Valid values: `EC2`, `EXTERNAL`, `FARGATE`, `MANAGED_INSTANCES`.
        Returns:
        builder
      • skipDestroy

        public TaskDefinitionArgs.Builder skipDestroy​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
        Parameters:
        skipDestroy - Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is `false`.
        Returns:
        builder
      • skipDestroy

        public TaskDefinitionArgs.Builder skipDestroy​(java.lang.Boolean skipDestroy)
        Parameters:
        skipDestroy - Whether to retain the old revision when the resource is destroyed or replacement is necessary. Default is `false`.
        Returns:
        builder
      • tags

        public TaskDefinitionArgs.Builder tags​(@Nullable
                                               com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public TaskDefinitionArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • taskRoleArn

        public TaskDefinitionArgs.Builder taskRoleArn​(@Nullable
                                                      com.pulumi.core.Output<java.lang.String> taskRoleArn)
        Parameters:
        taskRoleArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
        Returns:
        builder
      • taskRoleArn

        public TaskDefinitionArgs.Builder taskRoleArn​(java.lang.String taskRoleArn)
        Parameters:
        taskRoleArn - ARN of IAM role that allows your Amazon ECS container task to make calls to other AWS services.
        Returns:
        builder
      • trackLatest

        public TaskDefinitionArgs.Builder trackLatest​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> trackLatest)
        Parameters:
        trackLatest - Whether should track latest `ACTIVE` task definition on AWS or the one created with the resource stored in state. Default is `false`. Useful in the event the task definition is modified outside of this resource.
        Returns:
        builder
      • trackLatest

        public TaskDefinitionArgs.Builder trackLatest​(java.lang.Boolean trackLatest)
        Parameters:
        trackLatest - Whether should track latest `ACTIVE` task definition on AWS or the one created with the resource stored in state. Default is `false`. Useful in the event the task definition is modified outside of this resource.
        Returns:
        builder
      • volumes

        public TaskDefinitionArgs.Builder volumes​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<TaskDefinitionVolumeArgs>> volumes)
        Parameters:
        volumes - Repeatable configuration block for volumes that containers in your task may use. Detailed below. > **NOTE:** Proper escaping is required for JSON field values containing quotes (`"`) such as `environment` values. If directly setting the JSON, they should be escaped as `\"` in the JSON, e.g., `"value": "I \"love\" escaped quotes"`. If using a variable value, they should be escaped as `\\\"` in the variable, e.g., `value = "I \\\"love\\\" escaped quotes"` in the variable and `"value": "${var.myvariable}"` in the JSON. > **Note:** Fault injection only works with tasks using the `awsvpc` or `host` network modes. Fault injection isn't available on Windows.
        Returns:
        builder
      • volumes

        public TaskDefinitionArgs.Builder volumes​(java.util.List<TaskDefinitionVolumeArgs> volumes)
        Parameters:
        volumes - Repeatable configuration block for volumes that containers in your task may use. Detailed below. > **NOTE:** Proper escaping is required for JSON field values containing quotes (`"`) such as `environment` values. If directly setting the JSON, they should be escaped as `\"` in the JSON, e.g., `"value": "I \"love\" escaped quotes"`. If using a variable value, they should be escaped as `\\\"` in the variable, e.g., `value = "I \\\"love\\\" escaped quotes"` in the variable and `"value": "${var.myvariable}"` in the JSON. > **Note:** Fault injection only works with tasks using the `awsvpc` or `host` network modes. Fault injection isn't available on Windows.
        Returns:
        builder
      • volumes

        public TaskDefinitionArgs.Builder volumes​(TaskDefinitionVolumeArgs... volumes)
        Parameters:
        volumes - Repeatable configuration block for volumes that containers in your task may use. Detailed below. > **NOTE:** Proper escaping is required for JSON field values containing quotes (`"`) such as `environment` values. If directly setting the JSON, they should be escaped as `\"` in the JSON, e.g., `"value": "I \"love\" escaped quotes"`. If using a variable value, they should be escaped as `\\\"` in the variable, e.g., `value = "I \\\"love\\\" escaped quotes"` in the variable and `"value": "${var.myvariable}"` in the JSON. > **Note:** Fault injection only works with tasks using the `awsvpc` or `host` network modes. Fault injection isn't available on Windows.
        Returns:
        builder