<reponame>pulumiverse/pulumi-fortios<filename>sdk/dotnet/FirewallSecurityPolicyseq.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;
using Pulumi;

namespace Pulumiverse.Fortios
{
    [FortiosResourceType("fortios:index/firewallSecurityPolicyseq:FirewallSecurityPolicyseq")]
    public partial class FirewallSecurityPolicyseq : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The alter position: should only be "before" or "after"
        /// </summary>
        [Output("alterPosition")]
        public Output<string> AlterPosition { get; private set; } = null!;

        /// <summary>
        /// Comment
        /// </summary>
        [Output("comment")]
        public Output<string?> Comment { get; private set; } = null!;

        /// <summary>
        /// Enable status detection for policy_src_id and policy_dst_id
        /// </summary>
        [Output("enableStateChecking")]
        public Output<bool?> EnableStateChecking { get; private set; } = null!;

        /// <summary>
        /// The dest policy id which you want to alter
        /// </summary>
        [Output("policyDstId")]
        public Output<int> PolicyDstId { get; private set; } = null!;

        /// <summary>
        /// The policy id which you want to alter
        /// </summary>
        [Output("policySrcId")]
        public Output<int> PolicySrcId { get; private set; } = null!;

        [Output("statePolicyLists")]
        public Output<ImmutableArray<Outputs.FirewallSecurityPolicyseqStatePolicyList>> StatePolicyLists { get; private set; } = null!;

        [Output("statePolicySrcdstPos")]
        public Output<string?> StatePolicySrcdstPos { get; private set; } = null!;

        [Output("vdomparam")]
        public Output<string?> Vdomparam { get; private set; } = null!;


        /// <summary>
        /// Create a FirewallSecurityPolicyseq resource with the given unique name, arguments, and options.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resource</param>
        /// <param name="args">The arguments used to populate this resource's properties</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public FirewallSecurityPolicyseq(string name, FirewallSecurityPolicyseqArgs args, CustomResourceOptions? options = null)
            : base("fortios:index/firewallSecurityPolicyseq:FirewallSecurityPolicyseq", name, args ?? new FirewallSecurityPolicyseqArgs(), MakeResourceOptions(options, ""))
        {
        }

        private FirewallSecurityPolicyseq(string name, Input<string> id, FirewallSecurityPolicyseqState? state = null, CustomResourceOptions? options = null)
            : base("fortios:index/firewallSecurityPolicyseq:FirewallSecurityPolicyseq", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
                PluginDownloadURL = "github://api.github.com/pulumiverse/pulumi-fortios",
            };
            var merged = CustomResourceOptions.Merge(defaultOptions, options);
            // Override the ID if one was specified for consistency with other language SDKs.
            merged.Id = id ?? merged.Id;
            return merged;
        }
        /// <summary>
        /// Get an existing FirewallSecurityPolicyseq resource's state with the given name, ID, and optional extra
        /// properties used to qualify the lookup.
        /// </summary>
        ///
        /// <param name="name">The unique name of the resulting resource.</param>
        /// <param name="id">The unique provider ID of the resource to lookup.</param>
        /// <param name="state">Any extra arguments used during the lookup.</param>
        /// <param name="options">A bag of options that control this resource's behavior</param>
        public static FirewallSecurityPolicyseq Get(string name, Input<string> id, FirewallSecurityPolicyseqState? state = null, CustomResourceOptions? options = null)
        {
            return new FirewallSecurityPolicyseq(name, id, state, options);
        }
    }

    public sealed class FirewallSecurityPolicyseqArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The alter position: should only be "before" or "after"
        /// </summary>
        [Input("alterPosition", required: true)]
        public Input<string> AlterPosition { get; set; } = null!;

        /// <summary>
        /// Comment
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Enable status detection for policy_src_id and policy_dst_id
        /// </summary>
        [Input("enableStateChecking")]
        public Input<bool>? EnableStateChecking { get; set; }

        /// <summary>
        /// The dest policy id which you want to alter
        /// </summary>
        [Input("policyDstId", required: true)]
        public Input<int> PolicyDstId { get; set; } = null!;

        /// <summary>
        /// The policy id which you want to alter
        /// </summary>
        [Input("policySrcId", required: true)]
        public Input<int> PolicySrcId { get; set; } = null!;

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

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

        public FirewallSecurityPolicyseqArgs()
        {
        }
        public static new FirewallSecurityPolicyseqArgs Empty => new FirewallSecurityPolicyseqArgs();
    }

    public sealed class FirewallSecurityPolicyseqState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The alter position: should only be "before" or "after"
        /// </summary>
        [Input("alterPosition")]
        public Input<string>? AlterPosition { get; set; }

        /// <summary>
        /// Comment
        /// </summary>
        [Input("comment")]
        public Input<string>? Comment { get; set; }

        /// <summary>
        /// Enable status detection for policy_src_id and policy_dst_id
        /// </summary>
        [Input("enableStateChecking")]
        public Input<bool>? EnableStateChecking { get; set; }

        /// <summary>
        /// The dest policy id which you want to alter
        /// </summary>
        [Input("policyDstId")]
        public Input<int>? PolicyDstId { get; set; }

        /// <summary>
        /// The policy id which you want to alter
        /// </summary>
        [Input("policySrcId")]
        public Input<int>? PolicySrcId { get; set; }

        [Input("statePolicyLists")]
        private InputList<Inputs.FirewallSecurityPolicyseqStatePolicyListGetArgs>? _statePolicyLists;
        public InputList<Inputs.FirewallSecurityPolicyseqStatePolicyListGetArgs> StatePolicyLists
        {
            get => _statePolicyLists ?? (_statePolicyLists = new InputList<Inputs.FirewallSecurityPolicyseqStatePolicyListGetArgs>());
            set => _statePolicyLists = value;
        }

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

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

        public FirewallSecurityPolicyseqState()
        {
        }
        public static new FirewallSecurityPolicyseqState Empty => new FirewallSecurityPolicyseqState();
    }
}
