Stage

class aws_rfdk.deadline.Stage(*, manifest, path)

Bases: object

Class for interacting with the Deadline stage directory.

The stage is a directory that conforms to a conventional structure that RFDK requires to deploy Deadline. It should contain a manifest file, the Deadline installers, and any supporting files required for building the Deadline container.

Note: Current version of RFDK supports Deadline v10.1.9.2 and later.

Constructs a Stage instance.

Parameters:
  • manifest (Union[Manifest, Dict[str, Any]]) – The parsed manifest that describes the contents of the stage directory.

  • path (str) – The path to the directory where Deadline is staged.

Methods

get_version(scope, id)

Creates a {@link Version} based on the manifest version.

Parameters:
  • scope (Construct) – The parent scope.

  • id (str) – The construct ID.

Return type:

IVersion

image_from_recipe(scope, id, recipe_name)

Construct a {@link DockerImageAsset} instance from a recipe in the Stage.

Parameters:
  • scope (Construct) – The scope for the {@link DockerImageAsset}.

  • id (str) – The construct ID of the {@link DockerImageAsset}.

  • recipe_name (str) – The name of the recipe.

Return type:

DockerImageAsset

Attributes

client_installer_path
dir_path

The path to the stage directory.

manifest

The parsed manifest within the stage directory.

Static Methods

classmethod from_directory(stage_path)

Returns a {@link Stage} loaded using the specified directory as the Docker build context and loads and uses the manifest named manifest.json in the directory.

Parameters:

stage_path (str) – The path to the Deadline stage directory.

Return type:

Stage

classmethod load_manifest(manifest_path)

Loads and parses the manifest file from a given path.

Parameters:

manifest_path (str) – The path to the manifest JSON file.

Return type:

Manifest