VersionQuery

class aws_rfdk.deadline.VersionQuery(scope, id, *, version=None)

Bases: constructs.Construct

This class encapsulates information about a particular version of Thinkbox’s Deadline software.

Information such as the version number, and where to get installers for that version from Amazon S3.

The version of an official release of Deadline is always four numeric version components separated by dots. ex: 10.1.8.5. We refer to the components in this version, in order from left-to-right, as the major, minor, release, and patch versions. For example, Deadline version 10.1.8.5 is majorVersion 10, minorVersion 1, releaseVersion 8, and patchVersion 5.

All of the installers provided by an instance of this class must be for the same Deadline release (ex: 10.1.8), but the patch versions may differ between operating systems depending on the particulars of that release of Deadline. This class provides a simple way to query a version of Deadline prior to or during deployment of a CDK app.

You pass an instance of this class to various Deadline constructs in this library to tell those constructs which version of Deadline you want them to use, and be configured for.

Parameters
  • scope (Construct) –

  • id (str) –

  • version (Optional[str]) – String containing the complete or partial deadline version. Default: - the latest available version of deadline installer.

Methods

is_less_than(other)

Returns whether this version is less than another version.

Parameters

other (Version) –

Return type

bool

linux_full_version_string()

Construct the full version string for the linux patch release referenced in this version object.

This is constructed by joining the major, minor, release, and patch versions by dots.

Return type

str

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

expression

The expression used as input to the VersionQuery.

Return type

Optional[str]

linux_installers

The Linux installers for this version.

Inheritdoc

true

Return type

PlatformInstallers

major_version

The major version number.

Inheritdoc

true

Return type

Union[int, float]

minor_version

The minor version number.

Inheritdoc

true

Return type

Union[int, float]

node

The tree node.

Return type

Node

release_version

The release version number.

Inheritdoc

true

Return type

Union[int, float]

version_string

A string representation of the version using the best available information at synthesis-time.

This value is not guaranteed to be resolved, and is intended for output to CDK users.

Return type

str

Static Methods

classmethod is_construct(x)

Checks if x is a construct.

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

x (Any) – Any object.

Return type

bool

Returns

true if x is an object created from a class which extends Construct.