Class ContainerImageAssetCacheOption
Options for configuring the Docker cache backend.
Inheritance
Implements
Namespace: Amazon.CDK.CloudAssemblySchema
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerImageAssetCacheOption : Object, IContainerImageAssetCacheOption
Syntax (vb)
Public Class ContainerImageAssetCacheOption
Inherits Object
Implements IContainerImageAssetCacheOption
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.Cloud_assembly_schema;
var containerImageAssetCacheOption = new ContainerImageAssetCacheOption {
Type = "type",
// the properties below are optional
Params = new Dictionary<string, string> {
{ "paramsKey", "params" }
}
};
Synopsis
Constructors
Container |
Properties
Params | Any parameters to pass into the docker cache backend configuration. |
Type | The type of cache to use. |
Constructors
ContainerImageAssetCacheOption()
public ContainerImageAssetCacheOption()
Properties
Params
Any parameters to pass into the docker cache backend configuration.
public IDictionary<string, string> Params { get; set; }
Property Value
System.
Remarks
Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
Default: {} No options provided
Examples
string branch;
IDictionary<string, object> params = new Dictionary<string, object> {
{ "ref", $"12345678.dkr.ecr.us-west-2.amazonaws.com/cache:{branch}" },
{ "mode", "max" }
};
Type
The type of cache to use.
public string Type { get; set; }
Property Value
System.
Remarks
Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
Default: - unspecified
Examples
"registry";