"use strict";
// *** 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! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ipv6AddressBandwidth = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as volcengine from "@pulumi/volcengine";
 * import * as volcengine from "@volcengine/pulumi";
 *
 * const dataEcs = volcengine.ecs.getInstances({
 *     ids: ["i-ycal1mtpucl8j0hjiihy"],
 * });
 * const dataIpv6 = dataEcs.then(dataEcs => volcengine.vpc.getIpv6Addresses({
 *     associatedInstanceId: dataEcs.instances?.[0]?.instanceId,
 * }));
 * const foo = new volcengine.vpc.Ipv6AddressBandwidth("foo", {
 *     ipv6Address: dataIpv6.then(dataIpv6 => dataIpv6.ipv6Addresses?.[0]?.ipv6Address),
 *     billingType: "PostPaidByBandwidth",
 *     bandwidth: 5,
 * });
 * ```
 *
 * ## Import
 *
 * Ipv6AddressBandwidth can be imported using the id, e.g.
 *
 * ```sh
 * $ pulumi import volcengine:vpc/ipv6AddressBandwidth:Ipv6AddressBandwidth default eip-2fede9fsgnr4059gp674m6ney
 * ```
 */
class Ipv6AddressBandwidth extends pulumi.CustomResource {
    /**
     * Get an existing Ipv6AddressBandwidth resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new Ipv6AddressBandwidth(name, state, Object.assign(Object.assign({}, opts), { id: id }));
    }
    /**
     * Returns true if the given object is an instance of Ipv6AddressBandwidth.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === Ipv6AddressBandwidth.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["allocationId"] = state ? state.allocationId : undefined;
            resourceInputs["bandwidth"] = state ? state.bandwidth : undefined;
            resourceInputs["billingType"] = state ? state.billingType : undefined;
            resourceInputs["businessStatus"] = state ? state.businessStatus : undefined;
            resourceInputs["creationTime"] = state ? state.creationTime : undefined;
            resourceInputs["deleteTime"] = state ? state.deleteTime : undefined;
            resourceInputs["instanceId"] = state ? state.instanceId : undefined;
            resourceInputs["instanceType"] = state ? state.instanceType : undefined;
            resourceInputs["ipv6Address"] = state ? state.ipv6Address : undefined;
            resourceInputs["isp"] = state ? state.isp : undefined;
            resourceInputs["lockReason"] = state ? state.lockReason : undefined;
            resourceInputs["networkType"] = state ? state.networkType : undefined;
            resourceInputs["overdueTime"] = state ? state.overdueTime : undefined;
            resourceInputs["status"] = state ? state.status : undefined;
            resourceInputs["tags"] = state ? state.tags : undefined;
            resourceInputs["updateTime"] = state ? state.updateTime : undefined;
        }
        else {
            const args = argsOrState;
            if ((!args || args.billingType === undefined) && !opts.urn) {
                throw new Error("Missing required property 'billingType'");
            }
            if ((!args || args.ipv6Address === undefined) && !opts.urn) {
                throw new Error("Missing required property 'ipv6Address'");
            }
            resourceInputs["bandwidth"] = args ? args.bandwidth : undefined;
            resourceInputs["billingType"] = args ? args.billingType : undefined;
            resourceInputs["ipv6Address"] = args ? args.ipv6Address : undefined;
            resourceInputs["tags"] = args ? args.tags : undefined;
            resourceInputs["allocationId"] = undefined /*out*/;
            resourceInputs["businessStatus"] = undefined /*out*/;
            resourceInputs["creationTime"] = undefined /*out*/;
            resourceInputs["deleteTime"] = undefined /*out*/;
            resourceInputs["instanceId"] = undefined /*out*/;
            resourceInputs["instanceType"] = undefined /*out*/;
            resourceInputs["isp"] = undefined /*out*/;
            resourceInputs["lockReason"] = undefined /*out*/;
            resourceInputs["networkType"] = undefined /*out*/;
            resourceInputs["overdueTime"] = undefined /*out*/;
            resourceInputs["status"] = undefined /*out*/;
            resourceInputs["updateTime"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        super(Ipv6AddressBandwidth.__pulumiType, name, resourceInputs, opts);
    }
}
exports.Ipv6AddressBandwidth = Ipv6AddressBandwidth;
/** @internal */
Ipv6AddressBandwidth.__pulumiType = 'volcengine:vpc/ipv6AddressBandwidth:Ipv6AddressBandwidth';
//# sourceMappingURL=ipv6AddressBandwidth.js.map