aws-cdk-lib.cx_api.EnvironmentUtils

class EnvironmentUtils

LanguageType name
.NETAmazon.CDK.CXAPI.EnvironmentUtils
Gogithub.com/aws/aws-cdk-go/awscdk/v2/cxapi#EnvironmentUtils
Javasoftware.amazon.awscdk.cxapi.EnvironmentUtils
Pythonaws_cdk.cx_api.EnvironmentUtils
TypeScript (source)aws-cdk-lib » cx_api » EnvironmentUtils

Example

// 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 environmentUtils = new cx_api.EnvironmentUtils();

Initializer

new EnvironmentUtils()

Methods

NameDescription
static format(account, region)Format an environment string from an account and region.
static make(account, region)Build an environment object from an account and region.
static parse(environment)

static format(account, region)

public static format(account: string, region: string): string

Parameters

  • account string
  • region string

Returns

  • string

Format an environment string from an account and region.


static make(account, region)

public static make(account: string, region: string): Environment

Parameters

  • account string
  • region string

Returns

  • Environment

Build an environment object from an account and region.


static parse(environment)

public static parse(environment: string): Environment

Parameters

  • environment string

Returns

  • Environment