# DockerBuildSecret

Methods to build Docker CLI arguments for builds using secrets.

Docker BuildKit must be enabled to use build secrets.

- Source: [`core/lib/bundling.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/core/lib/bundling.ts#L18)
- Type last changed: v2.65.0 · 15 Feb 2023

## 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';
const dockerBuildSecret = new cdk.DockerBuildSecret();
```

## Initializer

```ts
new DockerBuildSecret()
```

## Methods

- `fromSrc(src: string): string` (static) — A Docker build secret from a file source.

  **Parameters**

  - `src` — The path to the source file, relative to the build directory.

  **Returns:** The latter half required for `--secret`
