Interface TaskSet.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<TaskSet.Builder,TaskSet>,SdkBuilder<TaskSet.Builder,TaskSet>,SdkPojo
- Enclosing class:
- TaskSet
public static interface TaskSet.Builder extends SdkPojo, CopyableBuilder<TaskSet.Builder,TaskSet>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TaskSet.BuildercapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)The capacity provider strategy that are associated with the task set.TaskSet.BuildercapacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)The capacity provider strategy that are associated with the task set.TaskSet.BuildercapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)The capacity provider strategy that are associated with the task set.TaskSet.BuilderclusterArn(String clusterArn)The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.TaskSet.BuildercomputedDesiredCount(Integer computedDesiredCount)The computed desired count for the task set.TaskSet.BuildercreatedAt(Instant createdAt)The Unix timestamp for the time when the task set was created.TaskSet.BuilderexternalId(String externalId)The external ID associated with the task set.default TaskSet.BuilderfargateEphemeralStorage(Consumer<DeploymentEphemeralStorage.Builder> fargateEphemeralStorage)The Fargate ephemeral storage settings for the task set.TaskSet.BuilderfargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)The Fargate ephemeral storage settings for the task set.TaskSet.Builderid(String id)The ID of the task set.TaskSet.BuilderlaunchType(String launchType)The launch type the tasks in the task set are using.TaskSet.BuilderlaunchType(LaunchType launchType)The launch type the tasks in the task set are using.TaskSet.BuilderloadBalancers(Collection<LoadBalancer> loadBalancers)Details on a load balancer that are used with a task set.TaskSet.BuilderloadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)Details on a load balancer that are used with a task set.TaskSet.BuilderloadBalancers(LoadBalancer... loadBalancers)Details on a load balancer that are used with a task set.default TaskSet.BuildernetworkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)The network configuration for the task set.TaskSet.BuildernetworkConfiguration(NetworkConfiguration networkConfiguration)The network configuration for the task set.TaskSet.BuilderpendingCount(Integer pendingCount)The number of tasks in the task set that are in thePENDINGstatus during a deployment.TaskSet.BuilderplatformFamily(String platformFamily)The operating system that your tasks in the set are running on.TaskSet.BuilderplatformVersion(String platformVersion)The Fargate platform version where the tasks in the task set are running.TaskSet.BuilderrunningCount(Integer runningCount)The number of tasks in the task set that are in theRUNNINGstatus during a deployment.default TaskSet.Builderscale(Consumer<Scale.Builder> scale)A floating-point percentage of your desired number of tasks to place and keep running in the task set.TaskSet.Builderscale(Scale scale)A floating-point percentage of your desired number of tasks to place and keep running in the task set.TaskSet.BuilderserviceArn(String serviceArn)The Amazon Resource Name (ARN) of the service the task set exists in.TaskSet.BuilderserviceRegistries(Collection<ServiceRegistry> serviceRegistries)The details for the service discovery registries to assign to this task set.TaskSet.BuilderserviceRegistries(Consumer<ServiceRegistry.Builder>... serviceRegistries)The details for the service discovery registries to assign to this task set.TaskSet.BuilderserviceRegistries(ServiceRegistry... serviceRegistries)The details for the service discovery registries to assign to this task set.TaskSet.BuilderstabilityStatus(String stabilityStatus)The stability status.TaskSet.BuilderstabilityStatus(StabilityStatus stabilityStatus)The stability status.TaskSet.BuilderstabilityStatusAt(Instant stabilityStatusAt)The Unix timestamp for the time when the task set stability status was retrieved.TaskSet.BuilderstartedBy(String startedBy)The tag specified when a task set is started.TaskSet.Builderstatus(String status)The status of the task set.TaskSet.Buildertags(Collection<Tag> tags)The metadata that you apply to the task set to help you categorize and organize them.TaskSet.Buildertags(Consumer<Tag.Builder>... tags)The metadata that you apply to the task set to help you categorize and organize them.TaskSet.Buildertags(Tag... tags)The metadata that you apply to the task set to help you categorize and organize them.TaskSet.BuildertaskDefinition(String taskDefinition)The task definition that the task set is using.TaskSet.BuildertaskSetArn(String taskSetArn)The Amazon Resource Name (ARN) of the task set.TaskSet.BuilderupdatedAt(Instant updatedAt)The Unix timestamp for the time when the task set was last updated.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
id
TaskSet.Builder id(String id)
The ID of the task set.
- Parameters:
id- The ID of the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskSetArn
TaskSet.Builder taskSetArn(String taskSetArn)
The Amazon Resource Name (ARN) of the task set.
- Parameters:
taskSetArn- The Amazon Resource Name (ARN) of the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceArn
TaskSet.Builder serviceArn(String serviceArn)
The Amazon Resource Name (ARN) of the service the task set exists in.
- Parameters:
serviceArn- The Amazon Resource Name (ARN) of the service the task set exists in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterArn
TaskSet.Builder clusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.
- Parameters:
clusterArn- The Amazon Resource Name (ARN) of the cluster that the service that hosts the task set exists in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedBy
TaskSet.Builder startedBy(String startedBy)
The tag specified when a task set is started. If an CodeDeploy deployment created the task set, the
startedByparameter isCODE_DEPLOY. If an external deployment created the task set, thestartedByfield isn't used.- Parameters:
startedBy- The tag specified when a task set is started. If an CodeDeploy deployment created the task set, thestartedByparameter isCODE_DEPLOY. If an external deployment created the task set, thestartedByfield isn't used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
externalId
TaskSet.Builder externalId(String externalId)
The external ID associated with the task set.
If an CodeDeploy deployment created a task set, the
externalIdparameter contains the CodeDeploy deployment ID.If a task set is created for an external deployment and is associated with a service discovery registry, the
externalIdparameter contains theECS_TASK_SET_EXTERNAL_IDCloud Map attribute.- Parameters:
externalId- The external ID associated with the task set.If an CodeDeploy deployment created a task set, the
externalIdparameter contains the CodeDeploy deployment ID.If a task set is created for an external deployment and is associated with a service discovery registry, the
externalIdparameter contains theECS_TASK_SET_EXTERNAL_IDCloud Map attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
TaskSet.Builder status(String status)
The status of the task set. The following describes each state.
- PRIMARY
-
The task set is serving production traffic.
- ACTIVE
-
The task set isn't serving production traffic.
- DRAINING
-
The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
- Parameters:
status- The status of the task set. The following describes each state.- PRIMARY
-
The task set is serving production traffic.
- ACTIVE
-
The task set isn't serving production traffic.
- DRAINING
-
The tasks in the task set are being stopped, and their corresponding targets are being deregistered from their target group.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
taskDefinition
TaskSet.Builder taskDefinition(String taskDefinition)
The task definition that the task set is using.
- Parameters:
taskDefinition- The task definition that the task set is using.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computedDesiredCount
TaskSet.Builder computedDesiredCount(Integer computedDesiredCount)
The computed desired count for the task set. This is calculated by multiplying the service's
desiredCountby the task set'sscalepercentage. The result is always rounded up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.- Parameters:
computedDesiredCount- The computed desired count for the task set. This is calculated by multiplying the service'sdesiredCountby the task set'sscalepercentage. The result is always rounded up. For example, if the computed desired count is 1.2, it rounds up to 2 tasks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingCount
TaskSet.Builder pendingCount(Integer pendingCount)
The number of tasks in the task set that are in the
PENDINGstatus during a deployment. A task in thePENDINGstate is preparing to enter theRUNNINGstate. A task set enters thePENDINGstatus when it launches for the first time or when it's restarted after being in theSTOPPEDstate.- Parameters:
pendingCount- The number of tasks in the task set that are in thePENDINGstatus during a deployment. A task in thePENDINGstate is preparing to enter theRUNNINGstate. A task set enters thePENDINGstatus when it launches for the first time or when it's restarted after being in theSTOPPEDstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
runningCount
TaskSet.Builder runningCount(Integer runningCount)
The number of tasks in the task set that are in the
RUNNINGstatus during a deployment. A task in theRUNNINGstate is running and ready for use.- Parameters:
runningCount- The number of tasks in the task set that are in theRUNNINGstatus during a deployment. A task in theRUNNINGstate is running and ready for use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
TaskSet.Builder createdAt(Instant createdAt)
The Unix timestamp for the time when the task set was created.
- Parameters:
createdAt- The Unix timestamp for the time when the task set was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
TaskSet.Builder updatedAt(Instant updatedAt)
The Unix timestamp for the time when the task set was last updated.
- Parameters:
updatedAt- The Unix timestamp for the time when the task set was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchType
TaskSet.Builder launchType(String launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
- Parameters:
launchType- The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LaunchType,LaunchType
-
launchType
TaskSet.Builder launchType(LaunchType launchType)
The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.
- Parameters:
launchType- The launch type the tasks in the task set are using. For more information, see Amazon ECS launch types in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LaunchType,LaunchType
-
capacityProviderStrategy
TaskSet.Builder capacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
- Parameters:
capacityProviderStrategy- The capacity provider strategy that are associated with the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
TaskSet.Builder capacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
- Parameters:
capacityProviderStrategy- The capacity provider strategy that are associated with the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviderStrategy
TaskSet.Builder capacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)
The capacity provider strategy that are associated with the task set.
This is a convenience method that creates an instance of theCapacityProviderStrategyItem.Builderavoiding the need to create one manually viaCapacityProviderStrategyItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityProviderStrategy(List.) - Parameters:
capacityProviderStrategy- a consumer that will call methods onCapacityProviderStrategyItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#capacityProviderStrategy(java.util.Collection)
-
platformVersion
TaskSet.Builder platformVersion(String platformVersion)
The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.
- Parameters:
platformVersion- The Fargate platform version where the tasks in the task set are running. A platform version is only specified for tasks run on Fargate. For more information, see Fargate platform versions in the Amazon Elastic Container Service Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platformFamily
TaskSet.Builder platformFamily(String platformFamily)
The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.
All tasks in the set must have the same value.
- Parameters:
platformFamily- The operating system that your tasks in the set are running on. A platform family is specified only for tasks that use the Fargate launch type.All tasks in the set must have the same value.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
TaskSet.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
The network configuration for the task set.
- Parameters:
networkConfiguration- The network configuration for the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkConfiguration
default TaskSet.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The network configuration for the task set.
This is a convenience method that creates an instance of theNetworkConfiguration.Builderavoiding the need to create one manually viaNetworkConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonetworkConfiguration(NetworkConfiguration).- Parameters:
networkConfiguration- a consumer that will call methods onNetworkConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
networkConfiguration(NetworkConfiguration)
-
loadBalancers
TaskSet.Builder loadBalancers(Collection<LoadBalancer> loadBalancers)
Details on a load balancer that are used with a task set.
- Parameters:
loadBalancers- Details on a load balancer that are used with a task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancers
TaskSet.Builder loadBalancers(LoadBalancer... loadBalancers)
Details on a load balancer that are used with a task set.
- Parameters:
loadBalancers- Details on a load balancer that are used with a task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancers
TaskSet.Builder loadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)
Details on a load balancer that are used with a task set.
This is a convenience method that creates an instance of theLoadBalancer.Builderavoiding the need to create one manually viaLoadBalancer.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#loadBalancers(List.) - Parameters:
loadBalancers- a consumer that will call methods onLoadBalancer.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#loadBalancers(java.util.Collection)
-
serviceRegistries
TaskSet.Builder serviceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
- Parameters:
serviceRegistries- The details for the service discovery registries to assign to this task set. For more information, see Service discovery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRegistries
TaskSet.Builder serviceRegistries(ServiceRegistry... serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
- Parameters:
serviceRegistries- The details for the service discovery registries to assign to this task set. For more information, see Service discovery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceRegistries
TaskSet.Builder serviceRegistries(Consumer<ServiceRegistry.Builder>... serviceRegistries)
The details for the service discovery registries to assign to this task set. For more information, see Service discovery.
This is a convenience method that creates an instance of theServiceRegistry.Builderavoiding the need to create one manually viaServiceRegistry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#serviceRegistries(List.) - Parameters:
serviceRegistries- a consumer that will call methods onServiceRegistry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#serviceRegistries(java.util.Collection)
-
scale
TaskSet.Builder scale(Scale scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
- Parameters:
scale- A floating-point percentage of your desired number of tasks to place and keep running in the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scale
default TaskSet.Builder scale(Consumer<Scale.Builder> scale)
A floating-point percentage of your desired number of tasks to place and keep running in the task set.
This is a convenience method that creates an instance of theScale.Builderavoiding the need to create one manually viaScale.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscale(Scale).- Parameters:
scale- a consumer that will call methods onScale.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
scale(Scale)
-
stabilityStatus
TaskSet.Builder stabilityStatus(String stabilityStatus)
The stability status. This indicates whether the task set has reached a steady state. If the following conditions are met, the task set are in
STEADY_STATE:-
The task
runningCountis equal to thecomputedDesiredCount. -
The
pendingCountis0. -
There are no tasks that are running on container instances in the
DRAININGstatus. -
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns
STABILIZING.- Parameters:
stabilityStatus- The stability status. This indicates whether the task set has reached a steady state. If the following conditions are met, the task set are inSTEADY_STATE:-
The task
runningCountis equal to thecomputedDesiredCount. -
The
pendingCountis0. -
There are no tasks that are running on container instances in the
DRAININGstatus. -
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns
STABILIZING.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StabilityStatus,StabilityStatus
-
-
stabilityStatus
TaskSet.Builder stabilityStatus(StabilityStatus stabilityStatus)
The stability status. This indicates whether the task set has reached a steady state. If the following conditions are met, the task set are in
STEADY_STATE:-
The task
runningCountis equal to thecomputedDesiredCount. -
The
pendingCountis0. -
There are no tasks that are running on container instances in the
DRAININGstatus. -
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns
STABILIZING.- Parameters:
stabilityStatus- The stability status. This indicates whether the task set has reached a steady state. If the following conditions are met, the task set are inSTEADY_STATE:-
The task
runningCountis equal to thecomputedDesiredCount. -
The
pendingCountis0. -
There are no tasks that are running on container instances in the
DRAININGstatus. -
All tasks are reporting a healthy status from the load balancers, service discovery, and container health checks.
If any of those conditions aren't met, the stability status returns
STABILIZING.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StabilityStatus,StabilityStatus
-
-
stabilityStatusAt
TaskSet.Builder stabilityStatusAt(Instant stabilityStatusAt)
The Unix timestamp for the time when the task set stability status was retrieved.
- Parameters:
stabilityStatusAt- The Unix timestamp for the time when the task set stability status was retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TaskSet.Builder tags(Collection<Tag> tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
- Parameters:
tags- The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
TaskSet.Builder tags(Tag... tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
- Parameters:
tags- The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
tags
TaskSet.Builder tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the task set to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
The following basic restrictions apply to tags:
-
Maximum number of tags per resource - 50
-
For each resource, each tag key must be unique, and each tag key can have only one value.
-
Maximum key length - 128 Unicode characters in UTF-8
-
Maximum value length - 256 Unicode characters in UTF-8
-
If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
-
Tag keys and values are case-sensitive.
-
Do not use
aws:,AWS:, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for Amazon Web Services use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
-
fargateEphemeralStorage
TaskSet.Builder fargateEphemeralStorage(DeploymentEphemeralStorage fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
- Parameters:
fargateEphemeralStorage- The Fargate ephemeral storage settings for the task set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fargateEphemeralStorage
default TaskSet.Builder fargateEphemeralStorage(Consumer<DeploymentEphemeralStorage.Builder> fargateEphemeralStorage)
The Fargate ephemeral storage settings for the task set.
This is a convenience method that creates an instance of theDeploymentEphemeralStorage.Builderavoiding the need to create one manually viaDeploymentEphemeralStorage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofargateEphemeralStorage(DeploymentEphemeralStorage).- Parameters:
fargateEphemeralStorage- a consumer that will call methods onDeploymentEphemeralStorage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
fargateEphemeralStorage(DeploymentEphemeralStorage)
-
-