// *** 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.Outputs { [OutputType] public sealed class CacheToRegistry { /// /// The compression type to use. /// public readonly Pulumi.DockerBuild.CompressionType? Compression; /// /// Compression level from 0 to 22. /// public readonly int? CompressionLevel; /// /// Forcefully apply compression. /// public readonly bool? ForceCompression; /// /// Ignore errors caused by failed cache exports. /// public readonly bool? IgnoreError; /// /// 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. /// public readonly bool? ImageManifest; /// /// The cache mode to use. Defaults to `min`. /// public readonly Pulumi.DockerBuild.CacheMode? Mode; /// /// Whether to use OCI media types in exported manifests. Defaults to /// `true`. /// public readonly bool? OciMediaTypes; /// /// Fully qualified name of the cache image to import. /// public readonly string Ref; [OutputConstructor] private CacheToRegistry( Pulumi.DockerBuild.CompressionType? compression, int? compressionLevel, bool? forceCompression, bool? ignoreError, bool? imageManifest, Pulumi.DockerBuild.CacheMode? mode, bool? ociMediaTypes, string @ref) { Compression = compression; CompressionLevel = compressionLevel; ForceCompression = forceCompression; IgnoreError = ignoreError; ImageManifest = imageManifest; Mode = mode; OciMediaTypes = ociMediaTypes; Ref = @ref; } } }