UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 1.97 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopedAws=exports.Aws=void 0;const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cfn_reference_1=()=>{var tmp=require("./private/cfn-reference");return cfn_reference_1=()=>tmp,tmp},token_1=()=>{var tmp=require("./token");return token_1=()=>tmp,tmp};const AWS_ACCOUNTID="AWS::AccountId",AWS_URLSUFFIX="AWS::URLSuffix",AWS_NOTIFICATIONARNS="AWS::NotificationARNs",AWS_PARTITION="AWS::Partition",AWS_REGION="AWS::Region",AWS_STACKID="AWS::StackId",AWS_STACKNAME="AWS::StackName",AWS_NOVALUE="AWS::NoValue";class Aws{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.Aws",version:"2.233.0"};static ACCOUNT_ID=pseudoString(AWS_ACCOUNTID);static URL_SUFFIX=pseudoString(AWS_URLSUFFIX);static NOTIFICATION_ARNS=token_1().Token.asList({Ref:AWS_NOTIFICATIONARNS},{displayHint:AWS_NOTIFICATIONARNS});static PARTITION=pseudoString(AWS_PARTITION);static REGION=pseudoString(AWS_REGION);static STACK_ID=pseudoString(AWS_STACKID);static STACK_NAME=pseudoString(AWS_STACKNAME);static NO_VALUE=pseudoString(AWS_NOVALUE);constructor(){}}exports.Aws=Aws;class ScopedAws{scope;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.ScopedAws",version:"2.233.0"};constructor(scope){this.scope=scope}get accountId(){return this.asString(AWS_ACCOUNTID)}get urlSuffix(){return this.asString(AWS_URLSUFFIX)}get notificationArns(){return token_1().Token.asList(cfn_reference_1().CfnReference.forPseudo(AWS_NOTIFICATIONARNS,this.scope),{displayHint:AWS_NOTIFICATIONARNS})}get partition(){return this.asString(AWS_PARTITION)}get region(){return this.asString(AWS_REGION)}get stackId(){return this.asString(AWS_STACKID)}get stackName(){return this.asString(AWS_STACKNAME)}asString(name){return token_1().Token.asString(cfn_reference_1().CfnReference.forPseudo(name,this.scope),{displayHint:name})}}exports.ScopedAws=ScopedAws;function pseudoString(name){return token_1().Token.asString({Ref:name},{displayHint:name.replace("::",".")})}