Interface ComponentFailureContext.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ComponentFailureContext.Builder,,ComponentFailureContext> SdkBuilder<ComponentFailureContext.Builder,,ComponentFailureContext> SdkPojo
- Enclosing class:
ComponentFailureContext
@Mutable
@NotThreadSafe
public static interface ComponentFailureContext.Builder
extends SdkPojo, CopyableBuilder<ComponentFailureContext.Builder,ComponentFailureContext>
-
Method Summary
Modifier and TypeMethodDescriptionThe action that the failed step runs, for exampleExecuteBash.componentArn(String componentArn) The Amazon Resource Name (ARN) of the component build version that failed.errorMessage(String errorMessage) The error message from the step that failed.The name of the phase in the component document where the failure occurred, such asbuild,validate, ortest.The name of the step in the component document that failed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
componentArn
The Amazon Resource Name (ARN) of the component build version that failed.
- Parameters:
componentArn- The Amazon Resource Name (ARN) of the component build version that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phaseName
The name of the phase in the component document where the failure occurred, such as
build,validate, ortest.- Parameters:
phaseName- The name of the phase in the component document where the failure occurred, such asbuild,validate, ortest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stepName
The name of the step in the component document that failed.
- Parameters:
stepName- The name of the step in the component document that failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
The action that the failed step runs, for example
ExecuteBash.- Parameters:
action- The action that the failed step runs, for exampleExecuteBash.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorMessage
The error message from the step that failed. Image Builder truncates messages that are longer than 1024 characters. The component log in Amazon CloudWatch Logs contains the full output.
- Parameters:
errorMessage- The error message from the step that failed. Image Builder truncates messages that are longer than 1024 characters. The component log in Amazon CloudWatch Logs contains the full output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-