class EnvironmentUtils
Language | Type name |
---|---|
.NET | Amazon.CDK.CXAPI.EnvironmentUtils |
Go | github.com/aws/aws-cdk-go/awscdk/v2/cxapi#EnvironmentUtils |
Java | software.amazon.awscdk.cxapi.EnvironmentUtils |
Python | aws_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
Name | Description |
---|---|
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
Build an environment object from an account and region.
static parse(environment)
public static parse(environment: string): Environment
Parameters
- environment
string
Returns