1. Packages
  2. Volcengine
  3. API Docs
  4. bandwidth_package
  5. BandwidthPackage
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.bandwidth_package.BandwidthPackage

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.bandwidth_package.BandwidthPackage("foo", {
    bandwidth: 10,
    bandwidthPackageName: "acc-test-bp",
    billingType: "PostPaidByBandwidth",
    description: "acc-test",
    isp: "BGP",
    protocol: "IPv4",
    securityProtectionTypes: ["AntiDDoS_Enhanced"],
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.bandwidth_package.BandwidthPackage("foo",
    bandwidth=10,
    bandwidth_package_name="acc-test-bp",
    billing_type="PostPaidByBandwidth",
    description="acc-test",
    isp="BGP",
    protocol="IPv4",
    security_protection_types=["AntiDDoS_Enhanced"],
    tags=[volcengine.bandwidth_package.BandwidthPackageTagArgs(
        key="k1",
        value="v1",
    )])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/bandwidth_package"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := bandwidth_package.NewBandwidthPackage(ctx, "foo", &bandwidth_package.BandwidthPackageArgs{
			Bandwidth:            pulumi.Int(10),
			BandwidthPackageName: pulumi.String("acc-test-bp"),
			BillingType:          pulumi.String("PostPaidByBandwidth"),
			Description:          pulumi.String("acc-test"),
			Isp:                  pulumi.String("BGP"),
			Protocol:             pulumi.String("IPv4"),
			SecurityProtectionTypes: pulumi.StringArray{
				pulumi.String("AntiDDoS_Enhanced"),
			},
			Tags: bandwidth_package.BandwidthPackageTagArray{
				&bandwidth_package.BandwidthPackageTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Bandwidth_package.BandwidthPackage("foo", new()
    {
        Bandwidth = 10,
        BandwidthPackageName = "acc-test-bp",
        BillingType = "PostPaidByBandwidth",
        Description = "acc-test",
        Isp = "BGP",
        Protocol = "IPv4",
        SecurityProtectionTypes = new[]
        {
            "AntiDDoS_Enhanced",
        },
        Tags = new[]
        {
            new Volcengine.Bandwidth_package.Inputs.BandwidthPackageTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.bandwidth_package.BandwidthPackage;
import com.pulumi.volcengine.bandwidth_package.BandwidthPackageArgs;
import com.pulumi.volcengine.bandwidth_package.inputs.BandwidthPackageTagArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var foo = new BandwidthPackage("foo", BandwidthPackageArgs.builder()        
            .bandwidth(10)
            .bandwidthPackageName("acc-test-bp")
            .billingType("PostPaidByBandwidth")
            .description("acc-test")
            .isp("BGP")
            .protocol("IPv4")
            .securityProtectionTypes("AntiDDoS_Enhanced")
            .tags(BandwidthPackageTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:bandwidth_package:BandwidthPackage
    properties:
      bandwidth: 10
      bandwidthPackageName: acc-test-bp
      billingType: PostPaidByBandwidth
      description: acc-test
      isp: BGP
      protocol: IPv4
      securityProtectionTypes:
        - AntiDDoS_Enhanced
      tags:
        - key: k1
          value: v1
Copy

Create BandwidthPackage Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BandwidthPackage(name: string, args: BandwidthPackageArgs, opts?: CustomResourceOptions);
@overload
def BandwidthPackage(resource_name: str,
                     args: BandwidthPackageArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def BandwidthPackage(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     bandwidth: Optional[int] = None,
                     bandwidth_package_name: Optional[str] = None,
                     billing_type: Optional[str] = None,
                     description: Optional[str] = None,
                     isp: Optional[str] = None,
                     period: Optional[int] = None,
                     project_name: Optional[str] = None,
                     protocol: Optional[str] = None,
                     security_protection_types: Optional[Sequence[str]] = None,
                     tags: Optional[Sequence[BandwidthPackageTagArgs]] = None)
func NewBandwidthPackage(ctx *Context, name string, args BandwidthPackageArgs, opts ...ResourceOption) (*BandwidthPackage, error)
public BandwidthPackage(string name, BandwidthPackageArgs args, CustomResourceOptions? opts = null)
public BandwidthPackage(String name, BandwidthPackageArgs args)
public BandwidthPackage(String name, BandwidthPackageArgs args, CustomResourceOptions options)
type: volcengine:bandwidth_package:BandwidthPackage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BandwidthPackageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BandwidthPackageArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BandwidthPackageArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BandwidthPackageArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BandwidthPackageArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var bandwidthPackageResource = new Volcengine.Bandwidth_package.BandwidthPackage("bandwidthPackageResource", new()
{
    Bandwidth = 0,
    BandwidthPackageName = "string",
    BillingType = "string",
    Description = "string",
    Isp = "string",
    Period = 0,
    ProjectName = "string",
    Protocol = "string",
    SecurityProtectionTypes = new[]
    {
        "string",
    },
    Tags = new[]
    {
        new Volcengine.Bandwidth_package.Inputs.BandwidthPackageTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
Copy
example, err := bandwidth_package.NewBandwidthPackage(ctx, "bandwidthPackageResource", &bandwidth_package.BandwidthPackageArgs{
	Bandwidth:            pulumi.Int(0),
	BandwidthPackageName: pulumi.String("string"),
	BillingType:          pulumi.String("string"),
	Description:          pulumi.String("string"),
	Isp:                  pulumi.String("string"),
	Period:               pulumi.Int(0),
	ProjectName:          pulumi.String("string"),
	Protocol:             pulumi.String("string"),
	SecurityProtectionTypes: pulumi.StringArray{
		pulumi.String("string"),
	},
	Tags: bandwidth_package.BandwidthPackageTagArray{
		&bandwidth_package.BandwidthPackageTagArgs{
			Key:   pulumi.String("string"),
			Value: pulumi.String("string"),
		},
	},
})
Copy
var bandwidthPackageResource = new BandwidthPackage("bandwidthPackageResource", BandwidthPackageArgs.builder()
    .bandwidth(0)
    .bandwidthPackageName("string")
    .billingType("string")
    .description("string")
    .isp("string")
    .period(0)
    .projectName("string")
    .protocol("string")
    .securityProtectionTypes("string")
    .tags(BandwidthPackageTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
Copy
bandwidth_package_resource = volcengine.bandwidth_package.BandwidthPackage("bandwidthPackageResource",
    bandwidth=0,
    bandwidth_package_name="string",
    billing_type="string",
    description="string",
    isp="string",
    period=0,
    project_name="string",
    protocol="string",
    security_protection_types=["string"],
    tags=[{
        "key": "string",
        "value": "string",
    }])
Copy
const bandwidthPackageResource = new volcengine.bandwidth_package.BandwidthPackage("bandwidthPackageResource", {
    bandwidth: 0,
    bandwidthPackageName: "string",
    billingType: "string",
    description: "string",
    isp: "string",
    period: 0,
    projectName: "string",
    protocol: "string",
    securityProtectionTypes: ["string"],
    tags: [{
        key: "string",
        value: "string",
    }],
});
Copy
type: volcengine:bandwidth_package:BandwidthPackage
properties:
    bandwidth: 0
    bandwidthPackageName: string
    billingType: string
    description: string
    isp: string
    period: 0
    projectName: string
    protocol: string
    securityProtectionTypes:
        - string
    tags:
        - key: string
          value: string
Copy

BandwidthPackage Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BandwidthPackage resource accepts the following input properties:

Bandwidth This property is required. int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
BandwidthPackageName string
The name of the bandwidth package.
BillingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
Description string
The description of the bandwidth package.
Isp Changes to this property will trigger replacement. string
Route type, default to BGP.
Period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
ProjectName string
The project name of the bandwidth package.
Protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
SecurityProtectionTypes Changes to this property will trigger replacement. List<string>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
Tags List<BandwidthPackageTag>
Tags.
Bandwidth This property is required. int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
BandwidthPackageName string
The name of the bandwidth package.
BillingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
Description string
The description of the bandwidth package.
Isp Changes to this property will trigger replacement. string
Route type, default to BGP.
Period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
ProjectName string
The project name of the bandwidth package.
Protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
SecurityProtectionTypes Changes to this property will trigger replacement. []string
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
Tags []BandwidthPackageTagArgs
Tags.
bandwidth This property is required. Integer
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName String
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. String
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description String
The description of the bandwidth package.
isp Changes to this property will trigger replacement. String
Route type, default to BGP.
period Changes to this property will trigger replacement. Integer
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName String
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. String
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. List<String>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags List<BandwidthPackageTag>
Tags.
bandwidth This property is required. number
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName string
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description string
The description of the bandwidth package.
isp Changes to this property will trigger replacement. string
Route type, default to BGP.
period Changes to this property will trigger replacement. number
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName string
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. string[]
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags BandwidthPackageTag[]
Tags.
bandwidth This property is required. int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidth_package_name str
The name of the bandwidth package.
billing_type Changes to this property will trigger replacement. str
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description str
The description of the bandwidth package.
isp Changes to this property will trigger replacement. str
Route type, default to BGP.
period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
project_name str
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. str
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
security_protection_types Changes to this property will trigger replacement. Sequence[str]
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags Sequence[BandwidthPackageTagArgs]
Tags.
bandwidth This property is required. Number
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName String
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. String
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description String
The description of the bandwidth package.
isp Changes to this property will trigger replacement. String
Route type, default to BGP.
period Changes to this property will trigger replacement. Number
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName String
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. String
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. List<String>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags List<Property Map>
Tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the BandwidthPackage resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing BandwidthPackage Resource

Get an existing BandwidthPackage resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BandwidthPackageState, opts?: CustomResourceOptions): BandwidthPackage
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bandwidth: Optional[int] = None,
        bandwidth_package_name: Optional[str] = None,
        billing_type: Optional[str] = None,
        description: Optional[str] = None,
        isp: Optional[str] = None,
        period: Optional[int] = None,
        project_name: Optional[str] = None,
        protocol: Optional[str] = None,
        security_protection_types: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[BandwidthPackageTagArgs]] = None) -> BandwidthPackage
func GetBandwidthPackage(ctx *Context, name string, id IDInput, state *BandwidthPackageState, opts ...ResourceOption) (*BandwidthPackage, error)
public static BandwidthPackage Get(string name, Input<string> id, BandwidthPackageState? state, CustomResourceOptions? opts = null)
public static BandwidthPackage get(String name, Output<String> id, BandwidthPackageState state, CustomResourceOptions options)
resources:  _:    type: volcengine:bandwidth_package:BandwidthPackage    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Bandwidth int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
BandwidthPackageName string
The name of the bandwidth package.
BillingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
Description string
The description of the bandwidth package.
Isp Changes to this property will trigger replacement. string
Route type, default to BGP.
Period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
ProjectName string
The project name of the bandwidth package.
Protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
SecurityProtectionTypes Changes to this property will trigger replacement. List<string>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
Tags List<BandwidthPackageTag>
Tags.
Bandwidth int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
BandwidthPackageName string
The name of the bandwidth package.
BillingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
Description string
The description of the bandwidth package.
Isp Changes to this property will trigger replacement. string
Route type, default to BGP.
Period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
ProjectName string
The project name of the bandwidth package.
Protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
SecurityProtectionTypes Changes to this property will trigger replacement. []string
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
Tags []BandwidthPackageTagArgs
Tags.
bandwidth Integer
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName String
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. String
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description String
The description of the bandwidth package.
isp Changes to this property will trigger replacement. String
Route type, default to BGP.
period Changes to this property will trigger replacement. Integer
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName String
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. String
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. List<String>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags List<BandwidthPackageTag>
Tags.
bandwidth number
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName string
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. string
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description string
The description of the bandwidth package.
isp Changes to this property will trigger replacement. string
Route type, default to BGP.
period Changes to this property will trigger replacement. number
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName string
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. string
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. string[]
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags BandwidthPackageTag[]
Tags.
bandwidth int
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidth_package_name str
The name of the bandwidth package.
billing_type Changes to this property will trigger replacement. str
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description str
The description of the bandwidth package.
isp Changes to this property will trigger replacement. str
Route type, default to BGP.
period Changes to this property will trigger replacement. int
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
project_name str
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. str
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
security_protection_types Changes to this property will trigger replacement. Sequence[str]
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags Sequence[BandwidthPackageTagArgs]
Tags.
bandwidth Number
Bandwidth upper limit of shared bandwidth package, unit: Mbps. When BillingType is set to PrePaid: the value range is 5 to 5000. When BillingType is set to PostPaidByBandwidth: the value range is 2 to 5000. When BillingType is set to PostPaidByTraffic: the value range is 2 to 2000. When BillingType is set to PayBy95Peak: the value range is 2 to 5000.
bandwidthPackageName String
The name of the bandwidth package.
billingType Changes to this property will trigger replacement. String
BillingType of the bandwidth package. Valid values: PrePaid, PostPaidByBandwidth(Default), PostPaidByTraffic, PayBy95Peak. The billing method of IPv6 does not include PrePaid, and the billing method is only based on the PostPaidByBandwidth.
description String
The description of the bandwidth package.
isp Changes to this property will trigger replacement. String
Route type, default to BGP.
period Changes to this property will trigger replacement. Number
Duration of purchasing shared bandwidth package on an annual or monthly basis. The valid value range in 1~9 or 12, 24 or 36. Default value is 1. The period unit defaults to Month.
projectName String
The project name of the bandwidth package.
protocol Changes to this property will trigger replacement. String
The IP protocol values for shared bandwidth packages are as follows: IPv4: IPv4 protocol. IPv6: IPv6 protocol.
securityProtectionTypes Changes to this property will trigger replacement. List<String>
Security protection types for shared bandwidth packages. Parameter - N: Indicates the number of security protection types, currently only supports taking 1. Value: AntiDDoS_Enhanced or left blank.If the value is AntiDDoS_Enhanced, then will create a shared bandwidth package with enhanced protection, which supports adding basic protection type public IP addresses.If left blank, it indicates a shared bandwidth package with basic protection, which supports the addition of public IP addresses with enhanced protection.
tags List<Property Map>
Tags.

Supporting Types

BandwidthPackageTag
, BandwidthPackageTagArgs

Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
Key This property is required. string
The Key of Tags.
Value This property is required. string
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.
key This property is required. string
The Key of Tags.
value This property is required. string
The Value of Tags.
key This property is required. str
The Key of Tags.
value This property is required. str
The Value of Tags.
key This property is required. String
The Key of Tags.
value This property is required. String
The Value of Tags.

Import

BandwidthPackage can be imported using the id, e.g.

$ pulumi import volcengine:bandwidth_package/bandwidthPackage:BandwidthPackage default bwp-2zeo05qre24nhrqpy****
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.