Class ServiceDeployment
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ServiceDeployment.Builder,
ServiceDeployment>
Information about the service deployment.
Service deployments provide a comprehensive view of your deployments. For information about service deployments, see View service history using Amazon ECS service deployments in the Amazon Elastic Container Service Developer Guide .
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal ServiceDeploymentAlarms
alarms()
The CloudWatch alarms that determine when a service deployment fails.static ServiceDeployment.Builder
builder()
final String
The ARN of the cluster that hosts the service.final Instant
The time the service deployment was created.The circuit breaker configuration that determines a service deployment failed.final DeploymentConfiguration
Returns the value of the DeploymentConfiguration property for this object.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final Instant
The time the service deployment finished.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SourceServiceRevisions property.The current lifecycle stage of the deployment.final String
The current lifecycle stage of the deployment.final Rollback
rollback()
The rollback options the service deployment uses when the deployment fails.static Class
<? extends ServiceDeployment.Builder> final String
The ARN of the service for this service deployment.final String
The ARN of the service deployment.final List
<ServiceRevisionSummary> The currently deployed workload configuration.final Instant
The time the service deployment statred.final ServiceDeploymentStatus
status()
The service deployment state.final String
The service deployment state.final String
Information about why the service deployment is in the current status.final Instant
The time the service deployment stopped.final ServiceRevisionSummary
The workload configuration being deployed.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final Instant
The time that the service deployment was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
serviceDeploymentArn
The ARN of the service deployment.
- Returns:
- The ARN of the service deployment.
-
serviceArn
The ARN of the service for this service deployment.
- Returns:
- The ARN of the service for this service deployment.
-
clusterArn
The ARN of the cluster that hosts the service.
- Returns:
- The ARN of the cluster that hosts the service.
-
createdAt
The time the service deployment was created. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Returns:
- The time the service deployment was created. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
-
startedAt
The time the service deployment statred. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Returns:
- The time the service deployment statred. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
-
finishedAt
The time the service deployment finished. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Returns:
- The time the service deployment finished. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
-
stoppedAt
The time the service deployment stopped. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
The service deployment stops when any of the following actions happen:
-
A user manually stops the deployment
-
The rollback option is not in use for the failure detection mechanism (the circuit breaker or alarm-based) and the service fails.
- Returns:
- The time the service deployment stopped. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
The service deployment stops when any of the following actions happen:
-
A user manually stops the deployment
-
The rollback option is not in use for the failure detection mechanism (the circuit breaker or alarm-based) and the service fails.
-
-
-
updatedAt
The time that the service deployment was last updated. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Returns:
- The time that the service deployment was last updated. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
-
hasSourceServiceRevisions
public final boolean hasSourceServiceRevisions()For responses, this returns true if the service returned a value for the SourceServiceRevisions 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. -
sourceServiceRevisions
The currently deployed workload configuration.
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
hasSourceServiceRevisions()
method.- Returns:
- The currently deployed workload configuration.
-
targetServiceRevision
The workload configuration being deployed.
- Returns:
- The workload configuration being deployed.
-
status
The service deployment state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnServiceDeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The service deployment state.
- See Also:
-
statusAsString
The service deployment state.
If the service returns an enum value that is not available in the current SDK version,
status
will returnServiceDeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The service deployment state.
- See Also:
-
statusReason
Information about why the service deployment is in the current status. For example, the circuit breaker detected a failure.
- Returns:
- Information about why the service deployment is in the current status. For example, the circuit breaker detected a failure.
-
lifecycleStage
The current lifecycle stage of the deployment. Possible values include:
-
RECONCILE_SERVICE
The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.
-
PRE_SCALE_UP
The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
SCALE_UP
The stage when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.
-
POST_SCALE_UP
The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
TEST_TRAFFIC_SHIFT
The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.
-
POST_TEST_TRAFFIC_SHIFT
The test traffic shift is complete. The green service revision handles 100% of the test traffic.
-
PRODUCTION_TRAFFIC_SHIFT
Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic.
-
POST_PRODUCTION_TRAFFIC_SHIFT
The production traffic shift is complete.
-
BAKE_TIME
The stage when both blue and green service revisions are running simultaneously after the production traffic has shifted.
-
CLEAN_UP
The stage when the blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.
If the service returns an enum value that is not available in the current SDK version,
lifecycleStage
will returnServiceDeploymentLifecycleStage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleStageAsString()
.- Returns:
- The current lifecycle stage of the deployment. Possible values include:
-
RECONCILE_SERVICE
The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.
-
PRE_SCALE_UP
The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
SCALE_UP
The stage when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.
-
POST_SCALE_UP
The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
TEST_TRAFFIC_SHIFT
The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.
-
POST_TEST_TRAFFIC_SHIFT
The test traffic shift is complete. The green service revision handles 100% of the test traffic.
-
PRODUCTION_TRAFFIC_SHIFT
Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic.
-
POST_PRODUCTION_TRAFFIC_SHIFT
The production traffic shift is complete.
-
BAKE_TIME
The stage when both blue and green service revisions are running simultaneously after the production traffic has shifted.
-
CLEAN_UP
The stage when the blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.
-
- See Also:
-
-
lifecycleStageAsString
The current lifecycle stage of the deployment. Possible values include:
-
RECONCILE_SERVICE
The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.
-
PRE_SCALE_UP
The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
SCALE_UP
The stage when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.
-
POST_SCALE_UP
The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
TEST_TRAFFIC_SHIFT
The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.
-
POST_TEST_TRAFFIC_SHIFT
The test traffic shift is complete. The green service revision handles 100% of the test traffic.
-
PRODUCTION_TRAFFIC_SHIFT
Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic.
-
POST_PRODUCTION_TRAFFIC_SHIFT
The production traffic shift is complete.
-
BAKE_TIME
The stage when both blue and green service revisions are running simultaneously after the production traffic has shifted.
-
CLEAN_UP
The stage when the blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.
If the service returns an enum value that is not available in the current SDK version,
lifecycleStage
will returnServiceDeploymentLifecycleStage.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromlifecycleStageAsString()
.- Returns:
- The current lifecycle stage of the deployment. Possible values include:
-
RECONCILE_SERVICE
The reconciliation stage that only happens when you start a new service deployment with more than 1 service revision in an ACTIVE state.
-
PRE_SCALE_UP
The green service revision has not started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
SCALE_UP
The stage when the green service revision scales up to 100% and launches new tasks. The green service revision is not serving any traffic at this point.
-
POST_SCALE_UP
The green service revision has started. The blue service revision is handling 100% of the production traffic. There is no test traffic.
-
TEST_TRAFFIC_SHIFT
The blue and green service revisions are running. The blue service revision handles 100% of the production traffic. The green service revision is migrating from 0% to 100% of test traffic.
-
POST_TEST_TRAFFIC_SHIFT
The test traffic shift is complete. The green service revision handles 100% of the test traffic.
-
PRODUCTION_TRAFFIC_SHIFT
Production traffic is shifting to the green service revision. The green service revision is migrating from 0% to 100% of production traffic.
-
POST_PRODUCTION_TRAFFIC_SHIFT
The production traffic shift is complete.
-
BAKE_TIME
The stage when both blue and green service revisions are running simultaneously after the production traffic has shifted.
-
CLEAN_UP
The stage when the blue service revision has completely scaled down to 0 running tasks. The green service revision is now the production service revision after this stage.
-
- See Also:
-
-
deploymentConfiguration
Returns the value of the DeploymentConfiguration property for this object.- Returns:
- The value of the DeploymentConfiguration property for this object.
-
rollback
The rollback options the service deployment uses when the deployment fails.
- Returns:
- The rollback options the service deployment uses when the deployment fails.
-
deploymentCircuitBreaker
The circuit breaker configuration that determines a service deployment failed.
- Returns:
- The circuit breaker configuration that determines a service deployment failed.
-
alarms
The CloudWatch alarms that determine when a service deployment fails.
- Returns:
- The CloudWatch alarms that determine when a service deployment fails.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<ServiceDeployment.Builder,
ServiceDeployment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-