import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides cross-region communication bandwidth for Cloud Enterprise Network instances. You can allocate bandwidth to different inter-region connections. By creating a bandwidth package and assigning inter-region bandwidth, you enable connectivity between network instances in different regions. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const cENBandwidthPackageDemo = new volcenginecc.cen.BandwidthPackage("CENBandwidthPackageDemo", { * bandwidth: 3, * billingType: 4, * cenBandwidthPackageName: "ccapi-test", * cenIds: ["cen-2v73nw1h8a03k6x7exxxxx"], * description: "this is a cen test", * localGeographicRegionSetId: "China", * peerGeographicRegionSetId: "China", * projectName: "default", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:cen/bandwidthPackage:BandwidthPackage example "cen_bandwidth_package_id" * ``` */ export declare 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: string, id: pulumi.Input, state?: BandwidthPackageState, opts?: pulumi.CustomResourceOptions): BandwidthPackage; /** * 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: any): obj is BandwidthPackage; /** * Bandwidth peak of the bandwidth package. Value range: 2–10000 Mbps. Default: 2 Mbps. */ readonly bandwidth: pulumi.Output; /** * Billing status of the bandwidth package instance. 0: Creating 1: Running 3: Unsubscribed 4: Expired and stopped 5: Expired and recycled 8: Unsubscribed and stopped */ readonly billingStatus: pulumi.Output; /** * Billing method of the bandwidth package. Valid values: 1 (default): yearly/monthly subscription. 4: pay-as-you-go—95th percentile billing. */ readonly billingType: pulumi.Output; /** * Frozen status of the bandwidth package. Normal: normal. FinancialLocked: frozen. */ readonly businessStatus: pulumi.Output; /** * Bandwidth package ID. */ readonly cenBandwidthPackageId: pulumi.Output; /** * Name of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the bandwidth package ID. */ readonly cenBandwidthPackageName: pulumi.Output; /** * List of associated CEN instance IDs. */ readonly cenIds: pulumi.Output; /** * Creation time of the bandwidth package. */ readonly creationTime: pulumi.Output; /** * Deletion time of the bandwidth package. */ readonly deletedTime: pulumi.Output; /** * Description of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string. */ readonly description: pulumi.Output; /** * Expiration time of the bandwidth package. */ readonly expiredTime: pulumi.Output; /** * Carrier for cross-border bandwidth package lines. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are the same, this parameter is not supported. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are different, available values are: ChinaUnicom (default): China Unicom. */ readonly lineOperator: pulumi.Output; /** * Local geographic region ID for Cloud Enterprise Network communication. Available values: China: Chinese mainland. Asia: Asia-Pacific. */ readonly localGeographicRegionSetId: pulumi.Output; /** * Peer geographic region ID for Cloud Enterprise Network interconnection. Valid values: China: Chinese mainland. Asia: Asia-Pacific. */ readonly peerGeographicRegionSetId: pulumi.Output; /** * Purchase duration of the bandwidth package. Default is 1. Valid values: If PeriodUnit is Month, range is 1–9, 12, 24, and 36. If PeriodUnit is Year, range is 1–3. */ readonly period: pulumi.Output; /** * Billing cycle of the bandwidth package. Valid values: Month (default): month. Year: year. */ readonly periodUnit: pulumi.Output; /** * Name of the project to which the bandwidth package belongs. If not specified, defaults to 'default'. */ readonly projectName: pulumi.Output; /** * Recycle time after the bandwidth package instance expires. */ readonly reclaimTime: pulumi.Output; /** * Number of automatic renewals. Values include -1 and 1–100. Default is -1, which means unlimited automatic renewals. */ readonly remainRenewTimes: pulumi.Output; /** * Remaining bandwidth, measured in Mbps. */ readonly remainingBandwidth: pulumi.Output; /** * Duration of each automatic renewal, in months. Valid values: 1–3, 6, and 12. Default is 1. */ readonly renewPeriod: pulumi.Output; /** * Renewal type of the bandwidth package instance. Manual: Manual renewal. Auto: Automatic renewal. NoRenew: No renewal. */ readonly renewType: pulumi.Output; /** * Status of the bandwidth package. Creating: Being created. Deleting: Being deleted. Pending: In progress. Available: Unbound. InUse: Bound. */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Update time of the bandwidth package. */ readonly updateTime: pulumi.Output; /** * Create a BandwidthPackage resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BandwidthPackageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BandwidthPackage resources. */ export interface BandwidthPackageState { /** * Bandwidth peak of the bandwidth package. Value range: 2–10000 Mbps. Default: 2 Mbps. */ bandwidth?: pulumi.Input; /** * Billing status of the bandwidth package instance. 0: Creating 1: Running 3: Unsubscribed 4: Expired and stopped 5: Expired and recycled 8: Unsubscribed and stopped */ billingStatus?: pulumi.Input; /** * Billing method of the bandwidth package. Valid values: 1 (default): yearly/monthly subscription. 4: pay-as-you-go—95th percentile billing. */ billingType?: pulumi.Input; /** * Frozen status of the bandwidth package. Normal: normal. FinancialLocked: frozen. */ businessStatus?: pulumi.Input; /** * Bandwidth package ID. */ cenBandwidthPackageId?: pulumi.Input; /** * Name of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the bandwidth package ID. */ cenBandwidthPackageName?: pulumi.Input; /** * List of associated CEN instance IDs. */ cenIds?: pulumi.Input[]>; /** * Creation time of the bandwidth package. */ creationTime?: pulumi.Input; /** * Deletion time of the bandwidth package. */ deletedTime?: pulumi.Input; /** * Description of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string. */ description?: pulumi.Input; /** * Expiration time of the bandwidth package. */ expiredTime?: pulumi.Input; /** * Carrier for cross-border bandwidth package lines. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are the same, this parameter is not supported. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are different, available values are: ChinaUnicom (default): China Unicom. */ lineOperator?: pulumi.Input; /** * Local geographic region ID for Cloud Enterprise Network communication. Available values: China: Chinese mainland. Asia: Asia-Pacific. */ localGeographicRegionSetId?: pulumi.Input; /** * Peer geographic region ID for Cloud Enterprise Network interconnection. Valid values: China: Chinese mainland. Asia: Asia-Pacific. */ peerGeographicRegionSetId?: pulumi.Input; /** * Purchase duration of the bandwidth package. Default is 1. Valid values: If PeriodUnit is Month, range is 1–9, 12, 24, and 36. If PeriodUnit is Year, range is 1–3. */ period?: pulumi.Input; /** * Billing cycle of the bandwidth package. Valid values: Month (default): month. Year: year. */ periodUnit?: pulumi.Input; /** * Name of the project to which the bandwidth package belongs. If not specified, defaults to 'default'. */ projectName?: pulumi.Input; /** * Recycle time after the bandwidth package instance expires. */ reclaimTime?: pulumi.Input; /** * Number of automatic renewals. Values include -1 and 1–100. Default is -1, which means unlimited automatic renewals. */ remainRenewTimes?: pulumi.Input; /** * Remaining bandwidth, measured in Mbps. */ remainingBandwidth?: pulumi.Input; /** * Duration of each automatic renewal, in months. Valid values: 1–3, 6, and 12. Default is 1. */ renewPeriod?: pulumi.Input; /** * Renewal type of the bandwidth package instance. Manual: Manual renewal. Auto: Automatic renewal. NoRenew: No renewal. */ renewType?: pulumi.Input; /** * Status of the bandwidth package. Creating: Being created. Deleting: Being deleted. Pending: In progress. Available: Unbound. InUse: Bound. */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Update time of the bandwidth package. */ updateTime?: pulumi.Input; } /** * The set of arguments for constructing a BandwidthPackage resource. */ export interface BandwidthPackageArgs { /** * Bandwidth peak of the bandwidth package. Value range: 2–10000 Mbps. Default: 2 Mbps. */ bandwidth?: pulumi.Input; /** * Billing method of the bandwidth package. Valid values: 1 (default): yearly/monthly subscription. 4: pay-as-you-go—95th percentile billing. */ billingType?: pulumi.Input; /** * Name of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: period (.), underscore (_), and hyphen (-). Length must be between 1 and 128 characters. If not specified, defaults to the bandwidth package ID. */ cenBandwidthPackageName?: pulumi.Input; /** * List of associated CEN instance IDs. */ cenIds?: pulumi.Input[]>; /** * Description of the bandwidth package. Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), and Chinese period (。). Length limit: 0–255 characters. If not specified, defaults to an empty string. */ description?: pulumi.Input; /** * Carrier for cross-border bandwidth package lines. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are the same, this parameter is not supported. If LocalGeographicRegionSetId and PeerGeographicRegionSetId are different, available values are: ChinaUnicom (default): China Unicom. */ lineOperator?: pulumi.Input; /** * Local geographic region ID for Cloud Enterprise Network communication. Available values: China: Chinese mainland. Asia: Asia-Pacific. */ localGeographicRegionSetId: pulumi.Input; /** * Peer geographic region ID for Cloud Enterprise Network interconnection. Valid values: China: Chinese mainland. Asia: Asia-Pacific. */ peerGeographicRegionSetId: pulumi.Input; /** * Purchase duration of the bandwidth package. Default is 1. Valid values: If PeriodUnit is Month, range is 1–9, 12, 24, and 36. If PeriodUnit is Year, range is 1–3. */ period?: pulumi.Input; /** * Billing cycle of the bandwidth package. Valid values: Month (default): month. Year: year. */ periodUnit?: pulumi.Input; /** * Name of the project to which the bandwidth package belongs. If not specified, defaults to 'default'. */ projectName?: pulumi.Input; /** * Number of automatic renewals. Values include -1 and 1–100. Default is -1, which means unlimited automatic renewals. */ remainRenewTimes?: pulumi.Input; /** * Duration of each automatic renewal, in months. Valid values: 1–3, 6, and 12. Default is 1. */ renewPeriod?: pulumi.Input; /** * Renewal type of the bandwidth package instance. Manual: Manual renewal. Auto: Automatic renewal. NoRenew: No renewal. */ renewType?: pulumi.Input; tags?: pulumi.Input[]>; }