// *** 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.Vpc
{
    /// <summary>
    /// Provides a VPC Ipv6 Internet Bandwidth resource.
    /// 
    /// For information about VPC Ipv6 Internet Bandwidth and how to use it, see [What is Ipv6 Internet Bandwidth](https://www.alibabacloud.com/help/doc-detail/102213.htm).
    /// 
    /// &gt; **NOTE:** Available in v1.143.0+.
    /// 
    /// ## Example Usage
    /// 
    /// Basic Usage
    /// 
    /// ```csharp
    /// using System.Collections.Generic;
    /// using Pulumi;
    /// using AliCloud = Pulumi.AliCloud;
    /// 
    /// return await Deployment.RunAsync(() =&gt; 
    /// {
    ///     var exampleInstances = AliCloud.Ecs.GetInstances.Invoke(new()
    ///     {
    ///         NameRegex = "ecs_with_ipv6_address",
    ///         Status = "Running",
    ///     });
    /// 
    ///     var exampleIpv6Addresses = AliCloud.Vpc.GetIpv6Addresses.Invoke(new()
    ///     {
    ///         AssociatedInstanceId = exampleInstances.Apply(getInstancesResult =&gt; getInstancesResult.Instances[0]?.Id),
    ///         Status = "Available",
    ///     });
    /// 
    ///     var exampleIpv6InternetBandwidth = new AliCloud.Vpc.Ipv6InternetBandwidth("exampleIpv6InternetBandwidth", new()
    ///     {
    ///         Ipv6AddressId = exampleIpv6Addresses.Apply(getIpv6AddressesResult =&gt; getIpv6AddressesResult.Addresses[0]?.Id),
    ///         Ipv6GatewayId = exampleIpv6Addresses.Apply(getIpv6AddressesResult =&gt; getIpv6AddressesResult.Addresses[0]?.Ipv6GatewayId),
    ///         InternetChargeType = "PayByBandwidth",
    ///         Bandwidth = 20,
    ///     });
    /// 
    /// });
    /// ```
    /// 
    /// ## Import
    /// 
    /// VPC Ipv6 Internet Bandwidth can be imported using the id, e.g.
    /// 
    /// ```sh
    ///  $ pulumi import alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth example &lt;id&gt;
    /// ```
    /// </summary>
    [AliCloudResourceType("alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth")]
    public partial class Ipv6InternetBandwidth : global::Pulumi.CustomResource
    {
        /// <summary>
        /// The amount of Internet bandwidth resources of the IPv6 address, Unit: `Mbit/s`. Valid values: `1` to `5000`. **NOTE:** If `internet_charge_type` is set to `PayByTraffic`, the amount of Internet bandwidth resources of the IPv6 address is limited by the specification of the IPv6 gateway. `Small` (default): specifies the Free edition and the Internet bandwidth is from `1` to `500` Mbit/s. `Medium`: specifies the Medium edition and the Internet bandwidth is from `1` to `1000` Mbit/s. `Large`: specifies the Large edition and the Internet bandwidth is from `1` to `2000` Mbit/s.
        /// </summary>
        [Output("bandwidth")]
        public Output<int> Bandwidth { get; private set; } = null!;

        /// <summary>
        /// The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values: `PayByBandwidth`, `PayByTraffic`.
        /// </summary>
        [Output("internetChargeType")]
        public Output<string> InternetChargeType { get; private set; } = null!;

        /// <summary>
        /// The ID of the IPv6 address.
        /// </summary>
        [Output("ipv6AddressId")]
        public Output<string> Ipv6AddressId { get; private set; } = null!;

        /// <summary>
        /// The ID of the IPv6 gateway.
        /// </summary>
        [Output("ipv6GatewayId")]
        public Output<string> Ipv6GatewayId { get; private set; } = null!;

        /// <summary>
        /// The status of the resource.Valid values:`Normal`, `FinancialLocked` and `SecurityLocked`.
        /// </summary>
        [Output("status")]
        public Output<string> Status { get; private set; } = null!;


        /// <summary>
        /// Create a Ipv6InternetBandwidth 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 Ipv6InternetBandwidth(string name, Ipv6InternetBandwidthArgs args, CustomResourceOptions? options = null)
            : base("alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth", name, args ?? new Ipv6InternetBandwidthArgs(), MakeResourceOptions(options, ""))
        {
        }

        private Ipv6InternetBandwidth(string name, Input<string> id, Ipv6InternetBandwidthState? state = null, CustomResourceOptions? options = null)
            : base("alicloud:vpc/ipv6InternetBandwidth:Ipv6InternetBandwidth", 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 Ipv6InternetBandwidth 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 Ipv6InternetBandwidth Get(string name, Input<string> id, Ipv6InternetBandwidthState? state = null, CustomResourceOptions? options = null)
        {
            return new Ipv6InternetBandwidth(name, id, state, options);
        }
    }

    public sealed class Ipv6InternetBandwidthArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The amount of Internet bandwidth resources of the IPv6 address, Unit: `Mbit/s`. Valid values: `1` to `5000`. **NOTE:** If `internet_charge_type` is set to `PayByTraffic`, the amount of Internet bandwidth resources of the IPv6 address is limited by the specification of the IPv6 gateway. `Small` (default): specifies the Free edition and the Internet bandwidth is from `1` to `500` Mbit/s. `Medium`: specifies the Medium edition and the Internet bandwidth is from `1` to `1000` Mbit/s. `Large`: specifies the Large edition and the Internet bandwidth is from `1` to `2000` Mbit/s.
        /// </summary>
        [Input("bandwidth", required: true)]
        public Input<int> Bandwidth { get; set; } = null!;

        /// <summary>
        /// The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values: `PayByBandwidth`, `PayByTraffic`.
        /// </summary>
        [Input("internetChargeType")]
        public Input<string>? InternetChargeType { get; set; }

        /// <summary>
        /// The ID of the IPv6 address.
        /// </summary>
        [Input("ipv6AddressId", required: true)]
        public Input<string> Ipv6AddressId { get; set; } = null!;

        /// <summary>
        /// The ID of the IPv6 gateway.
        /// </summary>
        [Input("ipv6GatewayId", required: true)]
        public Input<string> Ipv6GatewayId { get; set; } = null!;

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

    public sealed class Ipv6InternetBandwidthState : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// The amount of Internet bandwidth resources of the IPv6 address, Unit: `Mbit/s`. Valid values: `1` to `5000`. **NOTE:** If `internet_charge_type` is set to `PayByTraffic`, the amount of Internet bandwidth resources of the IPv6 address is limited by the specification of the IPv6 gateway. `Small` (default): specifies the Free edition and the Internet bandwidth is from `1` to `500` Mbit/s. `Medium`: specifies the Medium edition and the Internet bandwidth is from `1` to `1000` Mbit/s. `Large`: specifies the Large edition and the Internet bandwidth is from `1` to `2000` Mbit/s.
        /// </summary>
        [Input("bandwidth")]
        public Input<int>? Bandwidth { get; set; }

        /// <summary>
        /// The metering method of the Internet bandwidth resources of the IPv6 gateway. Valid values: `PayByBandwidth`, `PayByTraffic`.
        /// </summary>
        [Input("internetChargeType")]
        public Input<string>? InternetChargeType { get; set; }

        /// <summary>
        /// The ID of the IPv6 address.
        /// </summary>
        [Input("ipv6AddressId")]
        public Input<string>? Ipv6AddressId { get; set; }

        /// <summary>
        /// The ID of the IPv6 gateway.
        /// </summary>
        [Input("ipv6GatewayId")]
        public Input<string>? Ipv6GatewayId { get; set; }

        /// <summary>
        /// The status of the resource.Valid values:`Normal`, `FinancialLocked` and `SecurityLocked`.
        /// </summary>
        [Input("status")]
        public Input<string>? Status { get; set; }

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