public static interface Service.Builder extends SdkPojo, CopyableBuilder<Service.Builder,Service>
Modifier and Type | Method and Description |
---|---|
Service.Builder |
capacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy associated with the service.
|
Service.Builder |
capacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy associated with the service.
|
Service.Builder |
capacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)
The capacity provider strategy associated with the service.
|
Service.Builder |
clusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the service.
|
Service.Builder |
createdAt(Instant createdAt)
The Unix timestamp for when the service was created.
|
Service.Builder |
createdBy(String createdBy)
The principal that created the service.
|
default Service.Builder |
deploymentConfiguration(Consumer<DeploymentConfiguration.Builder> deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of
stopping and starting tasks.
|
Service.Builder |
deploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of
stopping and starting tasks.
|
default Service.Builder |
deploymentController(Consumer<DeploymentController.Builder> deploymentController)
The deployment controller type the service is using.
|
Service.Builder |
deploymentController(DeploymentController deploymentController)
The deployment controller type the service is using.
|
Service.Builder |
deployments(Collection<Deployment> deployments)
The current state of deployments for the service.
|
Service.Builder |
deployments(Consumer<Deployment.Builder>... deployments)
The current state of deployments for the service.
|
Service.Builder |
deployments(Deployment... deployments)
The current state of deployments for the service.
|
Service.Builder |
desiredCount(Integer desiredCount)
The desired number of instantiations of the task definition to keep running on the service.
|
Service.Builder |
enableECSManagedTags(Boolean enableECSManagedTags)
Specifies whether to enable Amazon ECS managed tags for the tasks in the service.
|
Service.Builder |
enableExecuteCommand(Boolean enableExecuteCommand)
Whether or not the execute command functionality is enabled for the service.
|
Service.Builder |
events(Collection<ServiceEvent> events)
The event stream for your service.
|
Service.Builder |
events(Consumer<ServiceEvent.Builder>... events)
The event stream for your service.
|
Service.Builder |
events(ServiceEvent... events)
The event stream for your service.
|
Service.Builder |
healthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
Service.Builder |
launchType(LaunchType launchType)
The launch type on which your service is running.
|
Service.Builder |
launchType(String launchType)
The launch type on which your service is running.
|
Service.Builder |
loadBalancers(Collection<LoadBalancer> loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name
(as it appears in a container definition), and the container port to access from the load balancer.
|
Service.Builder |
loadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name
(as it appears in a container definition), and the container port to access from the load balancer.
|
Service.Builder |
loadBalancers(LoadBalancer... loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name
(as it appears in a container definition), and the container port to access from the load balancer.
|
default Service.Builder |
networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the
awsvpc networking mode. |
Service.Builder |
networkConfiguration(NetworkConfiguration networkConfiguration)
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the
awsvpc networking mode. |
Service.Builder |
pendingCount(Integer pendingCount)
The number of tasks in the cluster that are in the
PENDING state. |
Service.Builder |
placementConstraints(Collection<PlacementConstraint> placementConstraints)
The placement constraints for the tasks in the service.
|
Service.Builder |
placementConstraints(Consumer<PlacementConstraint.Builder>... placementConstraints)
The placement constraints for the tasks in the service.
|
Service.Builder |
placementConstraints(PlacementConstraint... placementConstraints)
The placement constraints for the tasks in the service.
|
Service.Builder |
placementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy that determines how tasks for the service are placed.
|
Service.Builder |
placementStrategy(Consumer<PlacementStrategy.Builder>... placementStrategy)
The placement strategy that determines how tasks for the service are placed.
|
Service.Builder |
placementStrategy(PlacementStrategy... placementStrategy)
The placement strategy that determines how tasks for the service are placed.
|
Service.Builder |
platformVersion(String platformVersion)
The platform version on which to run your service.
|
Service.Builder |
propagateTags(PropagateTags propagateTags)
Specifies whether to propagate the tags from the task definition or the service to the task.
|
Service.Builder |
propagateTags(String propagateTags)
Specifies whether to propagate the tags from the task definition or the service to the task.
|
Service.Builder |
roleArn(String roleArn)
The ARN of the IAM role associated with the service that allows the Amazon ECS container agent to register
container instances with an Elastic Load Balancing load balancer.
|
Service.Builder |
runningCount(Integer runningCount)
The number of tasks in the cluster that are in the
RUNNING state. |
Service.Builder |
schedulingStrategy(SchedulingStrategy schedulingStrategy)
The scheduling strategy to use for the service.
|
Service.Builder |
schedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service.
|
Service.Builder |
serviceArn(String serviceArn)
The ARN that identifies the service.
|
Service.Builder |
serviceName(String serviceName)
The name of your service.
|
Service.Builder |
serviceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details of the service discovery registries to assign to this service.
|
Service.Builder |
serviceRegistries(Consumer<ServiceRegistry.Builder>... serviceRegistries)
The details of the service discovery registries to assign to this service.
|
Service.Builder |
serviceRegistries(ServiceRegistry... serviceRegistries)
The details of the service discovery registries to assign to this service.
|
Service.Builder |
status(String status)
The status of the service.
|
Service.Builder |
tags(Collection<Tag> tags)
The metadata that you apply to the service to help you categorize and organize them.
|
Service.Builder |
tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the service to help you categorize and organize them.
|
Service.Builder |
tags(Tag... tags)
The metadata that you apply to the service to help you categorize and organize them.
|
Service.Builder |
taskDefinition(String taskDefinition)
The task definition to use for tasks in the service.
|
Service.Builder |
taskSets(Collection<TaskSet> taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an
EXTERNAL
deployment. |
Service.Builder |
taskSets(Consumer<TaskSet.Builder>... taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an
EXTERNAL
deployment. |
Service.Builder |
taskSets(TaskSet... taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an
EXTERNAL
deployment. |
equalsBySdkFields, sdkFields
copy
applyMutation, build
Service.Builder serviceArn(String serviceArn)
The ARN that identifies the service. The ARN contains the arn:aws:ecs
namespace, followed by the
Region of the service, the AWS account ID of the service owner, the service
namespace, and then
the service name. For example, arn:aws:ecs:region:012345678910:service/my-service
.
serviceArn
- The ARN that identifies the service. The ARN contains the arn:aws:ecs
namespace, followed
by the Region of the service, the AWS account ID of the service owner, the service
namespace, and then the service name. For example,
arn:aws:ecs:region:012345678910:service/my-service
.Service.Builder serviceName(String serviceName)
The name of your service. Up to 255 letters (uppercase and lowercase), numbers, and hyphens are allowed. Service names must be unique within a cluster, but you can have similarly named services in multiple clusters within a Region or across multiple Regions.
serviceName
- The name of your service. Up to 255 letters (uppercase and lowercase), numbers, and hyphens are
allowed. Service names must be unique within a cluster, but you can have similarly named services in
multiple clusters within a Region or across multiple Regions.Service.Builder clusterArn(String clusterArn)
The Amazon Resource Name (ARN) of the cluster that hosts the service.
clusterArn
- The Amazon Resource Name (ARN) of the cluster that hosts the service.Service.Builder loadBalancers(Collection<LoadBalancer> loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
loadBalancers
- A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the container port to access from the
load balancer.Service.Builder loadBalancers(LoadBalancer... loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
loadBalancers
- A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the
container name (as it appears in a container definition), and the container port to access from the
load balancer.Service.Builder loadBalancers(Consumer<LoadBalancer.Builder>... loadBalancers)
A list of Elastic Load Balancing load balancer objects, containing the load balancer name, the container name (as it appears in a container definition), and the container port to access from the load balancer.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #loadBalancers(List)
.loadBalancers
- a consumer that will call methods on List.Builder
#loadBalancers(List)
Service.Builder serviceRegistries(Collection<ServiceRegistry> serviceRegistries)
The details of the service discovery registries to assign to this service. For more information, see Service Discovery.
serviceRegistries
- The details of the service discovery registries to assign to this service. For more information, see
Service
Discovery.Service.Builder serviceRegistries(ServiceRegistry... serviceRegistries)
The details of the service discovery registries to assign to this service. For more information, see Service Discovery.
serviceRegistries
- The details of the service discovery registries to assign to this service. For more information, see
Service
Discovery.Service.Builder serviceRegistries(Consumer<ServiceRegistry.Builder>... serviceRegistries)
The details of the service discovery registries to assign to this service. For more information, see Service Discovery.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #serviceRegistries(List)
.serviceRegistries
- a consumer that will call methods on List.Builder
#serviceRegistries(List)
Service.Builder status(String status)
The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.
status
- The status of the service. The valid values are ACTIVE
, DRAINING
, or
INACTIVE
.Service.Builder desiredCount(Integer desiredCount)
The desired number of instantiations of the task definition to keep running on the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
desiredCount
- The desired number of instantiations of the task definition to keep running on the service. This value
is specified when the service is created with CreateService, and it can be modified with
UpdateService.Service.Builder runningCount(Integer runningCount)
The number of tasks in the cluster that are in the RUNNING
state.
runningCount
- The number of tasks in the cluster that are in the RUNNING
state.Service.Builder pendingCount(Integer pendingCount)
The number of tasks in the cluster that are in the PENDING
state.
pendingCount
- The number of tasks in the cluster that are in the PENDING
state.Service.Builder launchType(String launchType)
The launch type on which your service is running. If no value is specified, it will default to
EC2
. Valid values include EC2
and FARGATE
. For more information, see
Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type on which your service is running. If no value is specified, it will default to
EC2
. Valid values include EC2
and FARGATE
. For more
information, see Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.LaunchType
,
LaunchType
Service.Builder launchType(LaunchType launchType)
The launch type on which your service is running. If no value is specified, it will default to
EC2
. Valid values include EC2
and FARGATE
. For more information, see
Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.
launchType
- The launch type on which your service is running. If no value is specified, it will default to
EC2
. Valid values include EC2
and FARGATE
. For more
information, see Amazon ECS Launch
Types in the Amazon Elastic Container Service Developer Guide.LaunchType
,
LaunchType
Service.Builder capacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy associated with the service.
capacityProviderStrategy
- The capacity provider strategy associated with the service.Service.Builder capacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy associated with the service.
capacityProviderStrategy
- The capacity provider strategy associated with the service.Service.Builder capacityProviderStrategy(Consumer<CapacityProviderStrategyItem.Builder>... capacityProviderStrategy)
The capacity provider strategy associated with the service.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #capacityProviderStrategy(List)
.capacityProviderStrategy
- a consumer that will call methods on List.Builder
#capacityProviderStrategy(List)
Service.Builder platformVersion(String platformVersion)
The platform version on which to run your service. A platform version is only specified for tasks using the
Fargate launch type. If one is not specified, the LATEST
platform version is used by default.
For more information, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.
platformVersion
- The platform version on which to run your service. A platform version is only specified for tasks
using the Fargate launch type. If one is not specified, the LATEST
platform version is
used by default. For more information, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.Service.Builder taskDefinition(String taskDefinition)
The task definition to use for tasks in the service. This value is specified when the service is created with CreateService, and it can be modified with UpdateService.
taskDefinition
- The task definition to use for tasks in the service. This value is specified when the service is
created with CreateService, and it can be modified with UpdateService.Service.Builder deploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
deploymentConfiguration
- Optional deployment parameters that control how many tasks run during the deployment and the ordering
of stopping and starting tasks.default Service.Builder deploymentConfiguration(Consumer<DeploymentConfiguration.Builder> deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
This is a convenience that creates an instance of theDeploymentConfiguration.Builder
avoiding the
need to create one manually via DeploymentConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to deploymentConfiguration(DeploymentConfiguration)
.deploymentConfiguration
- a consumer that will call methods on DeploymentConfiguration.Builder
deploymentConfiguration(DeploymentConfiguration)
Service.Builder taskSets(Collection<TaskSet> taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL
deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are
running, and whether the task set serves production traffic.
taskSets
- Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL
deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many
tasks are running, and whether the task set serves production traffic.Service.Builder taskSets(TaskSet... taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL
deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are
running, and whether the task set serves production traffic.
taskSets
- Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL
deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many
tasks are running, and whether the task set serves production traffic.Service.Builder taskSets(Consumer<TaskSet.Builder>... taskSets)
Information about a set of Amazon ECS tasks in either an AWS CodeDeploy or an EXTERNAL
deployment. An Amazon ECS task set includes details such as the desired number of tasks, how many tasks are
running, and whether the task set serves production traffic.
List.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #taskSets(List)
.taskSets
- a consumer that will call methods on List.Builder
#taskSets(List)
Service.Builder deployments(Collection<Deployment> deployments)
The current state of deployments for the service.
deployments
- The current state of deployments for the service.Service.Builder deployments(Deployment... deployments)
The current state of deployments for the service.
deployments
- The current state of deployments for the service.Service.Builder deployments(Consumer<Deployment.Builder>... deployments)
The current state of deployments for the service.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #deployments(List)
.deployments
- a consumer that will call methods on List.Builder
#deployments(List)
Service.Builder roleArn(String roleArn)
The ARN of the IAM role associated with the service that allows the Amazon ECS container agent to register container instances with an Elastic Load Balancing load balancer.
roleArn
- The ARN of the IAM role associated with the service that allows the Amazon ECS container agent to
register container instances with an Elastic Load Balancing load balancer.Service.Builder events(Collection<ServiceEvent> events)
The event stream for your service. A maximum of 100 of the latest events are displayed.
events
- The event stream for your service. A maximum of 100 of the latest events are displayed.Service.Builder events(ServiceEvent... events)
The event stream for your service. A maximum of 100 of the latest events are displayed.
events
- The event stream for your service. A maximum of 100 of the latest events are displayed.Service.Builder events(Consumer<ServiceEvent.Builder>... events)
The event stream for your service. A maximum of 100 of the latest events are displayed.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #events(List)
.events
- a consumer that will call methods on List.Builder
#events(List)
Service.Builder createdAt(Instant createdAt)
The Unix timestamp for when the service was created.
createdAt
- The Unix timestamp for when the service was created.Service.Builder placementConstraints(Collection<PlacementConstraint> placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints
- The placement constraints for the tasks in the service.Service.Builder placementConstraints(PlacementConstraint... placementConstraints)
The placement constraints for the tasks in the service.
placementConstraints
- The placement constraints for the tasks in the service.Service.Builder placementConstraints(Consumer<PlacementConstraint.Builder>... placementConstraints)
The placement constraints for the tasks in the service.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #placementConstraints(List)
.placementConstraints
- a consumer that will call methods on List.Builder
#placementConstraints(List)
Service.Builder placementStrategy(Collection<PlacementStrategy> placementStrategy)
The placement strategy that determines how tasks for the service are placed.
placementStrategy
- The placement strategy that determines how tasks for the service are placed.Service.Builder placementStrategy(PlacementStrategy... placementStrategy)
The placement strategy that determines how tasks for the service are placed.
placementStrategy
- The placement strategy that determines how tasks for the service are placed.Service.Builder placementStrategy(Consumer<PlacementStrategy.Builder>... placementStrategy)
The placement strategy that determines how tasks for the service are placed.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #placementStrategy(List)
.placementStrategy
- a consumer that will call methods on List.Builder
#placementStrategy(List)
Service.Builder networkConfiguration(NetworkConfiguration networkConfiguration)
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the awsvpc
networking mode.
networkConfiguration
- The VPC subnet and security group configuration for tasks that receive their own elastic network
interface by using the awsvpc
networking mode.default Service.Builder networkConfiguration(Consumer<NetworkConfiguration.Builder> networkConfiguration)
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the awsvpc
networking mode.
NetworkConfiguration.Builder
avoiding the need
to create one manually via NetworkConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to networkConfiguration(NetworkConfiguration)
.networkConfiguration
- a consumer that will call methods on NetworkConfiguration.Builder
networkConfiguration(NetworkConfiguration)
Service.Builder healthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load Balancing target health checks after a task has first started.
healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler ignores unhealthy Elastic Load
Balancing target health checks after a task has first started.Service.Builder schedulingStrategy(String schedulingStrategy)
The scheduling strategy to use for the service. For more information, see Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks across
your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task
placement strategies and constraints to customize task placement decisions.
DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that you specify in your cluster. The service scheduler also
evaluates the task placement constraints for running tasks and will stop tasks that do not meet the placement
constraints.
Fargate tasks do not support the DAEMON
scheduling strategy.
schedulingStrategy
- The scheduling strategy to use for the service. For more information, see Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks
across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You
can use task placement strategies and constraints to customize task placement decisions.
DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container
instance that meets all of the task placement constraints that you specify in your cluster. The
service scheduler also evaluates the task placement constraints for running tasks and will stop tasks
that do not meet the placement constraints.
Fargate tasks do not support the DAEMON
scheduling strategy.
SchedulingStrategy
,
SchedulingStrategy
Service.Builder schedulingStrategy(SchedulingStrategy schedulingStrategy)
The scheduling strategy to use for the service. For more information, see Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks across
your cluster. By default, the service scheduler spreads tasks across Availability Zones. You can use task
placement strategies and constraints to customize task placement decisions.
DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container instance
that meets all of the task placement constraints that you specify in your cluster. The service scheduler also
evaluates the task placement constraints for running tasks and will stop tasks that do not meet the placement
constraints.
Fargate tasks do not support the DAEMON
scheduling strategy.
schedulingStrategy
- The scheduling strategy to use for the service. For more information, see Services.
There are two service scheduler strategies available:
REPLICA
-The replica scheduling strategy places and maintains the desired number of tasks
across your cluster. By default, the service scheduler spreads tasks across Availability Zones. You
can use task placement strategies and constraints to customize task placement decisions.
DAEMON
-The daemon scheduling strategy deploys exactly one task on each active container
instance that meets all of the task placement constraints that you specify in your cluster. The
service scheduler also evaluates the task placement constraints for running tasks and will stop tasks
that do not meet the placement constraints.
Fargate tasks do not support the DAEMON
scheduling strategy.
SchedulingStrategy
,
SchedulingStrategy
Service.Builder deploymentController(DeploymentController deploymentController)
The deployment controller type the service is using. When using the DescribeServices API, this field is
omitted if the service is using the ECS
deployment controller type.
deploymentController
- The deployment controller type the service is using. When using the DescribeServices API, this field
is omitted if the service is using the ECS
deployment controller type.default Service.Builder deploymentController(Consumer<DeploymentController.Builder> deploymentController)
The deployment controller type the service is using. When using the DescribeServices API, this field is
omitted if the service is using the ECS
deployment controller type.
DeploymentController.Builder
avoiding the need
to create one manually via DeploymentController.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to deploymentController(DeploymentController)
.deploymentController
- a consumer that will call methods on DeploymentController.Builder
deploymentController(DeploymentController)
Service.Builder tags(Collection<Tag> tags)
The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
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 AWS 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.
tags
- The metadata that you apply to the service to help you categorize and organize them. Each tag consists
of a key and an optional value, both of which you define.
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 AWS 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.
Service.Builder tags(Tag... tags)
The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
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 AWS 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.
tags
- The metadata that you apply to the service to help you categorize and organize them. Each tag consists
of a key and an optional value, both of which you define.
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 AWS 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.
Service.Builder tags(Consumer<Tag.Builder>... tags)
The metadata that you apply to the service to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
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 AWS 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.
List.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Service.Builder createdBy(String createdBy)
The principal that created the service.
createdBy
- The principal that created the service.Service.Builder enableECSManagedTags(Boolean enableECSManagedTags)
Specifies whether to enable Amazon ECS managed tags for the tasks in the service. For more information, see Tagging Your Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.
enableECSManagedTags
- Specifies whether to enable Amazon ECS managed tags for the tasks in the service. For more
information, see Tagging Your
Amazon ECS Resources in the Amazon Elastic Container Service Developer Guide.Service.Builder propagateTags(String propagateTags)
Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.
propagateTags
- Specifies whether to propagate the tags from the task definition or the service to the task. If no
value is specified, the tags are not propagated.PropagateTags
,
PropagateTags
Service.Builder propagateTags(PropagateTags propagateTags)
Specifies whether to propagate the tags from the task definition or the service to the task. If no value is specified, the tags are not propagated.
propagateTags
- Specifies whether to propagate the tags from the task definition or the service to the task. If no
value is specified, the tags are not propagated.PropagateTags
,
PropagateTags
Service.Builder enableExecuteCommand(Boolean enableExecuteCommand)
Whether or not the execute command functionality is enabled for the service. If true
, the
execute command functionality is enabled for all containers in tasks as part of the service.
enableExecuteCommand
- Whether or not the execute command functionality is enabled for the service. If true
, the
execute command functionality is enabled for all containers in tasks as part of the service.Copyright © 2021. All rights reserved.