class DockerBuildSecret
Language | Type name |
---|---|
.NET | Amazon.CDK.DockerBuildSecret |
Go | github.com/aws/aws-cdk-go/awscdk/v2#DockerBuildSecret |
Java | software.amazon.awscdk.DockerBuildSecret |
Python | aws_cdk.DockerBuildSecret |
TypeScript (source) | aws-cdk-lib » DockerBuildSecret |
Methods to build Docker CLI arguments for builds using secrets.
Docker BuildKit must be enabled to use build secrets.
See also: https://docs.docker.com/build/buildkit/
Example
// 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
new DockerBuildSecret()
Methods
Name | Description |
---|---|
static from | A Docker build secret from a file source. |
Src(src)
static frompublic static fromSrc(src: string): string
Parameters
- src
string
— The path to the source file, relative to the build directory.
Returns
string
A Docker build secret from a file source.