ComponentSchemaVersion

class aws_cdk.aws_imagebuilder_alpha.ComponentSchemaVersion(*values)

Bases: Enum

(experimental) The schema version of the component.

Stability:

experimental

ExampleMetadata:

infused

Example:

component = imagebuilder.Component(self, "EncryptedComponent",
    platform=imagebuilder.Platform.LINUX,
    kms_key=kms.Key(self, "ComponentKey"),
    data=imagebuilder.ComponentData.from_json_object({
        "schema_version": imagebuilder.ComponentSchemaVersion.V1_0,
        "phases": [{
            "name": imagebuilder.ComponentPhaseName.BUILD,
            "steps": [{
                "name": "secure-setup",
                "action": imagebuilder.ComponentAction.EXECUTE_BASH,
                "inputs": {
                    "commands": ["echo "This component data is encrypted with KMS""]
                }
            }
            ]
        }
        ]
    })
)

Attributes

V1_0

(experimental) Schema version 1.0 for the component document.

Stability:

experimental