@Generated(value="software.amazon.awssdk:codegen") public final class Deployment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Deployment.Builder,Deployment>
The details of an Amazon ECS service deployment. This is used when a service uses the CODE_DEPLOY
deployment controller type.
Modifier and Type | Class and Description |
---|---|
static interface |
Deployment.Builder |
Modifier and Type | Method and Description |
---|---|
static Deployment.Builder |
builder() |
Instant |
createdAt()
The Unix timestamp for when the service deployment was created.
|
Integer |
desiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the deployment.
|
LaunchType |
launchType()
The launch type the tasks in the service are using.
|
String |
launchTypeAsString()
The launch type the tasks in the service are using.
|
NetworkConfiguration |
networkConfiguration()
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the
awsvpc networking mode. |
Integer |
pendingCount()
The number of tasks in the deployment that are in the
PENDING status. |
String |
platformVersion()
The platform version on which your tasks in the service are running.
|
Integer |
runningCount()
The number of tasks in the deployment that are in the
RUNNING status. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Deployment.Builder> |
serializableBuilderClass() |
String |
status()
The status of the deployment.
|
String |
taskDefinition()
The most recent task definition that was specified for the tasks in the service to use.
|
Deployment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
The Unix timestamp for when the service deployment was last updated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public String id()
The ID of the deployment.
public String status()
The status of the deployment. The following describes each state:
The most recent deployment of a service.
A service deployment that still has running tasks, but are in the process of being replaced with a new
PRIMARY
deployment.
A deployment that has been completely replaced.
The most recent deployment of a service.
A service deployment that still has running tasks, but are in the process of being replaced with a new
PRIMARY
deployment.
A deployment that has been completely replaced.
public String taskDefinition()
The most recent task definition that was specified for the tasks in the service to use.
public Integer desiredCount()
The most recent desired count of tasks that was specified for the service to deploy or maintain.
public Integer pendingCount()
The number of tasks in the deployment that are in the PENDING
status.
PENDING
status.public Integer runningCount()
The number of tasks in the deployment that are in the RUNNING
status.
RUNNING
status.public Instant createdAt()
The Unix timestamp for when the service deployment was created.
public Instant updatedAt()
The Unix timestamp for when the service deployment was last updated.
public LaunchType launchType()
The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.
If the service returns an enum value that is not available in the current SDK version, launchType
will
return LaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
launchTypeAsString()
.
LaunchType
public String launchTypeAsString()
The launch type the tasks in the service are using. For more information, see Amazon ECS Launch Types in the Amazon Elastic Container Service Developer Guide.
If the service returns an enum value that is not available in the current SDK version, launchType
will
return LaunchType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
launchTypeAsString()
.
LaunchType
public 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 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.
LATEST
platform
version is used by default. For more information, see AWS Fargate
Platform Versions in the Amazon Elastic Container Service Developer Guide.public NetworkConfiguration networkConfiguration()
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by
using the awsvpc
networking mode.
awsvpc
networking mode.public Deployment.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Deployment.Builder,Deployment>
public static Deployment.Builder builder()
public static Class<? extends Deployment.Builder> serializableBuilderClass()
public String toString()
Copyright © 2019. All rights reserved.