# AssetManifestFileDestination

The destination for a file asset, when it is given to the AssetManifestBuilder.

- Source: [`core/lib/stack-synthesizers/asset-manifest-builder.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0/packages/aws-cdk-lib/core/lib/stack-synthesizers/asset-manifest-builder.ts#L229)
- Type last changed: v2.45.0 · 6 Oct 2022

## 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';

declare const assumeRoleAdditionalOptions: any;
const assetManifestFileDestination: cdk.AssetManifestFileDestination = {
  bucketName: 'bucketName',

  // the properties below are optional
  bucketPrefix: 'bucketPrefix',
  role: {
    assumeRoleArn: 'assumeRoleArn',

    // the properties below are optional
    assumeRoleAdditionalOptions: {
      assumeRoleAdditionalOptionsKey: assumeRoleAdditionalOptions,
    },
    assumeRoleExternalId: 'assumeRoleExternalId',
  },
};
```

## Properties

- `bucketName`: string (required) — Bucket name where the file asset should be written.

- `bucketPrefix`: string = '' — Prefix to prepend to the asset hash.

- `role`: [RoleOptions](/cdk/api/v2/docs/aws-cdk-lib.RoleOptions.html) = current role — Role to use for uploading.
