opentelekomcloud.VpcBandwidthV2
Explore with Pulumi AI
Up-to-date reference of API arguments for VPC bandwidth you can get at documentation portal
Provides a resource to create a shared bandwidth within Open Telekom Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const band100mb = new opentelekomcloud.VpcBandwidthV2("band100mb", {size: 100});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
band100mb = opentelekomcloud.VpcBandwidthV2("band100mb", size=100)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewVpcBandwidthV2(ctx, "band100mb", &opentelekomcloud.VpcBandwidthV2Args{
Size: pulumi.Float64(100),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var band100mb = new Opentelekomcloud.VpcBandwidthV2("band100mb", new()
{
Size = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.VpcBandwidthV2;
import com.pulumi.opentelekomcloud.VpcBandwidthV2Args;
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 band100mb = new VpcBandwidthV2("band100mb", VpcBandwidthV2Args.builder()
.size(100)
.build());
}
}
resources:
band100mb:
type: opentelekomcloud:VpcBandwidthV2
properties:
size: 100
Create VpcBandwidthV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VpcBandwidthV2(name: string, args: VpcBandwidthV2Args, opts?: CustomResourceOptions);
@overload
def VpcBandwidthV2(resource_name: str,
args: VpcBandwidthV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def VpcBandwidthV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
size: Optional[float] = None,
name: Optional[str] = None,
vpc_bandwidth_v2_id: Optional[str] = None)
func NewVpcBandwidthV2(ctx *Context, name string, args VpcBandwidthV2Args, opts ...ResourceOption) (*VpcBandwidthV2, error)
public VpcBandwidthV2(string name, VpcBandwidthV2Args args, CustomResourceOptions? opts = null)
public VpcBandwidthV2(String name, VpcBandwidthV2Args args)
public VpcBandwidthV2(String name, VpcBandwidthV2Args args, CustomResourceOptions options)
type: opentelekomcloud:VpcBandwidthV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args VpcBandwidthV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VpcBandwidthV2Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VpcBandwidthV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VpcBandwidthV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VpcBandwidthV2Args
- 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 vpcBandwidthV2Resource = new Opentelekomcloud.VpcBandwidthV2("vpcBandwidthV2Resource", new()
{
Size = 0,
Name = "string",
VpcBandwidthV2Id = "string",
});
example, err := opentelekomcloud.NewVpcBandwidthV2(ctx, "vpcBandwidthV2Resource", &opentelekomcloud.VpcBandwidthV2Args{
Size: pulumi.Float64(0),
Name: pulumi.String("string"),
VpcBandwidthV2Id: pulumi.String("string"),
})
var vpcBandwidthV2Resource = new VpcBandwidthV2("vpcBandwidthV2Resource", VpcBandwidthV2Args.builder()
.size(0)
.name("string")
.vpcBandwidthV2Id("string")
.build());
vpc_bandwidth_v2_resource = opentelekomcloud.VpcBandwidthV2("vpcBandwidthV2Resource",
size=0,
name="string",
vpc_bandwidth_v2_id="string")
const vpcBandwidthV2Resource = new opentelekomcloud.VpcBandwidthV2("vpcBandwidthV2Resource", {
size: 0,
name: "string",
vpcBandwidthV2Id: "string",
});
type: opentelekomcloud:VpcBandwidthV2
properties:
name: string
size: 0
vpcBandwidthV2Id: string
VpcBandwidthV2 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 VpcBandwidthV2 resource accepts the following input properties:
- Size double
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- Name string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- Size float64
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- Name string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- size Double
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- name String
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- vpc
Bandwidth StringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- size number
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- name string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- size float
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- name str
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- vpc_
bandwidth_ strv2_ id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- size Number
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- name String
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- vpc
Bandwidth StringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
Outputs
All input properties are implicitly available as output properties. Additionally, the VpcBandwidthV2 resource produces the following output properties:
Look up Existing VpcBandwidthV2 Resource
Get an existing VpcBandwidthV2 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?: VpcBandwidthV2State, opts?: CustomResourceOptions): VpcBandwidthV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
size: Optional[float] = None,
status: Optional[str] = None,
vpc_bandwidth_v2_id: Optional[str] = None) -> VpcBandwidthV2
func GetVpcBandwidthV2(ctx *Context, name string, id IDInput, state *VpcBandwidthV2State, opts ...ResourceOption) (*VpcBandwidthV2, error)
public static VpcBandwidthV2 Get(string name, Input<string> id, VpcBandwidthV2State? state, CustomResourceOptions? opts = null)
public static VpcBandwidthV2 get(String name, Output<String> id, VpcBandwidthV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:VpcBandwidthV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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 string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Size double
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- Status string
- Specifies the bandwidth status.
- Vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- Name string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- Size float64
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- Status string
- Specifies the bandwidth status.
- Vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- name String
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- size Double
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- status String
- Specifies the bandwidth status.
- vpc
Bandwidth StringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- name string
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- size number
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- status string
- Specifies the bandwidth status.
- vpc
Bandwidth stringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- name str
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- size float
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- status str
- Specifies the bandwidth status.
- vpc_
bandwidth_ strv2_ id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
- name String
Specifies the bandwidth name.
The value is a string of 1 to 64 characters that can contain letters, digits, underscores (_), hyphens (-), and periods (.).
- size Number
Specifies the bandwidth size. The value ranges from 5 Mbit/s to 1000 Mbit/s by default.
-> The specific range may vary depending on the configuration in each region. You can see the available bandwidth range on the management console.
- status String
- Specifies the bandwidth status.
- vpc
Bandwidth StringV2Id - Specifies the bandwidth ID, which uniquely identifies the bandwidth.
Import
VPC bandwidth can be imported using the id
, e.g.
$ pulumi import opentelekomcloud:index/vpcBandwidthV2:VpcBandwidthV2 band_100mb eb187fc8-e482-43eb-a18a-9da947ef89f6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.