Class Deployment
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Deployment.Builder,Deployment>
The details of an Amazon ECS service deployment. This is used only when a service uses the ECS
deployment controller type.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Deployment.Builderbuilder()final List<CapacityProviderStrategyItem> The capacity provider strategy that the deployment is using.final InstantThe Unix timestamp for the time when the service deployment was created.final IntegerThe most recent desired count of tasks that was specified for the service to deploy or maintain.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final IntegerThe number of consecutively failed tasks in the deployment.The Fargate ephemeral storage settings for the deployment.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the CapacityProviderStrategy property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the ServiceConnectResources property.final booleanFor responses, this returns true if the service returned a value for the VolumeConfigurations property.final booleanFor responses, this returns true if the service returned a value for the VpcLatticeConfigurations property.final Stringid()The ID of the deployment.final LaunchTypeThe launch type the tasks in the service are using.final StringThe launch type the tasks in the service are using.final NetworkConfigurationThe VPC subnet and security group configuration for tasks that receive their own elastic network interface by using theawsvpcnetworking mode.final IntegerThe number of tasks in the deployment that are in thePENDINGstatus.final StringThe operating system that your tasks in the service, or tasks are running on.final StringThe platform version that your tasks in the service run on.final DeploymentRolloutStatefinal Stringfinal StringA description of the rollout state of a deployment.final IntegerThe number of tasks in the deployment that are in theRUNNINGstatus.static Class<? extends Deployment.Builder> The details of the Service Connect configuration that's used by this deployment.The list of Service Connect resources that are associated with this deployment.final Stringstatus()The status of the deployment.final StringThe most recent task definition that was specified for the tasks in the service to use.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe Unix timestamp for the time when the service deployment was last updated.final List<ServiceVolumeConfiguration> The details of the volume that wasconfiguredAtLaunch.final List<VpcLatticeConfiguration> The VPC Lattice configuration for the service deployment.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
-
status
The status of the deployment. The following describes each state.
- PRIMARY
-
The most recent deployment of a service.
- ACTIVE
-
A service deployment that still has running tasks, but are in the process of being replaced with a new
PRIMARYdeployment. - INACTIVE
-
A deployment that has been completely replaced.
- Returns:
- The status of the deployment. The following describes each state.
- PRIMARY
-
The most recent deployment of a service.
- ACTIVE
-
A service deployment that still has running tasks, but are in the process of being replaced with a new
PRIMARYdeployment. - INACTIVE
-
A deployment that has been completely replaced.
-
taskDefinition
The most recent task definition that was specified for the tasks in the service to use.
- Returns:
- The most recent task definition that was specified for the tasks in the service to use.
-
desiredCount
The most recent desired count of tasks that was specified for the service to deploy or maintain.
- Returns:
- The most recent desired count of tasks that was specified for the service to deploy or maintain.
-
pendingCount
The number of tasks in the deployment that are in the
PENDINGstatus.- Returns:
- The number of tasks in the deployment that are in the
PENDINGstatus.
-
runningCount
The number of tasks in the deployment that are in the
RUNNINGstatus.- Returns:
- The number of tasks in the deployment that are in the
RUNNINGstatus.
-
failedTasks
The number of consecutively failed tasks in the deployment. A task is considered a failure if the service scheduler can't launch the task, the task doesn't transition to a
RUNNINGstate, or if it fails any of its defined health checks and is stopped.Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and stops being evaluated.
- Returns:
- The number of consecutively failed tasks in the deployment. A task is considered a failure if the service
scheduler can't launch the task, the task doesn't transition to a
RUNNINGstate, or if it fails any of its defined health checks and is stopped.Once a service deployment has one or more successfully running tasks, the failed task count resets to zero and stops being evaluated.
-
createdAt
The Unix timestamp for the time when the service deployment was created.
- Returns:
- The Unix timestamp for the time when the service deployment was created.
-
updatedAt
The Unix timestamp for the time when the service deployment was last updated.
- Returns:
- The Unix timestamp for the time when the service deployment was last updated.
-
hasCapacityProviderStrategy
public final boolean hasCapacityProviderStrategy()For responses, this returns true if the service returned a value for the CapacityProviderStrategy property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
capacityProviderStrategy
The capacity provider strategy that the deployment is using.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCapacityProviderStrategy()method.- Returns:
- The capacity provider strategy that the deployment is using.
-
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,
launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- 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.
- See Also:
-
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,
launchTypewill returnLaunchType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromlaunchTypeAsString().- Returns:
- 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.
- See Also:
-
platformVersion
The platform version that your tasks in the service run on. A platform version is only specified for tasks using the Fargate launch type. If one isn't specified, the
LATESTplatform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.- Returns:
- The platform version that your tasks in the service run on. A platform version is only specified for
tasks using the Fargate launch type. If one isn't specified, the
LATESTplatform version is used. For more information, see Fargate Platform Versions in the Amazon Elastic Container Service Developer Guide.
-
platformFamily
The operating system that your tasks in the service, or tasks are running on. A platform family is specified only for tasks using the Fargate launch type.
All tasks that run as part of this service must use the same
platformFamilyvalue as the service, for example,LINUX..- Returns:
- The operating system that your tasks in the service, or tasks are running on. A platform family is
specified only for tasks using the Fargate launch type.
All tasks that run as part of this service must use the same
platformFamilyvalue as the service, for example,LINUX..
-
networkConfiguration
The VPC subnet and security group configuration for tasks that receive their own elastic network interface by using the
awsvpcnetworking mode.- Returns:
- The VPC subnet and security group configuration for tasks that receive their own elastic network
interface by using the
awsvpcnetworking mode.
-
rolloutState
The
rolloutStateof a service is only returned for services that use the rolling update (ECS) deployment type that aren't behind a Classic Load Balancer.The rollout state of the deployment. When a service deployment is started, it begins in an
IN_PROGRESSstate. When the service reaches a steady state, the deployment transitions to aCOMPLETEDstate. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to aFAILEDstate. A deployment inFAILEDstate doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.If the service returns an enum value that is not available in the current SDK version,
rolloutStatewill returnDeploymentRolloutState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrolloutStateAsString().- Returns:
The
rolloutStateof a service is only returned for services that use the rolling update (ECS) deployment type that aren't behind a Classic Load Balancer.The rollout state of the deployment. When a service deployment is started, it begins in an
IN_PROGRESSstate. When the service reaches a steady state, the deployment transitions to aCOMPLETEDstate. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to aFAILEDstate. A deployment inFAILEDstate doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.- See Also:
-
rolloutStateAsString
The
rolloutStateof a service is only returned for services that use the rolling update (ECS) deployment type that aren't behind a Classic Load Balancer.The rollout state of the deployment. When a service deployment is started, it begins in an
IN_PROGRESSstate. When the service reaches a steady state, the deployment transitions to aCOMPLETEDstate. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to aFAILEDstate. A deployment inFAILEDstate doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.If the service returns an enum value that is not available in the current SDK version,
rolloutStatewill returnDeploymentRolloutState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrolloutStateAsString().- Returns:
The
rolloutStateof a service is only returned for services that use the rolling update (ECS) deployment type that aren't behind a Classic Load Balancer.The rollout state of the deployment. When a service deployment is started, it begins in an
IN_PROGRESSstate. When the service reaches a steady state, the deployment transitions to aCOMPLETEDstate. If the service fails to reach a steady state and circuit breaker is turned on, the deployment transitions to aFAILEDstate. A deployment inFAILEDstate doesn't launch any new tasks. For more information, see DeploymentCircuitBreaker.- See Also:
-
rolloutStateReason
A description of the rollout state of a deployment.
- Returns:
- A description of the rollout state of a deployment.
-
serviceConnectConfiguration
The details of the Service Connect configuration that's used by this deployment. Compare the configuration between multiple deployments when troubleshooting issues with new deployments.
The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
- Returns:
- The details of the Service Connect configuration that's used by this deployment. Compare the
configuration between multiple deployments when troubleshooting issues with new deployments.
The configuration for this service to discover and connect to services, and be discovered by, and connected from, other services within a namespace.
Tasks that run in a namespace can use short names to connect to services in the namespace. Tasks can connect to services across all of the clusters in the namespace. Tasks connect through a managed proxy container that collects logs and metrics for increased visibility. Only the tasks that Amazon ECS services create are supported with Service Connect. For more information, see Service Connect in the Amazon Elastic Container Service Developer Guide.
-
hasServiceConnectResources
public final boolean hasServiceConnectResources()For responses, this returns true if the service returned a value for the ServiceConnectResources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
serviceConnectResources
The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery name to a Cloud Map service name.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasServiceConnectResources()method.- Returns:
- The list of Service Connect resources that are associated with this deployment. Each list entry maps a discovery name to a Cloud Map service name.
-
hasVolumeConfigurations
public final boolean hasVolumeConfigurations()For responses, this returns true if the service returned a value for the VolumeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
volumeConfigurations
The details of the volume that was
configuredAtLaunch. You can configure different settings like the size, throughput, volumeType, and ecryption in ServiceManagedEBSVolumeConfiguration. Thenameof the volume must match thenamefrom the task definition.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVolumeConfigurations()method.- Returns:
- The details of the volume that was
configuredAtLaunch. You can configure different settings like the size, throughput, volumeType, and ecryption in ServiceManagedEBSVolumeConfiguration. Thenameof the volume must match thenamefrom the task definition.
-
fargateEphemeralStorage
The Fargate ephemeral storage settings for the deployment.
- Returns:
- The Fargate ephemeral storage settings for the deployment.
-
hasVpcLatticeConfigurations
public final boolean hasVpcLatticeConfigurations()For responses, this returns true if the service returned a value for the VpcLatticeConfigurations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
vpcLatticeConfigurations
The VPC Lattice configuration for the service deployment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasVpcLatticeConfigurations()method.- Returns:
- The VPC Lattice configuration for the service deployment.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Deployment.Builder,Deployment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-