// *** 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 Lbrlabs.PulumiPackage.Ovh.Domain
{
    /// <summary>
    /// Provides a OVHcloud domain zone redirection.
    /// 
    /// ## Example Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using System.Linq;
    /// using Pulumi;
    /// using Ovh = Lbrlabs.PulumiPackage.Ovh;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     // Add a redirection to a sub-domain
    ///     var test = new Ovh.Domain.ZoneRedirection("test", new()
    ///     {
    ///         Subdomain = "test",
    ///         Target = "http://www.ovh",
    ///         Type = "visiblePermanent",
    ///         Zone = "testdemo.ovh",
    ///     });
    /// 
    /// });
    /// ```
    /// </summary>
    [OvhResourceType("ovh:Domain/zoneRedirection:ZoneRedirection")]
    public partial class ZoneRedirection : global::Pulumi.CustomResource
    {
        /// <summary>
        /// A description of this redirection
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// Keywords to describe this redirection
        /// </summary>
        [Output("keywords")]
        public Output<string?> Keywords { get; private set; } = null!;

        /// <summary>
        /// The name of the redirection
        /// </summary>
        [Output("subdomain")]
        public Output<string?> Subdomain { get; private set; } = null!;

        /// <summary>
        /// The value of the redirection
        /// </summary>
        [Output("target")]
        public Output<string> Target { get; private set; } = null!;

        /// <summary>
        /// Title of this redirection
        /// </summary>
        [Output("title")]
        public Output<string?> Title { get; private set; } = null!;

        /// <summary>
        /// The type of the redirection, with values:
        /// </summary>
        [Output("type")]
        public Output<string> Type { get; private set; } = null!;

        /// <summary>
        /// The domain to add the redirection to
        /// </summary>
        [Output("zone")]
        public Output<string> Zone { get; private set; } = null!;


        /// <summary>
        /// Create a ZoneRedirection 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 ZoneRedirection(string name, ZoneRedirectionArgs args, CustomResourceOptions? options = null)
            : base("ovh:Domain/zoneRedirection:ZoneRedirection", name, args ?? new ZoneRedirectionArgs(), MakeResourceOptions(options, ""))
        {
        }

        private ZoneRedirection(string name, Input<string> id, ZoneRedirectionState? state = null, CustomResourceOptions? options = null)
            : base("ovh:Domain/zoneRedirection:ZoneRedirection", 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/lbrlabs",
            };
            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 ZoneRedirection 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 ZoneRedirection Get(string name, Input<string> id, ZoneRedirectionState? state = null, CustomResourceOptions? options = null)
        {
            return new ZoneRedirection(name, id, state, options);
        }
    }

    public sealed class ZoneRedirectionArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// A description of this redirection
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Keywords to describe this redirection
        /// </summary>
        [Input("keywords")]
        public Input<string>? Keywords { get; set; }

        /// <summary>
        /// The name of the redirection
        /// </summary>
        [Input("subdomain")]
        public Input<string>? Subdomain { get; set; }

        /// <summary>
        /// The value of the redirection
        /// </summary>
        [Input("target", required: true)]
        public Input<string> Target { get; set; } = null!;

        /// <summary>
        /// Title of this redirection
        /// </summary>
        [Input("title")]
        public Input<string>? Title { get; set; }

        /// <summary>
        /// The type of the redirection, with values:
        /// </summary>
        [Input("type", required: true)]
        public Input<string> Type { get; set; } = null!;

        /// <summary>
        /// The domain to add the redirection to
        /// </summary>
        [Input("zone", required: true)]
        public Input<string> Zone { get; set; } = null!;

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

    public sealed class ZoneRedirectionState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// A description of this redirection
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// Keywords to describe this redirection
        /// </summary>
        [Input("keywords")]
        public Input<string>? Keywords { get; set; }

        /// <summary>
        /// The name of the redirection
        /// </summary>
        [Input("subdomain")]
        public Input<string>? Subdomain { get; set; }

        /// <summary>
        /// The value of the redirection
        /// </summary>
        [Input("target")]
        public Input<string>? Target { get; set; }

        /// <summary>
        /// Title of this redirection
        /// </summary>
        [Input("title")]
        public Input<string>? Title { get; set; }

        /// <summary>
        /// The type of the redirection, with values:
        /// </summary>
        [Input("type")]
        public Input<string>? Type { get; set; }

        /// <summary>
        /// The domain to add the redirection to
        /// </summary>
        [Input("zone")]
        public Input<string>? Zone { get; set; }

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