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.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.cx_api as cx_api

environment_placeholders = cx_api.EnvironmentPlaceholders()

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.

Return type:

Any

classmethod replace_async(object, provider)

Like ‘replace’, but asynchronous.

Parameters:
Return type:

Any