<filename>sdk/dotnet/EipAnycast/AnycastEipAddress.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.AliCloud.EipAnycast
{
    /// <summary>
    /// Provides a Eipanycast Anycast Eip Address resource.
    /// 
    /// For information about Eipanycast Anycast Eip Address and how to use it, see [What is Anycast Eip Address](https://help.aliyun.com/document_detail/169284.html).
    /// 
    /// &gt; **NOTE:** Available in v1.113.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var example = new AliCloud.EipAnycast.AnycastEipAddress("example", new()
    ///     {
    ///         ServiceLocation = "international",
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// Eipanycast Anycast Eip Address can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:eipanycast/anycastEipAddress:AnycastEipAddress example &lt;id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:eipanycast/anycastEipAddress:AnycastEipAddress")]
    public partial class AnycastEipAddress : global::Pulumi.CustomResource
    {
        /// <summary>
        /// Anycast EIP instance name.
        /// </summary>
        [Output("anycastEipAddressName")]
        public Output<string?> AnycastEipAddressName { get; private set; } = null!;

        /// <summary>
        /// The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is `PayByBandwidth` and the default value is 200.
        /// </summary>
        [Output("bandwidth")]
        public Output<int> Bandwidth { get; private set; } = null!;

        /// <summary>
        /// Anycast EIP instance description.
        /// </summary>
        [Output("description")]
        public Output<string?> Description { get; private set; } = null!;

        /// <summary>
        /// The billing method of Anycast EIP instance. `PayByBandwidth`: refers to the method of billing based on traffic. Valid value: `PayByBandwidth`.
        /// </summary>
        [Output("internetChargeType")]
        public Output<string?> InternetChargeType { get; private set; } = null!;

        /// <summary>
        /// The payment model of Anycast EIP instance. `PayAsYouGo`: Refers to the post-paid mode. Valid value: `PayAsYouGo`. Default value is `PayAsYouGo`.
        /// </summary>
        [Output("paymentType")]
        public Output<string?> PaymentType { get; private set; } = null!;

        /// <summary>
        /// Anycast EIP instance access area. `international`: Refers to areas outside of Mainland China.
        /// </summary>
        [Output("serviceLocation")]
        public Output<string> ServiceLocation { get; private set; } = null!;

        /// <summary>
        /// The IP status.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;


        /// <summary>
        /// Create a AnycastEipAddress 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 AnycastEipAddress(string name, AnycastEipAddressArgs args, CustomResourceOptions? options = null)
            : base("alicloud:eipanycast/anycastEipAddress:AnycastEipAddress", name, args ?? new AnycastEipAddressArgs(), MakeResourceOptions(options, ""))
        {
        }

        private AnycastEipAddress(string name, Input<string> id, AnycastEipAddressState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:eipanycast/anycastEipAddress:AnycastEipAddress", 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/rhysmdnz/pulumi-alicloud",
            };
            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 AnycastEipAddress 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 AnycastEipAddress Get(string name, Input<string> id, AnycastEipAddressState? state = null, CustomResourceOptions? options = null)
        {
            return new AnycastEipAddress(name, id, state, options);
        }
    }

    public sealed class AnycastEipAddressArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Anycast EIP instance name.
        /// </summary>
        [Input("anycastEipAddressName")]
        public Input<string>? AnycastEipAddressName { get; set; }

        /// <summary>
        /// The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is `PayByBandwidth` and the default value is 200.
        /// </summary>
        [Input("bandwidth")]
        public Input<int>? Bandwidth { get; set; }

        /// <summary>
        /// Anycast EIP instance description.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The billing method of Anycast EIP instance. `PayByBandwidth`: refers to the method of billing based on traffic. Valid value: `PayByBandwidth`.
        /// </summary>
        [Input("internetChargeType")]
        public Input<string>? InternetChargeType { get; set; }

        /// <summary>
        /// The payment model of Anycast EIP instance. `PayAsYouGo`: Refers to the post-paid mode. Valid value: `PayAsYouGo`. Default value is `PayAsYouGo`.
        /// </summary>
        [Input("paymentType")]
        public Input<string>? PaymentType { get; set; }

        /// <summary>
        /// Anycast EIP instance access area. `international`: Refers to areas outside of Mainland China.
        /// </summary>
        [Input("serviceLocation", required: true)]
        public Input<string> ServiceLocation { get; set; } = null!;

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

    public sealed class AnycastEipAddressState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Anycast EIP instance name.
        /// </summary>
        [Input("anycastEipAddressName")]
        public Input<string>? AnycastEipAddressName { get; set; }

        /// <summary>
        /// The peak bandwidth of the Anycast EIP instance, in Mbps. It can not be changed when the internet_charge_type is `PayByBandwidth` and the default value is 200.
        /// </summary>
        [Input("bandwidth")]
        public Input<int>? Bandwidth { get; set; }

        /// <summary>
        /// Anycast EIP instance description.
        /// </summary>
        [Input("description")]
        public Input<string>? Description { get; set; }

        /// <summary>
        /// The billing method of Anycast EIP instance. `PayByBandwidth`: refers to the method of billing based on traffic. Valid value: `PayByBandwidth`.
        /// </summary>
        [Input("internetChargeType")]
        public Input<string>? InternetChargeType { get; set; }

        /// <summary>
        /// The payment model of Anycast EIP instance. `PayAsYouGo`: Refers to the post-paid mode. Valid value: `PayAsYouGo`. Default value is `PayAsYouGo`.
        /// </summary>
        [Input("paymentType")]
        public Input<string>? PaymentType { get; set; }

        /// <summary>
        /// Anycast EIP instance access area. `international`: Refers to areas outside of Mainland China.
        /// </summary>
        [Input("serviceLocation")]
        public Input<string>? ServiceLocation { get; set; }

        /// <summary>
        /// The IP status.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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