// *** 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;

namespace Pulumi.Tctest.Cos
{
    public static class Buckets
    {
        public static Task<BucketsResult> InvokeAsync(BucketsArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<BucketsResult>("tctest:Cos/buckets:Buckets", args ?? new BucketsArgs(), options.WithDefaults());

        public static Output<BucketsResult> Invoke(BucketsInvokeArgs? args = null, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<BucketsResult>("tctest:Cos/buckets:Buckets", args ?? new BucketsInvokeArgs(), options.WithDefaults());
    }


    public sealed class BucketsArgs : Pulumi.InvokeArgs
    {
        [Input("bucketPrefix")]
        public string? BucketPrefix { get; set; }

        [Input("resultOutputFile")]
        public string? ResultOutputFile { get; set; }

        [Input("tags")]
        private Dictionary<string, object>? _tags;
        public Dictionary<string, object> Tags
        {
            get => _tags ?? (_tags = new Dictionary<string, object>());
            set => _tags = value;
        }

        public BucketsArgs()
        {
        }
    }

    public sealed class BucketsInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("bucketPrefix")]
        public Input<string>? BucketPrefix { get; set; }

        [Input("resultOutputFile")]
        public Input<string>? ResultOutputFile { get; set; }

        [Input("tags")]
        private InputMap<object>? _tags;
        public InputMap<object> Tags
        {
            get => _tags ?? (_tags = new InputMap<object>());
            set => _tags = value;
        }

        public BucketsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class BucketsResult
    {
        public readonly ImmutableArray<Outputs.BucketsBucketListResult> BucketLists;
        public readonly string? BucketPrefix;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? ResultOutputFile;
        public readonly ImmutableDictionary<string, object>? Tags;

        [OutputConstructor]
        private BucketsResult(
            ImmutableArray<Outputs.BucketsBucketListResult> bucketLists,

            string? bucketPrefix,

            string id,

            string? resultOutputFile,

            ImmutableDictionary<string, object>? tags)
        {
            BucketLists = bucketLists;
            BucketPrefix = bucketPrefix;
            Id = id;
            ResultOutputFile = resultOutputFile;
            Tags = tags;
        }
    }
}
