Interface ServiceDeployment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ServiceDeployment.Builder,
,ServiceDeployment> SdkBuilder<ServiceDeployment.Builder,
,ServiceDeployment> SdkPojo
- Enclosing class:
ServiceDeployment
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceDeployment.Builder
The CloudWatch alarms that determine when a service deployment fails.alarms
(ServiceDeploymentAlarms alarms) The CloudWatch alarms that determine when a service deployment fails.clusterArn
(String clusterArn) The ARN of the cluster that hosts the service.The time the service deployment was created.default ServiceDeployment.Builder
deploymentCircuitBreaker
(Consumer<ServiceDeploymentCircuitBreaker.Builder> deploymentCircuitBreaker) The circuit breaker configuration that determines a service deployment failed.deploymentCircuitBreaker
(ServiceDeploymentCircuitBreaker deploymentCircuitBreaker) The circuit breaker configuration that determines a service deployment failed.default ServiceDeployment.Builder
deploymentConfiguration
(Consumer<DeploymentConfiguration.Builder> deploymentConfiguration) Sets the value of the DeploymentConfiguration property for this object.deploymentConfiguration
(DeploymentConfiguration deploymentConfiguration) Sets the value of the DeploymentConfiguration property for this object.finishedAt
(Instant finishedAt) The time the service deployment finished.lifecycleStage
(String lifecycleStage) The current lifecycle stage of the deployment.lifecycleStage
(ServiceDeploymentLifecycleStage lifecycleStage) The current lifecycle stage of the deployment.default ServiceDeployment.Builder
rollback
(Consumer<Rollback.Builder> rollback) The rollback options the service deployment uses when the deployment fails.The rollback options the service deployment uses when the deployment fails.serviceArn
(String serviceArn) The ARN of the service for this service deployment.serviceDeploymentArn
(String serviceDeploymentArn) The ARN of the service deployment.sourceServiceRevisions
(Collection<ServiceRevisionSummary> sourceServiceRevisions) The currently deployed workload configuration.sourceServiceRevisions
(Consumer<ServiceRevisionSummary.Builder>... sourceServiceRevisions) The currently deployed workload configuration.sourceServiceRevisions
(ServiceRevisionSummary... sourceServiceRevisions) The currently deployed workload configuration.The time the service deployment statred.The service deployment state.status
(ServiceDeploymentStatus status) The service deployment state.statusReason
(String statusReason) Information about why the service deployment is in the current status.The time the service deployment stopped.default ServiceDeployment.Builder
targetServiceRevision
(Consumer<ServiceRevisionSummary.Builder> targetServiceRevision) The workload configuration being deployed.targetServiceRevision
(ServiceRevisionSummary targetServiceRevision) The workload configuration being deployed.The time that the service deployment was last updated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
serviceDeploymentArn
The ARN of the service deployment.
- Parameters:
serviceDeploymentArn
- The ARN of the service deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceArn
The ARN of the service for this service deployment.
- Parameters:
serviceArn
- The ARN of the service for this service deployment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterArn
The ARN of the cluster that hosts the service.
- Parameters:
clusterArn
- The ARN of the cluster that hosts the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The time the service deployment was created. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Parameters:
createdAt
- The time the service deployment was created. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
The time the service deployment statred. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Parameters:
startedAt
- The time the service deployment statred. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finishedAt
The time the service deployment finished. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Parameters:
finishedAt
- The time the service deployment finished. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
-
updatedAt
The time that the service deployment was last updated. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.
- Parameters:
updatedAt
- The time that the service deployment was last updated. The format is yyyy-MM-dd HH:mm:ss.SSSSSS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServiceRevisions
ServiceDeployment.Builder sourceServiceRevisions(Collection<ServiceRevisionSummary> sourceServiceRevisions) The currently deployed workload configuration.
- Parameters:
sourceServiceRevisions
- The currently deployed workload configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServiceRevisions
The currently deployed workload configuration.
- Parameters:
sourceServiceRevisions
- The currently deployed workload configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceServiceRevisions
ServiceDeployment.Builder sourceServiceRevisions(Consumer<ServiceRevisionSummary.Builder>... sourceServiceRevisions) The currently deployed workload configuration.
This is a convenience method that creates an instance of theServiceRevisionSummary.Builder
avoiding the need to create one manually viaServiceRevisionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceServiceRevisions(List<ServiceRevisionSummary>)
.- Parameters:
sourceServiceRevisions
- a consumer that will call methods onServiceRevisionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetServiceRevision
The workload configuration being deployed.
- Parameters:
targetServiceRevision
- The workload configuration being deployed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetServiceRevision
default ServiceDeployment.Builder targetServiceRevision(Consumer<ServiceRevisionSummary.Builder> targetServiceRevision) The workload configuration being deployed.
This is a convenience method that creates an instance of theServiceRevisionSummary.Builder
avoiding the need to create one manually viaServiceRevisionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetServiceRevision(ServiceRevisionSummary)
.- Parameters:
targetServiceRevision
- a consumer that will call methods onServiceRevisionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The service deployment state.
- Parameters:
status
- The service deployment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The service deployment state.
- Parameters:
status
- The service deployment state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReason
Information about why the service deployment is in the current status. For example, the circuit breaker detected a failure.
- Parameters:
statusReason
- Information about why the service deployment is in the current status. For example, the circuit breaker detected a failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
deploymentConfiguration
Sets the value of the DeploymentConfiguration property for this object.- Parameters:
deploymentConfiguration
- The new value for the DeploymentConfiguration property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfiguration
default ServiceDeployment.Builder deploymentConfiguration(Consumer<DeploymentConfiguration.Builder> deploymentConfiguration) Sets the value of the DeploymentConfiguration property for this object. This is a convenience method that creates an instance of theDeploymentConfiguration.Builder
avoiding the need to create one manually viaDeploymentConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentConfiguration(DeploymentConfiguration)
.- Parameters:
deploymentConfiguration
- a consumer that will call methods onDeploymentConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rollback
The rollback options the service deployment uses when the deployment fails.
- Parameters:
rollback
- The rollback options the service deployment uses when the deployment fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rollback
The rollback options the service deployment uses when the deployment fails.
This is a convenience method that creates an instance of theRollback.Builder
avoiding the need to create one manually viaRollback.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torollback(Rollback)
.- Parameters:
rollback
- a consumer that will call methods onRollback.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentCircuitBreaker
ServiceDeployment.Builder deploymentCircuitBreaker(ServiceDeploymentCircuitBreaker deploymentCircuitBreaker) The circuit breaker configuration that determines a service deployment failed.
- Parameters:
deploymentCircuitBreaker
- The circuit breaker configuration that determines a service deployment failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentCircuitBreaker
default ServiceDeployment.Builder deploymentCircuitBreaker(Consumer<ServiceDeploymentCircuitBreaker.Builder> deploymentCircuitBreaker) The circuit breaker configuration that determines a service deployment failed.
This is a convenience method that creates an instance of theServiceDeploymentCircuitBreaker.Builder
avoiding the need to create one manually viaServiceDeploymentCircuitBreaker.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentCircuitBreaker(ServiceDeploymentCircuitBreaker)
.- Parameters:
deploymentCircuitBreaker
- a consumer that will call methods onServiceDeploymentCircuitBreaker.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
alarms
The CloudWatch alarms that determine when a service deployment fails.
- Parameters:
alarms
- The CloudWatch alarms that determine when a service deployment fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarms
The CloudWatch alarms that determine when a service deployment fails.
This is a convenience method that creates an instance of theServiceDeploymentAlarms.Builder
avoiding the need to create one manually viaServiceDeploymentAlarms.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toalarms(ServiceDeploymentAlarms)
.- Parameters:
alarms
- a consumer that will call methods onServiceDeploymentAlarms.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-