Class DeploymentLifecycleHookDetail
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DeploymentLifecycleHookDetail.Builder,DeploymentLifecycleHookDetail>
The details of a deployment lifecycle hook that is active during a service deployment.
You can view lifecycle hook details by calling DescribeServiceDeployments.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final InstantThe time when the lifecycle hook times out.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringhookId()The ID of the lifecycle hook.static Class<? extends DeploymentLifecycleHookDetail.Builder>status()The status of the lifecycle hook.final StringThe status of the lifecycle hook.final StringThe Amazon Resource Name (ARN) of the hook target.The type of action the lifecycle hook performs, such asAWS_LAMBDAorPAUSE.final StringThe type of action the lifecycle hook performs, such asAWS_LAMBDAorPAUSE.The action Amazon ECS takes when the lifecycle hook times out.final StringThe action Amazon ECS takes when the lifecycle hook times out.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
hookId
The ID of the lifecycle hook. Use this value when calling
ContinueServiceDeploymentto continue or roll back a paused deployment.- Returns:
- The ID of the lifecycle hook. Use this value when calling
ContinueServiceDeploymentto continue or roll back a paused deployment.
-
targetType
The type of action the lifecycle hook performs, such as
AWS_LAMBDAorPAUSE.If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnDeploymentLifecycleHookTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of action the lifecycle hook performs, such as
AWS_LAMBDAorPAUSE. - See Also:
-
targetTypeAsString
The type of action the lifecycle hook performs, such as
AWS_LAMBDAorPAUSE.If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnDeploymentLifecycleHookTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of action the lifecycle hook performs, such as
AWS_LAMBDAorPAUSE. - See Also:
-
targetArn
The Amazon Resource Name (ARN) of the hook target. For
AWS_LAMBDAhooks, this is the Lambda function ARN. ForPAUSEhooks, this field is not set.- Returns:
- The Amazon Resource Name (ARN) of the hook target. For
AWS_LAMBDAhooks, this is the Lambda function ARN. ForPAUSEhooks, this field is not set.
-
status
The status of the lifecycle hook. Valid values include
AWAITING_ACTION,IN_PROGRESS,SUCCEEDED,FAILED, andTIMED_OUT.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDeploymentLifecycleHookStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the lifecycle hook. Valid values include
AWAITING_ACTION,IN_PROGRESS,SUCCEEDED,FAILED, andTIMED_OUT. - See Also:
-
statusAsString
The status of the lifecycle hook. Valid values include
AWAITING_ACTION,IN_PROGRESS,SUCCEEDED,FAILED, andTIMED_OUT.If the service returns an enum value that is not available in the current SDK version,
statuswill returnDeploymentLifecycleHookStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the lifecycle hook. Valid values include
AWAITING_ACTION,IN_PROGRESS,SUCCEEDED,FAILED, andTIMED_OUT. - See Also:
-
expiresAt
The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.
- Returns:
- The time when the lifecycle hook times out. If the hook has not been completed by this time, Amazon ECS takes the timeout action.
-
timeoutAction
The action Amazon ECS takes when the lifecycle hook times out. Valid values are
CONTINUEandROLLBACK.If the service returns an enum value that is not available in the current SDK version,
timeoutActionwill returnDeploymentLifecycleHookAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeoutActionAsString().- Returns:
- The action Amazon ECS takes when the lifecycle hook times out. Valid values are
CONTINUEandROLLBACK. - See Also:
-
timeoutActionAsString
The action Amazon ECS takes when the lifecycle hook times out. Valid values are
CONTINUEandROLLBACK.If the service returns an enum value that is not available in the current SDK version,
timeoutActionwill returnDeploymentLifecycleHookAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtimeoutActionAsString().- Returns:
- The action Amazon ECS takes when the lifecycle hook times out. Valid values are
CONTINUEandROLLBACK. - See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeploymentLifecycleHookDetail.Builder,DeploymentLifecycleHookDetail>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-