// *** 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.Region
{
    public static class GetEnumerationAws
    {
        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// 
        /// This is an example of how to lookup a region enumeration data source for AWS cloud account.
        /// 
        /// **Region enumeration data source for AWS, by the AWS account access key and secret key:**
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Region.GetEnumerationAws.Invoke(new()
        ///     {
        ///         AccessKey = @var.Access_key,
        ///         SecretKey = @var.Secret_key,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// The region enumeration data source for AWS cloud account supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Task<GetEnumerationAwsResult> InvokeAsync(GetEnumerationAwsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GetEnumerationAwsResult>("vra:region/getEnumerationAws:getEnumerationAws", args ?? new GetEnumerationAwsArgs(), options.WithDefaults());

        /// <summary>
        /// {{% examples %}}
        /// ## Example Usage
        /// {{% example %}}
        /// ### S
        /// 
        /// This is an example of how to lookup a region enumeration data source for AWS cloud account.
        /// 
        /// **Region enumeration data source for AWS, by the AWS account access key and secret key:**
        /// ```csharp
        /// using System.Collections.Generic;
        /// using Pulumi;
        /// using Vra = Pulumi.Vra;
        /// 
        /// return await Deployment.RunAsync(() =&gt; 
        /// {
        ///     var @this = Vra.Region.GetEnumerationAws.Invoke(new()
        ///     {
        ///         AccessKey = @var.Access_key,
        ///         SecretKey = @var.Secret_key,
        ///     });
        /// 
        /// });
        /// ```
        /// 
        /// The region enumeration data source for AWS cloud account supports the following arguments:
        /// {{% /example %}}
        /// {{% /examples %}}
        /// </summary>
        public static Output<GetEnumerationAwsResult> Invoke(GetEnumerationAwsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GetEnumerationAwsResult>("vra:region/getEnumerationAws:getEnumerationAws", args ?? new GetEnumerationAwsInvokeArgs(), options.WithDefaults());
    }


    public sealed class GetEnumerationAwsArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Aws Access key ID.
        /// </summary>
        [Input("accessKey", required: true)]
        public string AccessKey { get; set; } = null!;

        /// <summary>
        /// Aws Secret Access Key.
        /// </summary>
        [Input("secretKey", required: true)]
        public string SecretKey { get; set; } = null!;

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

    public sealed class GetEnumerationAwsInvokeArgs : global::Pulumi.InvokeArgs
    {
        /// <summary>
        /// Aws Access key ID.
        /// </summary>
        [Input("accessKey", required: true)]
        public Input<string> AccessKey { get; set; } = null!;

        /// <summary>
        /// Aws Secret Access Key.
        /// </summary>
        [Input("secretKey", required: true)]
        public Input<string> SecretKey { get; set; } = null!;

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


    [OutputType]
    public sealed class GetEnumerationAwsResult
    {
        public readonly string AccessKey;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        /// <summary>
        /// A set of Region names to enable provisioning on. Example: us-east-2, ap-northeast-1
        /// </summary>
        public readonly ImmutableArray<string> Regions;
        public readonly string SecretKey;

        [OutputConstructor]
        private GetEnumerationAwsResult(
            string accessKey,

            string id,

            ImmutableArray<string> regions,

            string secretKey)
        {
            AccessKey = accessKey;
            Id = id;
            Regions = regions;
            SecretKey = secretKey;
        }
    }
}
