// *** 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 BucketObjects
    {
        public static Task<BucketObjectsResult> InvokeAsync(BucketObjectsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<BucketObjectsResult>("tctest:Cos/bucketObjects:BucketObjects", args ?? new BucketObjectsArgs(), options.WithDefaults());

        public static Output<BucketObjectsResult> Invoke(BucketObjectsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<BucketObjectsResult>("tctest:Cos/bucketObjects:BucketObjects", args ?? new BucketObjectsInvokeArgs(), options.WithDefaults());
    }


    public sealed class BucketObjectsArgs : Pulumi.InvokeArgs
    {
        [Input("bucket", required: true)]
        public string Bucket { get; set; } = null!;

        [Input("key", required: true)]
        public string Key { get; set; } = null!;

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

        public BucketObjectsArgs()
        {
        }
    }

    public sealed class BucketObjectsInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("bucket", required: true)]
        public Input<string> Bucket { get; set; } = null!;

        [Input("key", required: true)]
        public Input<string> Key { get; set; } = null!;

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

        public BucketObjectsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class BucketObjectsResult
    {
        public readonly string Bucket;
        public readonly string CacheControl;
        public readonly string ContentDisposition;
        public readonly string ContentEncoding;
        public readonly string ContentType;
        public readonly string Etag;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string Key;
        public readonly string LastModified;
        public readonly string? ResultOutputFile;
        public readonly string StorageClass;

        [OutputConstructor]
        private BucketObjectsResult(
            string bucket,

            string cacheControl,

            string contentDisposition,

            string contentEncoding,

            string contentType,

            string etag,

            string id,

            string key,

            string lastModified,

            string? resultOutputFile,

            string storageClass)
        {
            Bucket = bucket;
            CacheControl = cacheControl;
            ContentDisposition = contentDisposition;
            ContentEncoding = contentEncoding;
            ContentType = contentType;
            Etag = etag;
            Id = id;
            Key = key;
            LastModified = lastModified;
            ResultOutputFile = resultOutputFile;
            StorageClass = storageClass;
        }
    }
}
