Show / Hide Table of Contents

Enum ComponentOnFailure

(experimental) Specifies what the step should do in case of failure.

Namespace: Amazon.CDK.AWS.ImageBuilder.Alpha
Assembly: Amazon.CDK.AWS.ImageBuilder.Alpha.dll
Syntax (csharp)
public enum ComponentOnFailure
Syntax (vb)
Public Enum ComponentOnFailure
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
var component = new Component(this, "StructuredComponent", new ComponentProps {
                 Platform = Platform.LINUX,
                 Data = ComponentData.FromComponentDocumentJsonObject(new ComponentDocument {
                     SchemaVersion = ComponentSchemaVersion.V1_0,
                     Phases = new [] { new ComponentDocumentPhase {
                         Name = ComponentPhaseName.BUILD,
                         Steps = new [] { new ComponentDocumentStep {
                             Name = "install-with-timeout",
                             Action = ComponentAction.EXECUTE_BASH,
                             Timeout = Duration.Minutes(10),
                             OnFailure = ComponentOnFailure.CONTINUE,
                             Inputs = ComponentStepInputs.FromObject(new Dictionary<string, object> {
                                 { "commands", new [] { "./install-script.sh" } }
                             })
                         } }
                     } }
                 })
             });

Synopsis

Fields

ABORT

(experimental) Fails the step and document execution.

CONTINUE

(experimental) Fails the step and proceeds to execute the next step in the document.

IGNORE

(experimental) Ignores the step and proceeds to execute the next step in the document.

Fields

Name Description
ABORT

(experimental) Fails the step and document execution.

CONTINUE

(experimental) Fails the step and proceeds to execute the next step in the document.

IGNORE

(experimental) Ignores the step and proceeds to execute the next step in the document.

Back to top Generated by DocFX