Class DeploymentInfo
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<DeploymentInfo.Builder,
DeploymentInfo>
Information about a deployment.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.final String
The application name.Information about the automatic rollback configuration associated with the deployment.Information about blue/green deployment options for this deployment.static DeploymentInfo.Builder
builder()
final Instant
A timestamp that indicates when the deployment was complete.final ComputePlatform
The destination platform type for the deployment (Lambda
,Server
, orECS
).final String
The destination platform type for the deployment (Lambda
,Server
, orECS
).final Instant
A timestamp that indicates when the deployment was created.final DeploymentCreator
creator()
The means by which the deployment was created:final String
The means by which the deployment was created:final String
The deployment configuration name.final String
The deployment group name.final String
The unique ID of a deployment.final DeploymentOverview
A summary of the deployment status of the instances in the deployment.Messages that contain information about the status of a deployment.final DeploymentStyle
Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.final String
A comment about the deployment.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorInformation
Information about any error associated with this deployment.final String
The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.final FileExistsBehavior
Information about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.final String
Information about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final boolean
For responses, this returns true if the service returned a value for the DeploymentStatusMessages property.final int
hashCode()
final Boolean
If true, then if anApplicationStop
,BeforeBlockTraffic
, orAfterBlockTraffic
deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event.final Boolean
Indicates whether the wait period set for the termination of instances in the original environment has started.final LoadBalancerInfo
Information about the load balancer used in the deployment.final AlarmConfiguration
Returns the value of the OverrideAlarmConfiguration property for this object.final RevisionLocation
Information about the application revision that was deployed to the deployment group before the most recent successful deployment.final RelatedDeployments
Returns the value of the RelatedDeployments property for this object.final RevisionLocation
revision()
Information about the location of stored application artifacts and the service from which to retrieve them.final RollbackInfo
Information about a deployment rollback.static Class
<? extends DeploymentInfo.Builder> final Instant
A timestamp that indicates when the deployment was deployed to the deployment group.final DeploymentStatus
status()
The current state of the deployment as a whole.final String
The current state of the deployment as a whole.final TargetInstances
Information about the instances that belong to the replacement environment in a blue/green deployment.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 Boolean
Indicates whether only instances that are not running the latest application revision are to be deployed to.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
applicationName
-
deploymentGroupName
The deployment group name.
- Returns:
- The deployment group name.
-
deploymentConfigName
The deployment configuration name.
- Returns:
- The deployment configuration name.
-
deploymentId
The unique ID of a deployment.
- Returns:
- The unique ID of a deployment.
-
previousRevision
Information about the application revision that was deployed to the deployment group before the most recent successful deployment.
- Returns:
- Information about the application revision that was deployed to the deployment group before the most recent successful deployment.
-
revision
Information about the location of stored application artifacts and the service from which to retrieve them.
- Returns:
- Information about the location of stored application artifacts and the service from which to retrieve them.
-
status
The current state of the deployment as a whole.
If the service returns an enum value that is not available in the current SDK version,
status
will returnDeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current state of the deployment as a whole.
- See Also:
-
statusAsString
The current state of the deployment as a whole.
If the service returns an enum value that is not available in the current SDK version,
status
will returnDeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstatusAsString()
.- Returns:
- The current state of the deployment as a whole.
- See Also:
-
errorInformation
Information about any error associated with this deployment.
- Returns:
- Information about any error associated with this deployment.
-
createTime
A timestamp that indicates when the deployment was created.
- Returns:
- A timestamp that indicates when the deployment was created.
-
startTime
A timestamp that indicates when the deployment was deployed to the deployment group.
In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.
- Returns:
- A timestamp that indicates when the deployment was deployed to the deployment group.
In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.
-
completeTime
A timestamp that indicates when the deployment was complete.
- Returns:
- A timestamp that indicates when the deployment was complete.
-
deploymentOverview
A summary of the deployment status of the instances in the deployment.
- Returns:
- A summary of the deployment status of the instances in the deployment.
-
description
A comment about the deployment.
- Returns:
- A comment about the deployment.
-
creator
The means by which the deployment was created:
-
user
: A user created the deployment. -
autoscaling
: Amazon EC2 Auto Scaling created the deployment. -
codeDeployRollback
: A rollback process created the deployment. -
CodeDeployAutoUpdate
: An auto-update process created the deployment when it detected outdated Amazon EC2 instances.
If the service returns an enum value that is not available in the current SDK version,
creator
will returnDeploymentCreator.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcreatorAsString()
.- Returns:
- The means by which the deployment was created:
-
user
: A user created the deployment. -
autoscaling
: Amazon EC2 Auto Scaling created the deployment. -
codeDeployRollback
: A rollback process created the deployment. -
CodeDeployAutoUpdate
: An auto-update process created the deployment when it detected outdated Amazon EC2 instances.
-
- See Also:
-
-
creatorAsString
The means by which the deployment was created:
-
user
: A user created the deployment. -
autoscaling
: Amazon EC2 Auto Scaling created the deployment. -
codeDeployRollback
: A rollback process created the deployment. -
CodeDeployAutoUpdate
: An auto-update process created the deployment when it detected outdated Amazon EC2 instances.
If the service returns an enum value that is not available in the current SDK version,
creator
will returnDeploymentCreator.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcreatorAsString()
.- Returns:
- The means by which the deployment was created:
-
user
: A user created the deployment. -
autoscaling
: Amazon EC2 Auto Scaling created the deployment. -
codeDeployRollback
: A rollback process created the deployment. -
CodeDeployAutoUpdate
: An auto-update process created the deployment when it detected outdated Amazon EC2 instances.
-
- See Also:
-
-
ignoreApplicationStopFailures
If true, then if an
ApplicationStop
,BeforeBlockTraffic
, orAfterBlockTraffic
deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStop
fails, the deployment continues with DownloadBundle. IfBeforeBlockTraffic
fails, the deployment continues withBlockTraffic
. IfAfterBlockTraffic
fails, the deployment continues withApplicationStop
.If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.
During a deployment, the CodeDeploy agent runs the scripts specified for
ApplicationStop
,BeforeBlockTraffic
, andAfterBlockTraffic
in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use
ignoreApplicationStopFailures
to specify that theApplicationStop
,BeforeBlockTraffic
, andAfterBlockTraffic
failures should be ignored.- Returns:
- If true, then if an
ApplicationStop
,BeforeBlockTraffic
, orAfterBlockTraffic
deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStop
fails, the deployment continues with DownloadBundle. IfBeforeBlockTraffic
fails, the deployment continues withBlockTraffic
. IfAfterBlockTraffic
fails, the deployment continues withApplicationStop
.If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.
During a deployment, the CodeDeploy agent runs the scripts specified for
ApplicationStop
,BeforeBlockTraffic
, andAfterBlockTraffic
in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use
ignoreApplicationStopFailures
to specify that theApplicationStop
,BeforeBlockTraffic
, andAfterBlockTraffic
failures should be ignored.
-
autoRollbackConfiguration
Information about the automatic rollback configuration associated with the deployment.
- Returns:
- Information about the automatic rollback configuration associated with the deployment.
-
updateOutdatedInstancesOnly
Indicates whether only instances that are not running the latest application revision are to be deployed to.
- Returns:
- Indicates whether only instances that are not running the latest application revision are to be deployed to.
-
rollbackInfo
Information about a deployment rollback.
- Returns:
- Information about a deployment rollback.
-
deploymentStyle
Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.
- Returns:
- Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer.
-
targetInstances
Information about the instances that belong to the replacement environment in a blue/green deployment.
- Returns:
- Information about the instances that belong to the replacement environment in a blue/green deployment.
-
instanceTerminationWaitTimeStarted
Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.
- Returns:
- Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts.
-
blueGreenDeploymentConfiguration
Information about blue/green deployment options for this deployment.
- Returns:
- Information about blue/green deployment options for this deployment.
-
loadBalancerInfo
Information about the load balancer used in the deployment.
- Returns:
- Information about the load balancer used in the deployment.
-
additionalDeploymentStatusInfo
Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.
- Returns:
- Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.
-
fileExistsBehavior
Information about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.
-
DISALLOW
: The deployment fails. This is also the default behavior if no option is specified. -
OVERWRITE
: The version of the file from the application revision currently being deployed replaces the version already on the instance. -
RETAIN
: The version of the file already on the instance is kept and used as part of the new deployment.
If the service returns an enum value that is not available in the current SDK version,
fileExistsBehavior
will returnFileExistsBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfileExistsBehaviorAsString()
.- Returns:
- Information about how CodeDeploy handles files that already exist in a deployment target location but
weren't part of the previous successful deployment.
-
DISALLOW
: The deployment fails. This is also the default behavior if no option is specified. -
OVERWRITE
: The version of the file from the application revision currently being deployed replaces the version already on the instance. -
RETAIN
: The version of the file already on the instance is kept and used as part of the new deployment.
-
- See Also:
-
-
fileExistsBehaviorAsString
Information about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.
-
DISALLOW
: The deployment fails. This is also the default behavior if no option is specified. -
OVERWRITE
: The version of the file from the application revision currently being deployed replaces the version already on the instance. -
RETAIN
: The version of the file already on the instance is kept and used as part of the new deployment.
If the service returns an enum value that is not available in the current SDK version,
fileExistsBehavior
will returnFileExistsBehavior.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromfileExistsBehaviorAsString()
.- Returns:
- Information about how CodeDeploy handles files that already exist in a deployment target location but
weren't part of the previous successful deployment.
-
DISALLOW
: The deployment fails. This is also the default behavior if no option is specified. -
OVERWRITE
: The version of the file from the application revision currently being deployed replaces the version already on the instance. -
RETAIN
: The version of the file already on the instance is kept and used as part of the new deployment.
-
- See Also:
-
-
hasDeploymentStatusMessages
public final boolean hasDeploymentStatusMessages()For responses, this returns true if the service returned a value for the DeploymentStatusMessages 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. -
deploymentStatusMessages
Messages that contain information about the status of a 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
hasDeploymentStatusMessages()
method.- Returns:
- Messages that contain information about the status of a deployment.
-
computePlatform
The destination platform type for the deployment (
Lambda
,Server
, orECS
).If the service returns an enum value that is not available in the current SDK version,
computePlatform
will returnComputePlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcomputePlatformAsString()
.- Returns:
- The destination platform type for the deployment (
Lambda
,Server
, orECS
). - See Also:
-
computePlatformAsString
The destination platform type for the deployment (
Lambda
,Server
, orECS
).If the service returns an enum value that is not available in the current SDK version,
computePlatform
will returnComputePlatform.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcomputePlatformAsString()
.- Returns:
- The destination platform type for the deployment (
Lambda
,Server
, orECS
). - See Also:
-
externalId
The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.
- Returns:
- The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.
-
overrideAlarmConfiguration
Returns the value of the OverrideAlarmConfiguration property for this object.- Returns:
- The value of the OverrideAlarmConfiguration property for this object.
-
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<DeploymentInfo.Builder,
DeploymentInfo> - 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
-