// *** 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
{
    [TctestResourceType("tctest:Gaap/domainErrorPageInfo:DomainErrorPageInfo")]
    public partial class DomainErrorPageInfo : Pulumi.CustomResource
    {
        /// <summary>
        /// New response body.
        /// </summary>
        [Output("body")]
        public Output<string> Body { get; private set; } = null!;

        /// <summary>
        /// Response headers to be removed.
        /// </summary>
        [Output("clearHeaders")]
        public Output<ImmutableArray<string>> ClearHeaders { get; private set; } = null!;

        /// <summary>
        /// HTTP domain.
        /// </summary>
        [Output("domain")]
        public Output<string> Domain { get; private set; } = null!;

        /// <summary>
        /// Original error codes.
        /// </summary>
        [Output("errorCodes")]
        public Output<ImmutableArray<int>> ErrorCodes { get; private set; } = null!;

        /// <summary>
        /// ID of the layer7 listener.
        /// </summary>
        [Output("listenerId")]
        public Output<string> ListenerId { get; private set; } = null!;

        /// <summary>
        /// New error code.
        /// </summary>
        [Output("newErrorCode")]
        public Output<int?> NewErrorCode { get; private set; } = null!;

        /// <summary>
        /// Response headers to be set.
        /// </summary>
        [Output("setHeaders")]
        public Output<ImmutableDictionary<string, object>?> SetHeaders { get; private set; } = null!;


        /// <summary>
        /// Create a DomainErrorPageInfo 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 DomainErrorPageInfo(string name, DomainErrorPageInfoArgs args, CustomResourceOptions? options = null)
            : base("tctest:Gaap/domainErrorPageInfo:DomainErrorPageInfo", name, args ?? new DomainErrorPageInfoArgs(), MakeResourceOptions(options, ""))
        {
        }

        private DomainErrorPageInfo(string name, Input<string> id, DomainErrorPageInfoState? state = null, CustomResourceOptions? options = null)
            : base("tctest:Gaap/domainErrorPageInfo:DomainErrorPageInfo", name, state, MakeResourceOptions(options, id))
        {
        }

        private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
        {
            var defaultOptions = new CustomResourceOptions
            {
                Version = Utilities.Version,
            };
            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 DomainErrorPageInfo 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 DomainErrorPageInfo Get(string name, Input<string> id, DomainErrorPageInfoState? state = null, CustomResourceOptions? options = null)
        {
            return new DomainErrorPageInfo(name, id, state, options);
        }
    }

    public sealed class DomainErrorPageInfoArgs : Pulumi.ResourceArgs
    {
        /// <summary>
        /// New response body.
        /// </summary>
        [Input("body", required: true)]
        public Input<string> Body { get; set; } = null!;

        [Input("clearHeaders")]
        private InputList<string>? _clearHeaders;

        /// <summary>
        /// Response headers to be removed.
        /// </summary>
        public InputList<string> ClearHeaders
        {
            get => _clearHeaders ?? (_clearHeaders = new InputList<string>());
            set => _clearHeaders = value;
        }

        /// <summary>
        /// HTTP domain.
        /// </summary>
        [Input("domain", required: true)]
        public Input<string> Domain { get; set; } = null!;

        [Input("errorCodes", required: true)]
        private InputList<int>? _errorCodes;

        /// <summary>
        /// Original error codes.
        /// </summary>
        public InputList<int> ErrorCodes
        {
            get => _errorCodes ?? (_errorCodes = new InputList<int>());
            set => _errorCodes = value;
        }

        /// <summary>
        /// ID of the layer7 listener.
        /// </summary>
        [Input("listenerId", required: true)]
        public Input<string> ListenerId { get; set; } = null!;

        /// <summary>
        /// New error code.
        /// </summary>
        [Input("newErrorCode")]
        public Input<int>? NewErrorCode { get; set; }

        [Input("setHeaders")]
        private InputMap<object>? _setHeaders;

        /// <summary>
        /// Response headers to be set.
        /// </summary>
        public InputMap<object> SetHeaders
        {
            get => _setHeaders ?? (_setHeaders = new InputMap<object>());
            set => _setHeaders = value;
        }

        public DomainErrorPageInfoArgs()
        {
        }
    }

    public sealed class DomainErrorPageInfoState : Pulumi.ResourceArgs
    {
        /// <summary>
        /// New response body.
        /// </summary>
        [Input("body")]
        public Input<string>? Body { get; set; }

        [Input("clearHeaders")]
        private InputList<string>? _clearHeaders;

        /// <summary>
        /// Response headers to be removed.
        /// </summary>
        public InputList<string> ClearHeaders
        {
            get => _clearHeaders ?? (_clearHeaders = new InputList<string>());
            set => _clearHeaders = value;
        }

        /// <summary>
        /// HTTP domain.
        /// </summary>
        [Input("domain")]
        public Input<string>? Domain { get; set; }

        [Input("errorCodes")]
        private InputList<int>? _errorCodes;

        /// <summary>
        /// Original error codes.
        /// </summary>
        public InputList<int> ErrorCodes
        {
            get => _errorCodes ?? (_errorCodes = new InputList<int>());
            set => _errorCodes = value;
        }

        /// <summary>
        /// ID of the layer7 listener.
        /// </summary>
        [Input("listenerId")]
        public Input<string>? ListenerId { get; set; }

        /// <summary>
        /// New error code.
        /// </summary>
        [Input("newErrorCode")]
        public Input<int>? NewErrorCode { get; set; }

        [Input("setHeaders")]
        private InputMap<object>? _setHeaders;

        /// <summary>
        /// Response headers to be set.
        /// </summary>
        public InputMap<object> SetHeaders
        {
            get => _setHeaders ?? (_setHeaders = new InputMap<object>());
            set => _setHeaders = value;
        }

        public DomainErrorPageInfoState()
        {
        }
    }
}
