// *** 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.Gaap
{
    public static class SecurityRules
    {
        public static Task<SecurityRulesResult> InvokeAsync(SecurityRulesArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.InvokeAsync<SecurityRulesResult>("tctest:Gaap/securityRules:SecurityRules", args ?? new SecurityRulesArgs(), options.WithDefaults());

        public static Output<SecurityRulesResult> Invoke(SecurityRulesInvokeArgs args, InvokeOptions? options = null)
            => Pulumi.Deployment.Instance.Invoke<SecurityRulesResult>("tctest:Gaap/securityRules:SecurityRules", args ?? new SecurityRulesInvokeArgs(), options.WithDefaults());
    }


    public sealed class SecurityRulesArgs : Pulumi.InvokeArgs
    {
        [Input("action")]
        public string? Action { get; set; }

        [Input("cidrIp")]
        public string? CidrIp { get; set; }

        [Input("name")]
        public string? Name { get; set; }

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

        [Input("port")]
        public string? Port { get; set; }

        [Input("protocol")]
        public string? Protocol { get; set; }

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

        [Input("ruleId")]
        public string? RuleId { get; set; }

        public SecurityRulesArgs()
        {
        }
    }

    public sealed class SecurityRulesInvokeArgs : Pulumi.InvokeArgs
    {
        [Input("action")]
        public Input<string>? Action { get; set; }

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

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

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

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

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

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

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

        public SecurityRulesInvokeArgs()
        {
        }
    }


    [OutputType]
    public sealed class SecurityRulesResult
    {
        public readonly string? Action;
        public readonly string? CidrIp;
        /// <summary>
        /// The provider-assigned unique ID for this managed resource.
        /// </summary>
        public readonly string Id;
        public readonly string? Name;
        public readonly string PolicyId;
        public readonly string? Port;
        public readonly string? Protocol;
        public readonly string? ResultOutputFile;
        public readonly string? RuleId;
        public readonly ImmutableArray<Outputs.SecurityRulesRuleResult> Rules;

        [OutputConstructor]
        private SecurityRulesResult(
            string? action,

            string? cidrIp,

            string id,

            string? name,

            string policyId,

            string? port,

            string? protocol,

            string? resultOutputFile,

            string? ruleId,

            ImmutableArray<Outputs.SecurityRulesRuleResult> rules)
        {
            Action = action;
            CidrIp = cidrIp;
            Id = id;
            Name = name;
            PolicyId = policyId;
            Port = port;
            Protocol = protocol;
            ResultOutputFile = resultOutputFile;
            RuleId = ruleId;
            Rules = rules;
        }
    }
}
