Interface IDockerBuildAssetOptions
Options when creating an asset from a Docker build.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDockerBuildAssetOptions : IDockerBuildOptions
Syntax (vb)
Public Interface IDockerBuildAssetOptions
Inherits 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" }
},
CacheDisabled = false,
CacheFrom = new [] { new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
} },
CacheTo = new DockerCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
},
File = "file",
ImagePath = "imagePath",
OutputPath = "outputPath",
Platform = "platform",
TargetStage = "targetStage"
};
Synopsis
Properties
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 |
Properties
ImagePath
The path in the Docker image where the asset is located after the build operation.
virtual string ImagePath { get; }
Property Value
System.String
Remarks
Default: /asset
OutputPath
The path on the local filesystem where the asset will be copied using docker cp
.
virtual string OutputPath { get; }
Property Value
System.String
Remarks
Default: - a unique temporary directory in the system temp directory