<filename>sdk/dotnet/Cam/GroupPolicyAttachments.cs// *** 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 GroupPolicyAttachments
    {
        public static Task<GroupPolicyAttachmentsResult> InvokeAsync(GroupPolicyAttachmentsArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<GroupPolicyAttachmentsResult>("tctest:Cam/groupPolicyAttachments:GroupPolicyAttachments", args ?? new GroupPolicyAttachmentsArgs(), options.WithDefaults());

        public static Output<GroupPolicyAttachmentsResult> Invoke(GroupPolicyAttachmentsInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<GroupPolicyAttachmentsResult>("tctest:Cam/groupPolicyAttachments:GroupPolicyAttachments", args ?? new GroupPolicyAttachmentsInvokeArgs(), options.WithDefaults());
    }


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

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

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

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

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

        public GroupPolicyAttachmentsArgs()
        {
        }
    }

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

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

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

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

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

        public GroupPolicyAttachmentsInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class GroupPolicyAttachmentsResult
    {
        public readonly int? CreateMode;
        public readonly string GroupId;
        public readonly ImmutableArray<Outputs.GroupPolicyAttachmentsGroupPolicyAttachmentListResult> GroupPolicyAttachmentLists;
        /// <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;

        [OutputConstructor]
        private GroupPolicyAttachmentsResult(
            int? createMode,

            string groupId,

            ImmutableArray<Outputs.GroupPolicyAttachmentsGroupPolicyAttachmentListResult> groupPolicyAttachmentLists,

            string id,

            string? policyId,

            string? policyType,

            string? resultOutputFile)
        {
            CreateMode = createMode;
            GroupId = groupId;
            GroupPolicyAttachmentLists = groupPolicyAttachmentLists;
            Id = id;
            PolicyId = policyId;
            PolicyType = policyType;
            ResultOutputFile = resultOutputFile;
        }
    }
}
