EnvironmentPlaceholders

class aws_cdk.cx_api.EnvironmentPlaceholders

Bases: object

Placeholders which can be used manifests.

These can occur both in the Asset Manifest as well as the general Cloud Assembly manifest.

stability :stability: experimental

__init__()

stability :stability: experimental

Return type

None

Attributes

CURRENT_ACCOUNT = '${AWS::AccountId}'
CURRENT_PARTITION = '${AWS::Partition}'
CURRENT_REGION = '${AWS::Region}'

Static Methods

classmethod replace(object, *, account_id, partition, region)

Replace the environment placeholders in all strings found in a complex object.

Duplicated between cdk-assets and aws-cdk CLI because we don’t have a good single place to put it (they’re nominally independent tools).

Parameters
  • object (Any) –

  • account_id (str) – Return the account.

  • partition (str) – Return the partition.

  • region (str) – Return the region.

stability :stability: experimental

Return type

Any

classmethod replace_async(object, provider)

Like ‘replace’, but asynchronous.

Parameters

stability :stability: experimental

Return type

Any