// *** WARNING: this file was generated by pulumi-language-dotnet. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.DockerBuild.Inputs
{
public sealed class CacheToRegistryArgs : global::Pulumi.ResourceArgs
{
///
/// The compression type to use.
///
[Input("compression")]
public Input? Compression { get; set; }
///
/// Compression level from 0 to 22.
///
[Input("compressionLevel")]
public Input? CompressionLevel { get; set; }
///
/// Forcefully apply compression.
///
[Input("forceCompression")]
public Input? ForceCompression { get; set; }
///
/// Ignore errors caused by failed cache exports.
///
[Input("ignoreError")]
public Input? IgnoreError { get; set; }
///
/// Export cache manifest as an OCI-compatible image manifest instead of a
/// manifest list. Requires `ociMediaTypes` to also be `true`.
///
/// Some registries like AWS ECR will not work with caching if this is
/// `false`.
///
/// Defaults to `false` to match Docker's default behavior.
///
[Input("imageManifest")]
public Input? ImageManifest { get; set; }
///
/// The cache mode to use. Defaults to `min`.
///
[Input("mode")]
public Input? Mode { get; set; }
///
/// Whether to use OCI media types in exported manifests. Defaults to
/// `true`.
///
[Input("ociMediaTypes")]
public Input? OciMediaTypes { get; set; }
///
/// Fully qualified name of the cache image to import.
///
[Input("ref", required: true)]
public Input Ref { get; set; } = null!;
public CacheToRegistryArgs()
{
Compression = Pulumi.DockerBuild.CompressionType.Gzip;
CompressionLevel = 0;
ForceCompression = false;
IgnoreError = false;
ImageManifest = false;
Mode = Pulumi.DockerBuild.CacheMode.Min;
OciMediaTypes = true;
}
public static new CacheToRegistryArgs Empty => new CacheToRegistryArgs();
}
}