Class DockerBuildAssetOptions
Options when creating an asset from a Docker build.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class DockerBuildAssetOptions : Object, IDockerBuildAssetOptions, IDockerBuildOptions
Syntax (vb)
Public Class DockerBuildAssetOptions
Inherits Object
Implements IDockerBuildAssetOptions, IDockerBuildOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var dockerBuildAssetOptions = new DockerBuildAssetOptions {
BuildArgs = new Dictionary<string, string> {
{ "buildArgsKey", "buildArgs" }
},
File = "file",
ImagePath = "imagePath",
OutputPath = "outputPath",
Platform = "platform"
};
Synopsis
Constructors
DockerBuildAssetOptions() |
Properties
BuildArgs | Build args. |
File | Name of the Dockerfile, must relative to the docker build path. |
ImagePath | The path in the Docker image where the asset is located after the build operation. |
OutputPath | The path on the local filesystem where the asset will be copied using |
Platform | Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+. |
Constructors
DockerBuildAssetOptions()
public DockerBuildAssetOptions()
Properties
BuildArgs
Build args.
public IDictionary<string, string> BuildArgs { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - no build args
File
Name of the Dockerfile, must relative to the docker build path.
public string File { get; set; }
Property Value
System.String
Remarks
Default: Dockerfile
ImagePath
The path in the Docker image where the asset is located after the build operation.
public string ImagePath { get; set; }
Property Value
System.String
Remarks
Default: /asset
OutputPath
The path on the local filesystem where the asset will be copied using docker cp
.
public string OutputPath { get; set; }
Property Value
System.String
Remarks
Default: - a unique temporary directory in the system temp directory
Platform
Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+.
public string Platform { get; set; }
Property Value
System.String
Remarks
Example value: linux/amd64
Default: - no platform specified