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 StringProvides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated.final StringThe application name.Information about the automatic rollback configuration associated with the deployment.Information about blue/green deployment options for this deployment.static DeploymentInfo.Builderbuilder()final InstantA timestamp that indicates when the deployment was complete.final ComputePlatformThe destination platform type for the deployment (Lambda,Server, orECS).final StringThe destination platform type for the deployment (Lambda,Server, orECS).final InstantA timestamp that indicates when the deployment was created.final DeploymentCreatorcreator()The means by which the deployment was created:final StringThe means by which the deployment was created:final StringThe deployment configuration name.final StringThe deployment group name.final StringThe unique ID of a deployment.final DeploymentOverviewA summary of the deployment status of the instances in the deployment.Messages that contain information about the status of a deployment.final DeploymentStyleInformation 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 StringA comment about the deployment.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ErrorInformationInformation about any error associated with this deployment.final StringThe unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.final FileExistsBehaviorInformation about how CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment.final StringInformation 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 booleanFor responses, this returns true if the service returned a value for the DeploymentStatusMessages property.final inthashCode()final BooleanIf true, then if anApplicationStop,BeforeBlockTraffic, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event.final BooleanIndicates whether the wait period set for the termination of instances in the original environment has started.final LoadBalancerInfoInformation about the load balancer used in the deployment.final AlarmConfigurationReturns the value of the OverrideAlarmConfiguration property for this object.final RevisionLocationInformation about the application revision that was deployed to the deployment group before the most recent successful deployment.final RelatedDeploymentsReturns the value of the RelatedDeployments property for this object.final RevisionLocationrevision()Information about the location of stored application artifacts and the service from which to retrieve them.final RollbackInfoInformation about a deployment rollback.static Class<? extends DeploymentInfo.Builder> final InstantA timestamp that indicates when the deployment was deployed to the deployment group.final DeploymentStatusstatus()The current state of the deployment as a whole.final StringThe current state of the deployment as a whole.final TargetInstancesInformation 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 StringtoString()Returns a string representation of this object.final BooleanIndicates 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,
statuswill 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,
statuswill 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,
creatorwill 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,
creatorwill 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, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStopfails, the deployment continues with DownloadBundle. IfBeforeBlockTrafficfails, the deployment continues withBlockTraffic. IfAfterBlockTrafficfails, 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, andAfterBlockTrafficin 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
ignoreApplicationStopFailuresto specify that theApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficfailures should be ignored.- Returns:
- If true, then if an
ApplicationStop,BeforeBlockTraffic, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStopfails, the deployment continues with DownloadBundle. IfBeforeBlockTrafficfails, the deployment continues withBlockTraffic. IfAfterBlockTrafficfails, 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, andAfterBlockTrafficin 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
ignoreApplicationStopFailuresto specify that theApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficfailures 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,
fileExistsBehaviorwill 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,
fileExistsBehaviorwill 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,
computePlatformwill 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,
computePlatformwill 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:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DeploymentInfo.Builder,DeploymentInfo> - 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.
-