Show / Hide Table of Contents

Class ContainerImageAssetCacheOption

Options for configuring the Docker cache backend.

Inheritance
object
ContainerImageAssetCacheOption
Implements
IContainerImageAssetCacheOption
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.CloudAssemblySchema
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContainerImageAssetCacheOption : IContainerImageAssetCacheOption
Syntax (vb)
Public Class ContainerImageAssetCacheOption 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

ContainerImageAssetCacheOption()

Options for configuring the Docker cache backend.

Properties

Params

Any parameters to pass into the docker cache backend configuration.

Type

The type of cache to use.

Constructors

ContainerImageAssetCacheOption()

Options for configuring the Docker cache backend.

public ContainerImageAssetCacheOption()
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" }
                }
            };

Properties

Params

Any parameters to pass into the docker cache backend configuration.

public IDictionary<string, string>? Params { get; set; }
Property Value

IDictionary<string, string>

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

string

Remarks

Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.

Default: - unspecified

Examples
"registry";

Implements

IContainerImageAssetCacheOption
Back to top Generated by DocFX