@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateServiceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateServiceRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateServiceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<CapacityProviderStrategyItem> |
getCapacityProviderStrategy()
The capacity provider strategy to update the service to use.
|
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.
|
DeploymentConfiguration |
getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping
and starting tasks.
|
Integer |
getDesiredCount()
The number of instantiations of the task to place and keep running in your service.
|
Boolean |
getForceNewDeployment()
Whether to force a new deployment of the service.
|
Integer |
getHealthCheckGracePeriodSeconds()
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
NetworkConfiguration |
getNetworkConfiguration() |
String |
getPlatformVersion()
The platform version on which your tasks in the service are running.
|
String |
getService()
The name of the service to update.
|
String |
getTaskDefinition()
The
family and revision (family:revision ) or full ARN of the task
definition to run in your service. |
int |
hashCode() |
Boolean |
isForceNewDeployment()
Whether to force a new deployment of the service.
|
void |
setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to update the service to use.
|
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.
|
void |
setDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping
and starting tasks.
|
void |
setDesiredCount(Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
|
void |
setForceNewDeployment(Boolean forceNewDeployment)
Whether to force a new deployment of the service.
|
void |
setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
void |
setNetworkConfiguration(NetworkConfiguration networkConfiguration) |
void |
setPlatformVersion(String platformVersion)
The platform version on which your tasks in the service are running.
|
void |
setService(String service)
The name of the service to update.
|
void |
setTaskDefinition(String taskDefinition)
The
family and revision (family:revision ) or full ARN of the task
definition to run in your service. |
String |
toString()
Returns a string representation of this object.
|
UpdateServiceRequest |
withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy to update the service to use.
|
UpdateServiceRequest |
withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to update the service to use.
|
UpdateServiceRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on.
|
UpdateServiceRequest |
withDeploymentConfiguration(DeploymentConfiguration deploymentConfiguration)
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping
and starting tasks.
|
UpdateServiceRequest |
withDesiredCount(Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
|
UpdateServiceRequest |
withForceNewDeployment(Boolean forceNewDeployment)
Whether to force a new deployment of the service.
|
UpdateServiceRequest |
withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started.
|
UpdateServiceRequest |
withNetworkConfiguration(NetworkConfiguration networkConfiguration) |
UpdateServiceRequest |
withPlatformVersion(String platformVersion)
The platform version on which your tasks in the service are running.
|
UpdateServiceRequest |
withService(String service)
The name of the service to update.
|
UpdateServiceRequest |
withTaskDefinition(String taskDefinition)
The
family and revision (family:revision ) or full ARN of the task
definition to run in your service. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you
do not specify a cluster, the default cluster is assumed.public String getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
public UpdateServiceRequest withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you do not specify a cluster, the default cluster is assumed.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that your service is running on. If you
do not specify a cluster, the default cluster is assumed.public void setService(String service)
The name of the service to update.
service
- The name of the service to update.public String getService()
The name of the service to update.
public UpdateServiceRequest withService(String service)
The name of the service to update.
service
- The name of the service to update.public void setDesiredCount(Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
desiredCount
- The number of instantiations of the task to place and keep running in your service.public Integer getDesiredCount()
The number of instantiations of the task to place and keep running in your service.
public UpdateServiceRequest withDesiredCount(Integer desiredCount)
The number of instantiations of the task to place and keep running in your service.
desiredCount
- The number of instantiations of the task to place and keep running in your service.public void setTaskDefinition(String taskDefinition)
The family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest ACTIVE
revision is used. If you modify the task definition with UpdateService
, Amazon ECS spawns a task
with the new version of the task definition and then stops an old task after the new version is running.
taskDefinition
- The family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest
ACTIVE
revision is used. If you modify the task definition with UpdateService
,
Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the
new version is running.public String getTaskDefinition()
The family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest ACTIVE
revision is used. If you modify the task definition with UpdateService
, Amazon ECS spawns a task
with the new version of the task definition and then stops an old task after the new version is running.
family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest
ACTIVE
revision is used. If you modify the task definition with UpdateService
,
Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the
new version is running.public UpdateServiceRequest withTaskDefinition(String taskDefinition)
The family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest ACTIVE
revision is used. If you modify the task definition with UpdateService
, Amazon ECS spawns a task
with the new version of the task definition and then stops an old task after the new version is running.
taskDefinition
- The family
and revision
(family:revision
) or full ARN of the task
definition to run in your service. If a revision
is not specified, the latest
ACTIVE
revision is used. If you modify the task definition with UpdateService
,
Amazon ECS spawns a task with the new version of the task definition and then stops an old task after the
new version is running.public List<CapacityProviderStrategyItem> getCapacityProviderStrategy()
The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
public void setCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
capacityProviderStrategy
- The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
public UpdateServiceRequest withCapacityProviderStrategy(CapacityProviderStrategyItem... capacityProviderStrategy)
The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityProviderStrategy(java.util.Collection)
or
withCapacityProviderStrategy(java.util.Collection)
if you want to override the existing values.
capacityProviderStrategy
- The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
public UpdateServiceRequest withCapacityProviderStrategy(Collection<CapacityProviderStrategyItem> capacityProviderStrategy)
The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
capacityProviderStrategy
- The capacity provider strategy to update the service to use.
If the service is using the default capacity provider strategy for the cluster, the service can be updated to use one or more capacity providers. However, when a service is using a non-default capacity provider strategy, the service cannot be updated to use the cluster's default capacity provider strategy.
public void setDeploymentConfiguration(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.public DeploymentConfiguration getDeploymentConfiguration()
Optional deployment parameters that control how many tasks run during the deployment and the ordering of stopping and starting tasks.
public UpdateServiceRequest withDeploymentConfiguration(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.public void setNetworkConfiguration(NetworkConfiguration networkConfiguration)
networkConfiguration
- public NetworkConfiguration getNetworkConfiguration()
public UpdateServiceRequest withNetworkConfiguration(NetworkConfiguration networkConfiguration)
networkConfiguration
- public void setPlatformVersion(String platformVersion)
The platform version on which your tasks in the service are running. A platform version is only specified for
tasks using the Fargate launch type. If a platform version 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 your tasks in the service are running. A platform version is only specified
for tasks using the Fargate launch type. If a platform version 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.public String getPlatformVersion()
The platform version on which your tasks in the service are running. A platform version is only specified for
tasks using the Fargate launch type. If a platform version 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.
LATEST
platform version is used by default. For more information, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.public UpdateServiceRequest withPlatformVersion(String platformVersion)
The platform version on which your tasks in the service are running. A platform version is only specified for
tasks using the Fargate launch type. If a platform version 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 your tasks in the service are running. A platform version is only specified
for tasks using the Fargate launch type. If a platform version 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.public void setForceNewDeployment(Boolean forceNewDeployment)
Whether to force a new deployment of the service. Deployments are not forced by default. You can use this option
to trigger a new deployment with no service definition changes. For example, you can update a service's tasks to
use a newer Docker image with the same image/tag combination (my_image:latest
) or to roll Fargate
tasks onto a newer platform version.
forceNewDeployment
- Whether to force a new deployment of the service. Deployments are not forced by default. You can use this
option to trigger a new deployment with no service definition changes. For example, you can update a
service's tasks to use a newer Docker image with the same image/tag combination (
my_image:latest
) or to roll Fargate tasks onto a newer platform version.public Boolean getForceNewDeployment()
Whether to force a new deployment of the service. Deployments are not forced by default. You can use this option
to trigger a new deployment with no service definition changes. For example, you can update a service's tasks to
use a newer Docker image with the same image/tag combination (my_image:latest
) or to roll Fargate
tasks onto a newer platform version.
my_image:latest
) or to roll Fargate tasks onto a newer platform version.public UpdateServiceRequest withForceNewDeployment(Boolean forceNewDeployment)
Whether to force a new deployment of the service. Deployments are not forced by default. You can use this option
to trigger a new deployment with no service definition changes. For example, you can update a service's tasks to
use a newer Docker image with the same image/tag combination (my_image:latest
) or to roll Fargate
tasks onto a newer platform version.
forceNewDeployment
- Whether to force a new deployment of the service. Deployments are not forced by default. You can use this
option to trigger a new deployment with no service definition changes. For example, you can update a
service's tasks to use a newer Docker image with the same image/tag combination (
my_image:latest
) or to roll Fargate tasks onto a newer platform version.public Boolean isForceNewDeployment()
Whether to force a new deployment of the service. Deployments are not forced by default. You can use this option
to trigger a new deployment with no service definition changes. For example, you can update a service's tasks to
use a newer Docker image with the same image/tag combination (my_image:latest
) or to roll Fargate
tasks onto a newer platform version.
my_image:latest
) or to roll Fargate tasks onto a newer platform version.public void setHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started. This is only valid if your service is
configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic
Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds.
During that time, the Amazon ECS service scheduler ignores the Elastic Load Balancing health check status.
This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them
before they have time to come up.public Integer getHealthCheckGracePeriodSeconds()
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
public UpdateServiceRequest withHealthCheckGracePeriodSeconds(Integer healthCheckGracePeriodSeconds)
The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load Balancing target health checks after a task has first started. This is only valid if your service is configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds. During that time, the Amazon ECS service scheduler ignores the Elastic Load Balancing health check status. This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them before they have time to come up.
healthCheckGracePeriodSeconds
- The period of time, in seconds, that the Amazon ECS service scheduler should ignore unhealthy Elastic Load
Balancing target health checks after a task has first started. This is only valid if your service is
configured to use a load balancer. If your service's tasks take a while to start and respond to Elastic
Load Balancing health checks, you can specify a health check grace period of up to 2,147,483,647 seconds.
During that time, the Amazon ECS service scheduler ignores the Elastic Load Balancing health check status.
This grace period can prevent the ECS service scheduler from marking tasks as unhealthy and stopping them
before they have time to come up.public String toString()
toString
in class Object
Object.toString()
public UpdateServiceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.