ComponentAction

class aws_cdk.aws_imagebuilder_alpha.ComponentAction(*values)

Bases: Enum

(experimental) The action for a step within the component document.

Stability:

experimental

ExampleMetadata:

infused

Example:

component = imagebuilder.Component(self, "MyComponent",
    platform=imagebuilder.Platform.LINUX,
    data=imagebuilder.ComponentData.from_json_object({
        "schema_version": imagebuilder.ComponentSchemaVersion.V1_0,
        "phases": [{
            "name": imagebuilder.ComponentPhaseName.BUILD,
            "steps": [{
                "name": "install-app",
                "action": imagebuilder.ComponentAction.EXECUTE_BASH,
                "inputs": {
                    "commands": ["echo "Installing my application..."", "yum update -y"]
                }
            }
            ]
        }
        ]
    })
)

Attributes

APPEND_FILE

(experimental) The AppendFile action adds the provided content to the pre-existing content of a file.

Stability:

experimental

ASSERT

(experimental) The Assert action performs value with comparison/logic operators, and succeeds/fails the step based on the outcome of the assertion.

Stability:

experimental

COPY_FILE

(experimental) The CopyFile action copies files from a source file to a destination.

Stability:

experimental

COPY_FOLDER

(experimental) The CopyFolder action copies folders from a source to a destination.

Stability:

experimental

CREATE_FILE

(experimental) The CreateFile action creates a file in the provided location.

Stability:

experimental

CREATE_FOLDER

(experimental) The CreateFolder action creates a folder in the provided location.

Stability:

experimental

(experimental) The CreateSymlink action creates symbolic links from a given path to a target.

Stability:

experimental

DELETE_FILE

(experimental) The DeleteFile action deletes file(s) in the provided location.

Stability:

experimental

DELETE_FOLDER

(experimental) The DeleteFolder action deletes folders in the provided location.

Stability:

experimental

EXECUTE_BASH

(experimental) The ExecuteBash action runs bash scripts with inline bash commands.

Stability:

experimental

EXECUTE_BINARY

(experimental) The ExecuteBinary action runs a provided binary executable.

Stability:

experimental

EXECUTE_DOCUMENT

(experimental) The ExecuteDocument action allows running other component documents from within a given component.

Stability:

experimental

EXECUTE_POWERSHELL

(experimental) The ExecutePowershell action runs PowerShell scripts with inline PowerShell commands.

Stability:

experimental

INSTALL_MSI

(experimental) The InstallMSI action runs a Windows application with the provided MSI file.

Stability:

experimental

LIST_FILES

(experimental) The ListFiles action lists files in the provided folder.

Stability:

experimental

MOVE_FILE

(experimental) The MoveFile action moves files from a source to a destination.

Stability:

experimental

MOVE_FOLDER

(experimental) The MoveFolder action moves folders from a source to a destination.

Stability:

experimental

READ_FILE

(experimental) The ReadFile action reads the content of a text file.

Stability:

experimental

REBOOT

(experimental) The Reboot action reboots the instance.

Stability:

experimental

S3_DOWNLOAD

(experimental) The S3Download action downloads an Amazon S3 object/folder to a local destination.

Stability:

experimental

S3_UPLOAD

(experimental) The S3Upload action uploads a file or folder to an Amazon S3 location.

Stability:

experimental

SET_FILE_ENCODING

(experimental) The SetFileEncoding action modifies the encoding property of an existing file.

Stability:

experimental

SET_FILE_OWNER

(experimental) The SetFileOwner action modifies the owner and group ownership properties of an existing file.

Stability:

experimental

SET_FILE_PERMISSIONS

(experimental) The SetFilePermissions action modifies the permission of an existing file.

Stability:

experimental

SET_FOLDER_OWNER

(experimental) The SetFolderOwner action recursively modifies the owner and group ownership properties of an existing folder.

Stability:

experimental

SET_FOLDER_PERMISSIONS

(experimental) The SetFolderPermissions action recursively modifies the permissions of an existing folder and all of its subfiles and subfolders.

Stability:

experimental

SET_REGISTRY

(experimental) The SetRegistry action sets the value for the specified Windows registry key.

Stability:

experimental

UNINSTALL_MSI

(experimental) The UninstallMSI action removes a Windows application using an MSI file.

Stability:

experimental

UPDATE_OS

(experimental) The UpdateOS action installs OS updates.

Stability:

experimental

WEB_DOWNLOAD

(experimental) The WebDownload action downloads files from a URL to a local destination.

Stability:

experimental