<reponame>cloudy-sky-software/pulumi-scaleway-instances<gh_stars>0// *** 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.Volumes
{
    [ScalewayInstancesResourceType("scaleway-instances:volumes:Volume")]
    public partial class Volume : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The volume creation date (RFC 3339 format)
        /// </summary>
        [Output("creation_date")]
        public Output<string?> Creation_date { get; private set; } = null!;

        /// <summary>
        /// Show the volume NBD export URI
        /// </summary>
        [Output("export_uri")]
        public Output<string?> Export_uri { get; private set; } = null!;

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

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

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

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

        /// <summary>
        /// The server attached to the volume
        /// </summary>
        [Output("server")]
        public Output<Outputs.ServerProperties?> Server { get; private set; } = null!;

        /// <summary>
        /// The volume disk size (in bytes)
        /// </summary>
        [Output("size")]
        public Output<double?> Size { get; private set; } = null!;

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

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

        [Output("volume_type")]
        public Output<Pulumi.ScalewayInstances.Volumes.VolumeType?> Volume_type { get; private set; } = null!;

        /// <summary>
        /// The zone in which is the volume
        /// </summary>
        [Output("zone")]
        public Output<string?> Zone { get; private set; } = null!;


        /// <summary>
        /// Create a Volume 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 Volume(string name, VolumeArgs args, CustomResourceOptions? options = null)
            : base("scaleway-instances:volumes:Volume", name, args ?? new VolumeArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Volume(string name, Input<string> id, CustomResourceOptions? options = null)
            : base("scaleway-instances:volumes:Volume", 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 Volume 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 Volume Get(string name, Input<string> id, CustomResourceOptions? options = null)
        {
            return new Volume(name, id, options);
        }
    }

    public sealed class VolumeArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The volume name
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The volume organization ID
        /// </summary>
        [Input("organization")]
        public Input<string>? Organization { get; set; }

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

        /// <summary>
        /// The volume disk size (in bytes)
        /// </summary>
        [Input("size")]
        public Input<double>? Size { get; set; }

        [Input("tags")]
        private InputList<string>? _tags;

        /// <summary>
        /// The volume tags
        /// </summary>
        public InputList<string> Tags
        {
            get => _tags ?? (_tags = new InputList<string>());
            set => _tags = value;
        }

        [Input("volume_type")]
        public Input<Pulumi.ScalewayInstances.Volumes.VolumeType>? Volume_type { get; set; }

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

        public VolumeArgs()
        {
            Volume_type = Pulumi.ScalewayInstances.Volumes.VolumeType.LSsd;
        }
        public static new VolumeArgs Empty => new VolumeArgs();
    }
}
