# BundlingFileAccess

The access mechanism used to make source files available to the bundling container and to return the bundling output back to the host.

- Source: [`core/lib/bundling.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/bundling.ts#L203)
- Type last changed: v2.63.0 · 31 Jan 2023

## Example

```ts
new go.GoFunction(this, 'GoFunction', {
 entry: 'app/cmd/api',
 bundling: {
      bundlingFileAccess: BundlingFileAccess.VOLUME_COPY,
  },
});
```

## Members

| Member | Description |
| --- | --- |
| `VOLUME_COPY` | Creates temporary volumes and containers to copy files from the host to the bundling container and back. |
| `BIND_MOUNT` | The source and output folders will be mounted as bind mount from the host system This is faster and simpler, but less portable than `VOLUME_COPY`. |

## Referenced by

- [`BundlingOptions`](/v2/docs/aws-cdk-lib.BundlingOptions).bundlingFileAccess
- [`BundlingOptions`](/v2/docs/aws-cdk-lib.aws_lambda_nodejs.BundlingOptions).bundlingFileAccess
- [`BundlingOptions`](/v2/docs/@aws-cdk_aws-lambda-go-alpha.BundlingOptions).bundlingFileAccess
- [`BundlingOptions`](/v2/docs/@aws-cdk_aws-lambda-python-alpha.BundlingOptions).bundlingFileAccess
