Skip to content

EnvironmentPlaceholders

Placeholders which can be used manifests.

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

Initializers

import ros_cdk_cxapi
ros_cdk_cxapi.EnvironmentPlaceholders()
Name Type Description

Static Functions

Name Description
replace Replace the environment placeholders in all strings found in a complex object.
replace_async Like 'replace', but asynchronous.

replace

import ros_cdk_cxapi
ros_cdk_cxapi.EnvironmentPlaceholders.replace(
  object: typing.Any,
  account_id: str,
  region: str
)

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

objectRequired

  • Type: typing.Any

account_idRequired

  • Type: str

Return the account.


regionRequired

  • Type: str

Return the region.


replace_async

import ros_cdk_cxapi
ros_cdk_cxapi.EnvironmentPlaceholders.replace_async(
  object: typing.Any,
  provider: IEnvironmentPlaceholderProvider
)

Like 'replace', but asynchronous.

objectRequired

  • Type: typing.Any

providerRequired


Constants

Name Type Description
CURRENT_ACCOUNT str Insert this into the destination fields to be replaced with the current account.
CURRENT_REGION str Insert this into the destination fields to be replaced with the current region.

CURRENT_ACCOUNTRequired

CURRENT_ACCOUNT: str
  • Type: str

Insert this into the destination fields to be replaced with the current account.


CURRENT_REGIONRequired

CURRENT_REGION: str
  • Type: str

Insert this into the destination fields to be replaced with the current region.