Interface ComponentDocument
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ComponentDocument.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:34.440Z")
@Stability(Experimental)
public interface ComponentDocument
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties of an EC2 Image Builder Component Document.
Example:
Component component = Component.Builder.create(this, "StructuredComponent")
.platform(Platform.LINUX)
.data(ComponentData.fromComponentDocumentJsonObject(ComponentDocument.builder()
.schemaVersion(ComponentSchemaVersion.V1_0)
.phases(List.of(ComponentDocumentPhase.builder()
.name(ComponentPhaseName.BUILD)
.steps(List.of(ComponentDocumentStep.builder()
.name("install-with-timeout")
.action(ComponentAction.EXECUTE_BASH)
.timeout(Duration.minutes(10))
.onFailure(ComponentOnFailure.CONTINUE)
.inputs(ComponentStepInputs.fromObject(Map.of(
"commands", List.of("./install-script.sh"))))
.build()))
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forComponentDocumentstatic final classAn implementation forComponentDocument -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentDocument.Builderbuilder()default Map<String, ComponentConstantValue> (experimental) The constants to define in the document.default String(experimental) The description of the document.default StringgetName()(experimental) The name of the document.(experimental) The parameters to define in the document.(experimental) The phases which define the grouping of steps to run in the build and test workflows of the image build.(experimental) The schema version of the component.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPhases
(experimental) The phases which define the grouping of steps to run in the build and test workflows of the image build. -
getSchemaVersion
(experimental) The schema version of the component. -
getConstants
(experimental) The constants to define in the document.Default: None
-
getDescription
(experimental) The description of the document.Default: None
-
getName
(experimental) The name of the document.Default: None
-
getParameters
@Stability(Experimental) @Nullable default Map<String,ComponentDocumentParameterDefinition> getParameters()(experimental) The parameters to define in the document.Default: None
-
builder
- Returns:
- a
ComponentDocument.BuilderofComponentDocument
-