<reponame>luxifer/pulumi-scaleway// *** 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 GetRdbAcl
    {
        /// <summary>
        /// Gets information about the RDB instance network Access Control List.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myAcl = Scaleway.GetRdbAcl.Invoke(new()
        ///     {
        ///         InstanceId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetRdbAclResult> InvokeAsync(GetRdbAclArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetRdbAclResult>("scaleway:index/getRdbAcl:getRdbAcl", args ?? new GetRdbAclArgs(), options.WithDefaults());

        /// <summary>
        /// Gets information about the RDB instance network Access Control List.
        /// 
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// 
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Scaleway = Pulumi.Scaleway;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var myAcl = Scaleway.GetRdbAcl.Invoke(new()
        ///     {
        ///         InstanceId = "11111111-1111-1111-1111-111111111111",
        ///     });
        /// 
        /// });
        /// ```
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetRdbAclResult> Invoke(GetRdbAclInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetRdbAclResult>("scaleway:index/getRdbAcl:getRdbAcl", args ?? new GetRdbAclInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetRdbAclArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The RDB instance ID.
        /// </summary>
        [Input("instanceId", required: true)]
        public string InstanceId { get; set; } = null!;

        /// <summary>
        /// `region`) The region in which the Database Instance should be created.
        /// </summary>
        [Input("region")]
        public string? Region { get; set; }

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

    public sealed class GetRdbAclInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// The RDB instance ID.
        /// </summary>
        [Input("instanceId", required: true)]
        public Input<string> InstanceId { get; set; } = null!;

        /// <summary>
        /// `region`) The region in which the Database Instance should be created.
        /// </summary>
        [Input("region")]
        public Input<string>? Region { get; set; }

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


    [OutputType]
    public sealed class GetRdbAclResult
    {
        /// <summary>
        /// A list of ACLs rules (structure is described below)
        /// </summary>
        public readonly ImmutableArray<Outputs.GetRdbAclAclRuleResult> AclRules;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string InstanceId;
        public readonly string? Region;

        [OutputConstructor]
        private GetRdbAclResult(
            ImmutableArray<Outputs.GetRdbAclAclRuleResult> aclRules,

            string id,

            string instanceId,

            string? region)
        {
            AclRules = aclRules;
            Id = id;
            InstanceId = instanceId;
            Region = region;
        }
    }
}
