<gh_stars>0// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** 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;
using Pulumi;

namespace luxifer.Scaleway
{
    public static class GetInstanceSnapshot
    {
        /// <summary>
        /// Gets information about an instance snapshot.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byName = Scaleway.GetInstanceSnapshot.Invoke(new()
        ///     {
        ///         Name = "my-snapshot-name",
        ///     });
        /// 
        ///     var byId = Scaleway.GetInstanceSnapshot.Invoke(new()
        ///     {
        ///         SnapshotId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInstanceSnapshotResult> InvokeAsync(GetInstanceSnapshotArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstanceSnapshotResult>("scaleway:index/getInstanceSnapshot:getInstanceSnapshot", args ?? new GetInstanceSnapshotArgs(), options.WithDefaults());

        /// <summary>
        /// Gets information about an instance snapshot.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var byName = Scaleway.GetInstanceSnapshot.Invoke(new()
        ///     {
        ///         Name = "my-snapshot-name",
        ///     });
        /// 
        ///     var byId = Scaleway.GetInstanceSnapshot.Invoke(new()
        ///     {
        ///         SnapshotId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInstanceSnapshotResult> Invoke(GetInstanceSnapshotInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstanceSnapshotResult>("scaleway:index/getInstanceSnapshot:getInstanceSnapshot", args ?? new GetInstanceSnapshotInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstanceSnapshotArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The snapshot name.
        /// Only one of `name` and `snapshot_id` should be specified.
        /// </summary>
        [Input("name")]
        public string? Name { get; set; }

        /// <summary>
        /// The snapshot id.
        /// Only one of `name` and `snapshot_id` should be specified.
        /// </summary>
        [Input("snapshotId")]
        public string? SnapshotId { get; set; }

        /// <summary>
        /// `zone`) The zone in which the snapshot exists.
        /// </summary>
        [Input("zone")]
        public string? Zone { get; set; }

        public GetInstanceSnapshotArgs()
        {
        }
        public static new GetInstanceSnapshotArgs Empty => new GetInstanceSnapshotArgs();
    }

    public sealed class GetInstanceSnapshotInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The snapshot name.
        /// Only one of `name` and `snapshot_id` should be specified.
        /// </summary>
        [Input("name")]
        public Input<string>? Name { get; set; }

        /// <summary>
        /// The snapshot id.
        /// Only one of `name` and `snapshot_id` should be specified.
        /// </summary>
        [Input("snapshotId")]
        public Input<string>? SnapshotId { get; set; }

        /// <summary>
        /// `zone`) The zone in which the snapshot exists.
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

        public GetInstanceSnapshotInvokeArgs()
        {
        }
        public static new GetInstanceSnapshotInvokeArgs Empty => new GetInstanceSnapshotInvokeArgs();
    }


    [OutputType]
    public sealed class GetInstanceSnapshotResult
    {
        public readonly string CreatedAt;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.GetInstanceSnapshotImportResult> Imports;
        public readonly string? Name;
        public readonly string OrganizationId;
        public readonly string ProjectId;
        public readonly int SizeInGb;
        public readonly string? SnapshotId;
        public readonly ImmutableArray<string> Tags;
        public readonly string Type;
        public readonly string VolumeId;
        public readonly string? Zone;

        [OutputConstructor]
        private GetInstanceSnapshotResult(
            string createdAt,

            string id,

            ImmutableArray<Outputs.GetInstanceSnapshotImportResult> imports,

            string? name,

            string organizationId,

            string projectId,

            int sizeInGb,

            string? snapshotId,

            ImmutableArray<string> tags,

            string type,

            string volumeId,

            string? zone)
        {
            CreatedAt = createdAt;
            Id = id;
            Imports = imports;
            Name = name;
            OrganizationId = organizationId;
            ProjectId = projectId;
            SizeInGb = sizeInGb;
            SnapshotId = snapshotId;
            Tags = tags;
            Type = type;
            VolumeId = volumeId;
            Zone = zone;
        }
    }
}
