# ExportValueOptions

Options for the `stack.exportValue()` method.

- Source: [`core/lib/stack.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/core/lib/stack.ts#L1929)
- Type last changed: v2.131.0 · 1 Mar 2024

## Example

TypeScript:

```ts
declare const stack: Stack;

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

Python:

```python
# stack: Stack

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

Java:

```java
Stack stack;

stack.exportValue(myBucket.getBucketName(), ExportValueOptions.builder()
        .name("TheAwesomeBucket")
        .description("The name of an S3 bucket")
        .build());
```

C# / .NET:

```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"
});
```

Golang:

```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

- `description`: string — The description of the outputs.

  **Default:** No description

- `name`: string — The name of the export to create.

  **Default:** A name is automatically chosen
