DockerBuildSecret
- class aws_cdk.DockerBuildSecret
Bases:
object
Methods to build Docker CLI arguments for builds using secrets.
Docker BuildKit must be enabled to use build secrets.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk as cdk docker_build_secret = cdk.DockerBuildSecret()
Static Methods
- classmethod from_src(src)
A Docker build secret from a file source.
- Parameters:
src (
str
) – The path to the source file, relative to the build directory.- Return type:
str
- Returns:
The latter half required for
--secret