@alicloud/ros-cdk-cxapi
Version:
Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com
25 lines (24 loc) • 910 B
TypeScript
/**
* Models an ALIYUN execution environment, for use within the CDK toolkit.
*/
export interface Environment {
/** The arbitrary name of this environment (user-set, or at least user-meaningful) */
readonly name: string;
/** The ALIYUN account this environment deploys into */
readonly account: string;
/** The ALIYUN region name where this environment deploys into */
readonly region: string;
}
export declare const UNKNOWN_ACCOUNT = "unknown-account";
export declare const UNKNOWN_REGION = "unknown-region";
export declare class EnvironmentUtils {
static parse(environment: string): Environment;
/**
* Build an environment object from an account and region
*/
static make(account: string, region: string): Environment;
/**
* Format an environment string from an account and region
*/
static format(account: string, region: string): string;
}