// *** 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
{
[DockerBuildResourceType("pulumi:providers:docker-build")]
public partial class Provider : global::Pulumi.ProviderResource
{
///
/// The build daemon's address.
///
[Output("host")]
public Output Host { get; private set; } = null!;
///
/// Create a Provider resource with the given unique name, arguments, and options.
///
///
/// The unique name of the resource
/// The arguments used to populate this resource's properties
/// A bag of options that control this resource's behavior
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
: base("docker-build", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
{
}
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input? id)
{
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
merged.Id = id ?? merged.Id;
return merged;
}
}
public sealed class ProviderArgs : global::Pulumi.ResourceArgs
{
///
/// The build daemon's address.
///
[Input("host")]
public Input? Host { get; set; }
[Input("registries", json: true)]
private InputList? _registries;
public InputList Registries
{
get => _registries ?? (_registries = new InputList());
set => _registries = value;
}
public ProviderArgs()
{
Host = Utilities.GetEnv("DOCKER_HOST") ?? "";
}
public static new ProviderArgs Empty => new ProviderArgs();
}
}