# EnvironmentPlaceholders

Placeholders which can be used manifests.

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

- Source: [`cx-api/lib/legacy-moved.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/cx-api/lib/legacy-moved.ts#L737)
- Type last changed: v2.238.0 · 9 Feb 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const environmentPlaceholders = new cx_api.EnvironmentPlaceholders();
```

## Initializer

```ts
new EnvironmentPlaceholders()
```

## Properties

- `CURRENT_ACCOUNT`: string (required) (static) — Insert this into the destination fields to be replaced with the current account.

- `CURRENT_PARTITION`: string (required) (static) — Insert this into the destination fields to be replaced with the current partition.

- `CURRENT_REGION`: string (required) (static) — Insert this into the destination fields to be replaced with the current region.

## Methods

- `replace(object: any, values: EnvironmentPlaceholderValues): any` (static) — 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).

- `replaceAsync(object: any, provider: IEnvironmentPlaceholderProvider): any` (static) — Like 'replace', but asynchronous.
