UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

121 lines 6.19 kB
"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.BandwidthPackage = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.cen.BandwidthPackage("foo", { * bandwidth: 2, * billingType: "PrePaid", * cenBandwidthPackageName: "acc-test-cen-bp", * description: "acc-test", * localGeographicRegionSetId: "China", * peerGeographicRegionSetId: "China", * period: 1, * periodUnit: "Month", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * }); * ``` * * ## Import * * CenBandwidthPackage can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:cen/bandwidthPackage:BandwidthPackage default cbp-4c2zaavbvh5f42**** * ``` */ class BandwidthPackage extends pulumi.CustomResource { /** * Get an existing BandwidthPackage 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 BandwidthPackage(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of BandwidthPackage. 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'] === BandwidthPackage.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accountId"] = state ? state.accountId : undefined; resourceInputs["bandwidth"] = state ? state.bandwidth : undefined; resourceInputs["billingType"] = state ? state.billingType : undefined; resourceInputs["businessStatus"] = state ? state.businessStatus : undefined; resourceInputs["cenBandwidthPackageId"] = state ? state.cenBandwidthPackageId : undefined; resourceInputs["cenBandwidthPackageName"] = state ? state.cenBandwidthPackageName : undefined; resourceInputs["cenIds"] = state ? state.cenIds : undefined; resourceInputs["creationTime"] = state ? state.creationTime : undefined; resourceInputs["deletedTime"] = state ? state.deletedTime : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["expiredTime"] = state ? state.expiredTime : undefined; resourceInputs["lineOperator"] = state ? state.lineOperator : undefined; resourceInputs["localGeographicRegionSetId"] = state ? state.localGeographicRegionSetId : undefined; resourceInputs["peerGeographicRegionSetId"] = state ? state.peerGeographicRegionSetId : undefined; resourceInputs["period"] = state ? state.period : undefined; resourceInputs["periodUnit"] = state ? state.periodUnit : undefined; resourceInputs["projectName"] = state ? state.projectName : undefined; resourceInputs["remainingBandwidth"] = state ? state.remainingBandwidth : undefined; resourceInputs["status"] = state ? state.status : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["updateTime"] = state ? state.updateTime : undefined; } else { const args = argsOrState; resourceInputs["bandwidth"] = args ? args.bandwidth : undefined; resourceInputs["billingType"] = args ? args.billingType : undefined; resourceInputs["cenBandwidthPackageName"] = args ? args.cenBandwidthPackageName : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["lineOperator"] = args ? args.lineOperator : undefined; resourceInputs["localGeographicRegionSetId"] = args ? args.localGeographicRegionSetId : undefined; resourceInputs["peerGeographicRegionSetId"] = args ? args.peerGeographicRegionSetId : undefined; resourceInputs["period"] = args ? args.period : undefined; resourceInputs["periodUnit"] = args ? args.periodUnit : undefined; resourceInputs["projectName"] = args ? args.projectName : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["accountId"] = undefined /*out*/; resourceInputs["businessStatus"] = undefined /*out*/; resourceInputs["cenBandwidthPackageId"] = undefined /*out*/; resourceInputs["cenIds"] = undefined /*out*/; resourceInputs["creationTime"] = undefined /*out*/; resourceInputs["deletedTime"] = undefined /*out*/; resourceInputs["expiredTime"] = undefined /*out*/; resourceInputs["remainingBandwidth"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updateTime"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(BandwidthPackage.__pulumiType, name, resourceInputs, opts); } } exports.BandwidthPackage = BandwidthPackage; /** @internal */ BandwidthPackage.__pulumiType = 'volcengine:cen/bandwidthPackage:BandwidthPackage'; //# sourceMappingURL=bandwidthPackage.js.map