@Generated(value="software.amazon.awssdk:codegen") public final class DeploymentInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeploymentInfo.Builder,DeploymentInfo>
Information about a deployment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeploymentInfo.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
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.
|
String |
applicationName()
The application name.
|
AutoRollbackConfiguration |
autoRollbackConfiguration()
Information about the automatic rollback configuration associated with the deployment.
|
BlueGreenDeploymentConfiguration |
blueGreenDeploymentConfiguration()
Information about blue/green deployment options for this deployment.
|
static DeploymentInfo.Builder |
builder() |
Instant |
completeTime()
A timestamp that indicates when the deployment was complete.
|
ComputePlatform |
computePlatform()
The destination platform type for the deployment (
Lambda, Server, or ECS). |
String |
computePlatformAsString()
The destination platform type for the deployment (
Lambda, Server, or ECS). |
Instant |
createTime()
A timestamp that indicates when the deployment was created.
|
DeploymentCreator |
creator()
The means by which the deployment was created:
|
String |
creatorAsString()
The means by which the deployment was created:
|
String |
deploymentConfigName()
The deployment configuration name.
|
String |
deploymentGroupName()
The deployment group name.
|
String |
deploymentId()
The unique ID of a deployment.
|
DeploymentOverview |
deploymentOverview()
A summary of the deployment status of the instances in the deployment.
|
List<String> |
deploymentStatusMessages()
Messages that contain information about the status of a deployment.
|
DeploymentStyle |
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.
|
String |
description()
A comment about the deployment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ErrorInformation |
errorInformation()
Information about any error associated with this deployment.
|
String |
externalId()
The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this
deployment.
|
FileExistsBehavior |
fileExistsBehavior()
Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't
part of the previous successful deployment.
|
String |
fileExistsBehaviorAsString()
Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't
part of the previous successful deployment.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDeploymentStatusMessages()
For responses, this returns true if the service returned a value for the DeploymentStatusMessages property.
|
int |
hashCode() |
Boolean |
ignoreApplicationStopFailures()
If true, then if an
ApplicationStop, BeforeBlockTraffic, or
AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to
the next deployment lifecycle event. |
Boolean |
instanceTerminationWaitTimeStarted()
Indicates whether the wait period set for the termination of instances in the original environment has started.
|
LoadBalancerInfo |
loadBalancerInfo()
Information about the load balancer used in the deployment.
|
RevisionLocation |
previousRevision()
Information about the application revision that was deployed to the deployment group before the most recent
successful deployment.
|
RelatedDeployments |
relatedDeployments()
Returns the value of the RelatedDeployments property for this object.
|
RevisionLocation |
revision()
Information about the location of stored application artifacts and the service from which to retrieve them.
|
RollbackInfo |
rollbackInfo()
Information about a deployment rollback.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DeploymentInfo.Builder> |
serializableBuilderClass() |
Instant |
startTime()
A timestamp that indicates when the deployment was deployed to the deployment group.
|
DeploymentStatus |
status()
The current state of the deployment as a whole.
|
String |
statusAsString()
The current state of the deployment as a whole.
|
TargetInstances |
targetInstances()
Information about the instances that belong to the replacement environment in a blue/green deployment.
|
DeploymentInfo.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
updateOutdatedInstancesOnly()
Indicates whether only instances that are not running the latest application revision are to be deployed to.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String applicationName()
The application name.
public final String deploymentGroupName()
The deployment group name.
public final String deploymentConfigName()
The deployment configuration name.
public final String deploymentId()
The unique ID of a deployment.
public final RevisionLocation previousRevision()
Information about the application revision that was deployed to the deployment group before the most recent successful deployment.
public final RevisionLocation revision()
Information about the location of stored application artifacts and the service from which to retrieve them.
public final DeploymentStatus 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
return DeploymentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
DeploymentStatuspublic final String 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
return DeploymentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
DeploymentStatuspublic final ErrorInformation errorInformation()
Information about any error associated with this deployment.
public final Instant createTime()
A timestamp that indicates when the deployment was created.
public final Instant 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.
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.
public final Instant completeTime()
A timestamp that indicates when the deployment was complete.
public final DeploymentOverview deploymentOverview()
A summary of the deployment status of the instances in the deployment.
public final String description()
A comment about the deployment.
public final DeploymentCreator 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 EC2
instances.
If the service returns an enum value that is not available in the current SDK version, creator will
return DeploymentCreator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
creatorAsString().
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 EC2 instances.
DeploymentCreatorpublic final String 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 EC2
instances.
If the service returns an enum value that is not available in the current SDK version, creator will
return DeploymentCreator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
creatorAsString().
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 EC2 instances.
DeploymentCreatorpublic final Boolean ignoreApplicationStopFailures()
If true, then if an ApplicationStop, BeforeBlockTraffic, or
AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to
the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues
with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with
BlockTraffic. If AfterBlockTraffic fails, the deployment continues with
ApplicationStop.
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 AWS CodeDeploy agent runs the scripts specified for ApplicationStop,
BeforeBlockTraffic, and AfterBlockTraffic 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 the
ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should
be ignored.
ApplicationStop, BeforeBlockTraffic, or
AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment
continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the
deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment
continues with BlockTraffic. If AfterBlockTraffic fails, the deployment
continues with ApplicationStop.
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 AWS CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic 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
the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic
failures should be ignored.
public final AutoRollbackConfiguration autoRollbackConfiguration()
Information about the automatic rollback configuration associated with the deployment.
public final Boolean updateOutdatedInstancesOnly()
Indicates whether only instances that are not running the latest application revision are to be deployed to.
public final RollbackInfo rollbackInfo()
Information about a deployment rollback.
public final DeploymentStyle 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.
public final TargetInstances targetInstances()
Information about the instances that belong to the replacement environment in a blue/green deployment.
public final Boolean 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.
public final BlueGreenDeploymentConfiguration blueGreenDeploymentConfiguration()
Information about blue/green deployment options for this deployment.
public final LoadBalancerInfo loadBalancerInfo()
Information about the load balancer used in the deployment.
public final String 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.
public final FileExistsBehavior fileExistsBehavior()
Information about how AWS 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 return FileExistsBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from fileExistsBehaviorAsString().
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.
FileExistsBehaviorpublic final String fileExistsBehaviorAsString()
Information about how AWS 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 return FileExistsBehavior.UNKNOWN_TO_SDK_VERSION. The raw value returned
by the service is available from fileExistsBehaviorAsString().
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.
FileExistsBehaviorpublic final boolean hasDeploymentStatusMessages()
isEmpty() 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.public final List<String> 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.
public final ComputePlatform computePlatform()
The destination platform type for the deployment (Lambda, Server, or ECS).
If the service returns an enum value that is not available in the current SDK version, computePlatform
will return ComputePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from computePlatformAsString().
Lambda, Server, or
ECS).ComputePlatformpublic final String computePlatformAsString()
The destination platform type for the deployment (Lambda, Server, or ECS).
If the service returns an enum value that is not available in the current SDK version, computePlatform
will return ComputePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from computePlatformAsString().
Lambda, Server, or
ECS).ComputePlatformpublic final String externalId()
The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment.
public final RelatedDeployments relatedDeployments()
public DeploymentInfo.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DeploymentInfo.Builder,DeploymentInfo>public static DeploymentInfo.Builder builder()
public static Class<? extends DeploymentInfo.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.