# AddFileAssetOptions

Options for the addFileAsset operation.

- Source: [`core/lib/stack-synthesizers/asset-manifest-builder.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/core/lib/stack-synthesizers/asset-manifest-builder.ts#L205)
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

TypeScript:

```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 addFileAssetOptions: cdk.AddFileAssetOptions = {
  displayName: 'displayName',
};
```

Python:

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

add_file_asset_options = cdk.AddFileAssetOptions(
    display_name="displayName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;

AddFileAssetOptions addFileAssetOptions = AddFileAssetOptions.builder()
        .displayName("displayName")
        .build();
```

C# / .NET:

```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 addFileAssetOptions = new AddFileAssetOptions {
    DisplayName = "displayName"
};
```

Golang:

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

addFileAssetOptions := &AddFileAssetOptions{
	DisplayName: jsii.String("displayName"),
}
```

## Properties

- `displayName`: string — A display name to associate with the asset.

  **Default:** No display name
