Skip to content
v2.277.0

ExportValueOptions Struct ​

Options for the stack.exportValue() method.

Example ​

ts
declare const stack: Stack;

stack.exportValue(myBucket.bucketName, {
  name: 'TheAwesomeBucket',
  description: 'The name of an S3 bucket',
});
python
# stack: Stack


stack.export_value(my_bucket.bucket_name,
    name="TheAwesomeBucket",
    description="The name of an S3 bucket"
)
java
Stack stack;


stack.exportValue(myBucket.getBucketName(), ExportValueOptions.builder()
        .name("TheAwesomeBucket")
        .description("The name of an S3 bucket")
        .build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
Stack stack;


stack.ExportValue(myBucket.BucketName, new ExportValueOptions {
    Name = "TheAwesomeBucket",
    Description = "The name of an S3 bucket"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var stack Stack


stack.ExportValue(myBucket.BucketName, &ExportValueOptions{
	Name: jsii.String("TheAwesomeBucket"),
	Description: jsii.String("The name of an S3 bucket"),
})

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
The description of the outputs.

Default: No description

nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
The name of the export to create.

Default: A name is automatically chosen