// *** WARNING: this file was generated by pulumigen. ***
// *** 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.ScalewayInstances.Images
{
    [ScalewayInstancesResourceType("scaleway-instances:images:Image")]
    public partial class Image : global::Pulumi.CustomResource
    {
        [Output("arch")]
        public Output<Pulumi.ScalewayInstances.Images.Arch?> Arch { get; private set; } = null!;

        /// <summary>
        /// (RFC 3339 format)
        /// </summary>
        [Output("creation_date")]
        public Output<string?> Creation_date { get; private set; } = null!;

        [Output("default_bootscript")]
        public Output<Outputs.ScalewayInstanceV1Bootscript?> Default_bootscript { get; private set; } = null!;

        [Output("extra_volumes")]
        public Output<ImmutableDictionary<string, Outputs.ScalewayInstanceV1Volume>?> Extra_volumes { get; private set; } = null!;

        [Output("from_server")]
        public Output<string?> From_server { get; private set; } = null!;

        /// <summary>
        /// (RFC 3339 format)
        /// </summary>
        [Output("modification_date")]
        public Output<string?> Modification_date { get; private set; } = null!;

        [Output("name")]
        public Output<string> Name { get; private set; } = null!;

        [Output("organization")]
        public Output<string?> Organization { get; private set; } = null!;

        [Output("project")]
        public Output<string> Project { get; private set; } = null!;

        [Output("public")]
        public Output<bool?> Public { get; private set; } = null!;

        [Output("root_volume")]
        public Output<Outputs.ScalewayInstanceV1VolumeSummary> Root_volume { get; private set; } = null!;

        [Output("state")]
        public Output<Pulumi.ScalewayInstances.Images.State?> State { get; private set; } = null!;

        [Output("tags")]
        public Output<ImmutableArray<string>> Tags { get; private set; } = null!;

        [Output("zone")]
        public Output<string?> Zone { get; private set; } = null!;


        /// <summary>
        /// Create a Image resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public Image(string name, ImageArgs args, CustomResourceOptions? options = null)
            : base("scaleway-instances:images:Image", name, args ?? new ImageArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Image(string name, Input<string> id, CustomResourceOptions? options = null)
            : base("scaleway-instances:images:Image", name, null, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/cloudy-sky-software/pulumi-scaleway-instances",
            };
            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;
        }
        /// <summary>
        /// Get an existing Image resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static Image Get(string name, Input<string> id, CustomResourceOptions? options = null)
        {
            return new Image(name, id, options);
        }
    }

    public sealed class ImageArgs : global::Pulumi.ResourceArgs
    {
        [Input("arch")]
        public Input<Pulumi.ScalewayInstances.Images.Arch>? Arch { get; set; }

        [Input("default_bootscript")]
        public Input<Inputs.ScalewayInstanceV1BootscriptArgs>? Default_bootscript { get; set; }

        [Input("extra_volumes")]
        private InputMap<Inputs.ScalewayInstanceV1VolumeArgs>? _extra_volumes;
        public InputMap<Inputs.ScalewayInstanceV1VolumeArgs> Extra_volumes
        {
            get => _extra_volumes ?? (_extra_volumes = new InputMap<Inputs.ScalewayInstanceV1VolumeArgs>());
            set => _extra_volumes = value;
        }

        [Input("name")]
        public Input<string>? Name { get; set; }

        [Input("organization")]
        public Input<string>? Organization { get; set; }

        [Input("project", required: true)]
        public Input<string> Project { get; set; } = null!;

        [Input("public")]
        public Input<bool>? Public { get; set; }

        [Input("root_volume", required: true)]
        public Input<Inputs.ScalewayInstanceV1VolumeSummaryArgs> Root_volume { get; set; } = null!;

        [Input("state")]
        public Input<Pulumi.ScalewayInstances.Images.State>? State { get; set; }

        [Input("tags")]
        private InputList<string>? _tags;
        public InputList<string> Tags
        {
            get => _tags ?? (_tags = new InputList<string>());
            set => _tags = value;
        }

        /// <summary>
        /// The zone you want to target
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

        public ImageArgs()
        {
            Arch = Pulumi.ScalewayInstances.Images.Arch.X8664;
            State = Pulumi.ScalewayInstances.Images.State.Available;
        }
        public static new ImageArgs Empty => new ImageArgs();
    }
}
