<reponame>Dwonczykj/gember_deploy<filename>sdk/dotnet/Tencentcloud/Mongodb/GetInstanceBackups.cs<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 TencentCloudIAC.PulumiPackage.Tencentcloud.Mongodb
{
    public static class GetInstanceBackups
    {
        /// <summary>
        /// Use this data source to query detailed information of mongodb instance_backups
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var instanceBackups = Output.Create(Tencentcloud.Mongodb.GetInstanceBackups.InvokeAsync(new Tencentcloud.Mongodb.GetInstanceBackupsArgs
        ///         {
        ///             BackupMethod = 0,
        ///             InstanceId = "cmgo-9d0p6umb",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetInstanceBackupsResult> InvokeAsync(GetInstanceBackupsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetInstanceBackupsResult>("tencentcloud:Mongodb/getInstanceBackups:getInstanceBackups", args ?? new GetInstanceBackupsArgs(), options.WithDefaults());

        /// <summary>
        /// Use this data source to query detailed information of mongodb instance_backups
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using Pulumi;
        /// using Tencentcloud = Pulumi.Tencentcloud;
        /// 
        /// class MyStack : Stack
        /// {
        ///     public MyStack()
        ///     {
        ///         var instanceBackups = Output.Create(Tencentcloud.Mongodb.GetInstanceBackups.InvokeAsync(new Tencentcloud.Mongodb.GetInstanceBackupsArgs
        ///         {
        ///             BackupMethod = 0,
        ///             InstanceId = "cmgo-9d0p6umb",
        ///         }));
        ///     }
        /// 
        /// }
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetInstanceBackupsResult> Invoke(GetInstanceBackupsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetInstanceBackupsResult>("tencentcloud:Mongodb/getInstanceBackups:getInstanceBackups", args ?? new GetInstanceBackupsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetInstanceBackupsArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
        /// </summary>
        [Input("backupMethod")]
        public int? BackupMethod { get; set; }

        /// <summary>
        /// Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
        /// </summary>
        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        public GetInstanceBackupsArgs()
        {
        }
    }

    public sealed class GetInstanceBackupsInvokeArgs : Pulumi.InvokeArgs
    {
        /// <summary>
        /// Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
        /// </summary>
        [Input("backupMethod")]
        public Input<int>? BackupMethod { get; set; }

        /// <summary>
        /// Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// Used to save results.
        /// </summary>
        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        public GetInstanceBackupsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GetInstanceBackupsResult
    {
        /// <summary>
        /// backup list.
        /// </summary>
        public readonly ImmutableArray<Outputs.GetInstanceBackupsBackupListResult> BackupLists;
        /// <summary>
        /// Backup method.
        /// </summary>
        public readonly int? BackupMethod;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// Instance ID.
        /// </summary>
        public readonly string InstanceId;
        public readonly string? ResultOutputFile;

        [OutputConstructor]
        private GetInstanceBackupsResult(
            ImmutableArray<Outputs.GetInstanceBackupsBackupListResult> backupLists,

            int? backupMethod,

            string id,

            string instanceId,

            string? resultOutputFile)
        {
            BackupLists = backupLists;
            BackupMethod = backupMethod;
            Id = id;
            InstanceId = instanceId;
            ResultOutputFile = resultOutputFile;
        }
    }
}
