Skip to content
v2.273.0

ScopedAws Class ​

Accessor for scoped pseudo parameters.

These pseudo parameters are anchored to a stack somewhere in the construct tree, and their values will be exported automatically.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
const scopedAws = new cdk.ScopedAws(this);
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk

scoped_aws = cdk.ScopedAws(self)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

ScopedAws scopedAws = new ScopedAws(this);
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;

var scopedAws = new ScopedAws(this);
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"

scopedAws := cdk.NewScopedAws(this)

Initializer ​

ts
new ScopedAws(scope: Construct)
python
ScopedAws(scope: Construct)
java
new ScopedAws(Construct scope)
csharp
new ScopedAws(Construct scope)
go
NewScopedAws(Scope Construct)

Properties ​

accountIdstringaccount_idstraccountIdStringAccountIdstringAccountId*stringrequired#
notificationArnsstring[]notification_arnstyping.List[str]notificationArnsList<String>NotificationArnsstring[]NotificationArns*[]*stringrequired#
partitionstringpartitionstrpartitionStringPartitionstringPartition*stringrequired#
regionstringregionstrregionStringRegionstringRegion*stringrequired#
stackIdstringstack_idstrstackIdStringStackIdstringStackId*stringrequired#
stackNamestringstack_namestrstackNameStringStackNamestringStackName*stringrequired#
urlSuffixstringurl_suffixstrurlSuffixStringUrlSuffixstringUrlSuffix*stringrequired#