# FileAsset

A file asset.

- Source: [`node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/node_modules/@aws-cdk/cloud-assembly-schema/lib/assets/file-asset.d.ts#L5)
- Type last changed: v2.187.0 · 31 Mar 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cloud_assembly_schema } from 'aws-cdk-lib';

declare const assumeRoleAdditionalOptions: any;
const fileAsset: cloud_assembly_schema.FileAsset = {
  destinations: {
    destinationsKey: {
      bucketName: 'bucketName',
      objectKey: 'objectKey',

      // the properties below are optional
      assumeRoleAdditionalOptions: {
        assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
      },
      assumeRoleArn: 'assumeRoleArn',
      assumeRoleExternalId: 'assumeRoleExternalId',
      region: 'region',
    },
  },
  source: {
    executable: ['executable'],
    packaging: cloud_assembly_schema.FileAssetPackaging.FILE,
    path: 'path',
  },

  // the properties below are optional
  displayName: 'displayName',
};
```

## Properties

- `destinations`: { [key: string]: [FileDestination](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.FileDestination.html) } (required) — Destinations for this file asset.

- `displayName`: string — A display name for this asset.

  **Default:** The identifier will be used as the display name

- `source`: [FileSource](/cdk/api/v2/docs/aws-cdk-lib.cloud_assembly_schema.FileSource.html) (required) — Source description for file assets.
