<reponame>Kagashino/pulumi-tctest// *** 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.Cam
{
    public static class RolePolicyAttachments
    {
        public static Task<RolePolicyAttachmentsResult> InvokeAsync(RolePolicyAttachmentsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<RolePolicyAttachmentsResult>("tctest:Cam/rolePolicyAttachments:RolePolicyAttachments", args ?? new RolePolicyAttachmentsArgs(), options.WithDefaults());

        public static Output<RolePolicyAttachmentsResult> Invoke(RolePolicyAttachmentsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<RolePolicyAttachmentsResult>("tctest:Cam/rolePolicyAttachments:RolePolicyAttachments", args ?? new RolePolicyAttachmentsInvokeArgs(), options.WithDefaults());
    }


    public sealed class RolePolicyAttachmentsArgs : Pulumi.InvokeArgs
    {
        [Input("createMode")]
        public int? CreateMode { get; set; }

        [Input("policyId")]
        public string? PolicyId { get; set; }

        [Input("policyType")]
        public string? PolicyType { get; set; }

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

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

        public RolePolicyAttachmentsArgs()
        {
        }
    }

    public sealed class RolePolicyAttachmentsInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("createMode")]
        public Input<int>? CreateMode { get; set; }

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

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

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

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

        public RolePolicyAttachmentsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class RolePolicyAttachmentsResult
    {
        public readonly int? CreateMode;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? PolicyId;
        public readonly string? PolicyType;
        public readonly string? ResultOutputFile;
        public readonly string RoleId;
        public readonly ImmutableArray<Outputs.RolePolicyAttachmentsRolePolicyAttachmentListResult> RolePolicyAttachmentLists;

        [OutputConstructor]
        private RolePolicyAttachmentsResult(
            int? createMode,

            string id,

            string? policyId,

            string? policyType,

            string? resultOutputFile,

            string roleId,

            ImmutableArray<Outputs.RolePolicyAttachmentsRolePolicyAttachmentListResult> rolePolicyAttachmentLists)
        {
            CreateMode = createMode;
            Id = id;
            PolicyId = policyId;
            PolicyType = policyType;
            ResultOutputFile = resultOutputFile;
            RoleId = roleId;
            RolePolicyAttachmentLists = rolePolicyAttachmentLists;
        }
    }
}
