// *** 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 Pulumiverse.Vra.Blockdevice
{
    public static class GetSnapshots
    {
        /// <summary>
        /// ## ---layout: "vra"
        /// 
        /// page_title: "VMware vRealize Automation: vra.blockdevice.getSnapshots"
        /// description: |-
        ///   Provides a data lookup for vra_block_device_snapshots.
        /// ---
        /// 
        /// # Data Source: vra.blockdevice.getSnapshots
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetSnapshotsResult> InvokeAsync(GetSnapshotsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetSnapshotsResult>("vra:blockdevice/getSnapshots:getSnapshots", args ?? new GetSnapshotsArgs(), options.WithDefaults());

        /// <summary>
        /// ## ---layout: "vra"
        /// 
        /// page_title: "VMware vRealize Automation: vra.blockdevice.getSnapshots"
        /// description: |-
        ///   Provides a data lookup for vra_block_device_snapshots.
        /// ---
        /// 
        /// # Data Source: vra.blockdevice.getSnapshots
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetSnapshotsResult> Invoke(GetSnapshotsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetSnapshotsResult>("vra:blockdevice/getSnapshots:getSnapshots", args ?? new GetSnapshotsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetSnapshotsArgs : global::Pulumi.InvokeArgs
    {
        [Input("blockDeviceId", required: true)]
        public string BlockDeviceId { get; set; } = null!;

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

    public sealed class GetSnapshotsInvokeArgs : global::Pulumi.InvokeArgs
    {
        [Input("blockDeviceId", required: true)]
        public Input<string> BlockDeviceId { get; set; } = null!;

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


    [OutputType]
    public sealed class GetSnapshotsResult
    {
        public readonly string BlockDeviceId;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly ImmutableArray<Outputs.GetSnapshotsSnapshotResult> Snapshots;

        [OutputConstructor]
        private GetSnapshotsResult(
            string blockDeviceId,

            string id,

            ImmutableArray<Outputs.GetSnapshotsSnapshotResult> snapshots)
        {
            BlockDeviceId = blockDeviceId;
            Id = id;
            Snapshots = snapshots;
        }
    }
}
