volcengine.cen.InterRegionBandwidth
Explore with Pulumi AI
Provides a resource to manage cen inter region bandwidth
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooCen = new Volcengine.Cen.Cen("fooCen", new()
{
CenName = "acc-test-cen",
Description = "acc-test",
ProjectName = "default",
Tags = new[]
{
new Volcengine.Cen.Inputs.CenTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var fooBandwidthPackage = new Volcengine.Cen.BandwidthPackage("fooBandwidthPackage", new()
{
LocalGeographicRegionSetId = "China",
PeerGeographicRegionSetId = "China",
Bandwidth = 5,
CenBandwidthPackageName = "acc-test-cen-bp",
Description = "acc-test",
BillingType = "PrePaid",
PeriodUnit = "Month",
Period = 1,
ProjectName = "default",
Tags = new[]
{
new Volcengine.Cen.Inputs.BandwidthPackageTagArgs
{
Key = "k1",
Value = "v1",
},
},
});
var fooBandwidthPackageAssociate = new Volcengine.Cen.BandwidthPackageAssociate("fooBandwidthPackageAssociate", new()
{
CenBandwidthPackageId = fooBandwidthPackage.Id,
CenId = fooCen.Id,
});
var fooInterRegionBandwidth = new Volcengine.Cen.InterRegionBandwidth("fooInterRegionBandwidth", new()
{
CenId = fooCen.Id,
LocalRegionId = "cn-beijing",
PeerRegionId = "cn-shanghai",
Bandwidth = 2,
}, new CustomResourceOptions
{
DependsOn = new[]
{
fooBandwidthPackageAssociate,
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooCen, err := cen.NewCen(ctx, "fooCen", &cen.CenArgs{
CenName: pulumi.String("acc-test-cen"),
Description: pulumi.String("acc-test"),
ProjectName: pulumi.String("default"),
Tags: cen.CenTagArray{
&cen.CenTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "fooBandwidthPackage", &cen.BandwidthPackageArgs{
LocalGeographicRegionSetId: pulumi.String("China"),
PeerGeographicRegionSetId: pulumi.String("China"),
Bandwidth: pulumi.Int(5),
CenBandwidthPackageName: pulumi.String("acc-test-cen-bp"),
Description: pulumi.String("acc-test"),
BillingType: pulumi.String("PrePaid"),
PeriodUnit: pulumi.String("Month"),
Period: pulumi.Int(1),
ProjectName: pulumi.String("default"),
Tags: cen.BandwidthPackageTagArray{
&cen.BandwidthPackageTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
})
if err != nil {
return err
}
fooBandwidthPackageAssociate, err := cen.NewBandwidthPackageAssociate(ctx, "fooBandwidthPackageAssociate", &cen.BandwidthPackageAssociateArgs{
CenBandwidthPackageId: fooBandwidthPackage.ID(),
CenId: fooCen.ID(),
})
if err != nil {
return err
}
_, err = cen.NewInterRegionBandwidth(ctx, "fooInterRegionBandwidth", &cen.InterRegionBandwidthArgs{
CenId: fooCen.ID(),
LocalRegionId: pulumi.String("cn-beijing"),
PeerRegionId: pulumi.String("cn-shanghai"),
Bandwidth: pulumi.Int(2),
}, pulumi.DependsOn([]pulumi.Resource{
fooBandwidthPackageAssociate,
}))
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cen.Cen;
import com.pulumi.volcengine.cen.CenArgs;
import com.pulumi.volcengine.cen.inputs.CenTagArgs;
import com.pulumi.volcengine.cen.BandwidthPackage;
import com.pulumi.volcengine.cen.BandwidthPackageArgs;
import com.pulumi.volcengine.cen.inputs.BandwidthPackageTagArgs;
import com.pulumi.volcengine.cen.BandwidthPackageAssociate;
import com.pulumi.volcengine.cen.BandwidthPackageAssociateArgs;
import com.pulumi.volcengine.cen.InterRegionBandwidth;
import com.pulumi.volcengine.cen.InterRegionBandwidthArgs;
import com.pulumi.resources.CustomResourceOptions;
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 fooCen = new Cen("fooCen", CenArgs.builder()
.cenName("acc-test-cen")
.description("acc-test")
.projectName("default")
.tags(CenTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var fooBandwidthPackage = new BandwidthPackage("fooBandwidthPackage", BandwidthPackageArgs.builder()
.localGeographicRegionSetId("China")
.peerGeographicRegionSetId("China")
.bandwidth(5)
.cenBandwidthPackageName("acc-test-cen-bp")
.description("acc-test")
.billingType("PrePaid")
.periodUnit("Month")
.period(1)
.projectName("default")
.tags(BandwidthPackageTagArgs.builder()
.key("k1")
.value("v1")
.build())
.build());
var fooBandwidthPackageAssociate = new BandwidthPackageAssociate("fooBandwidthPackageAssociate", BandwidthPackageAssociateArgs.builder()
.cenBandwidthPackageId(fooBandwidthPackage.id())
.cenId(fooCen.id())
.build());
var fooInterRegionBandwidth = new InterRegionBandwidth("fooInterRegionBandwidth", InterRegionBandwidthArgs.builder()
.cenId(fooCen.id())
.localRegionId("cn-beijing")
.peerRegionId("cn-shanghai")
.bandwidth(2)
.build(), CustomResourceOptions.builder()
.dependsOn(fooBandwidthPackageAssociate)
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo_cen = volcengine.cen.Cen("fooCen",
cen_name="acc-test-cen",
description="acc-test",
project_name="default",
tags=[volcengine.cen.CenTagArgs(
key="k1",
value="v1",
)])
foo_bandwidth_package = volcengine.cen.BandwidthPackage("fooBandwidthPackage",
local_geographic_region_set_id="China",
peer_geographic_region_set_id="China",
bandwidth=5,
cen_bandwidth_package_name="acc-test-cen-bp",
description="acc-test",
billing_type="PrePaid",
period_unit="Month",
period=1,
project_name="default",
tags=[volcengine.cen.BandwidthPackageTagArgs(
key="k1",
value="v1",
)])
foo_bandwidth_package_associate = volcengine.cen.BandwidthPackageAssociate("fooBandwidthPackageAssociate",
cen_bandwidth_package_id=foo_bandwidth_package.id,
cen_id=foo_cen.id)
foo_inter_region_bandwidth = volcengine.cen.InterRegionBandwidth("fooInterRegionBandwidth",
cen_id=foo_cen.id,
local_region_id="cn-beijing",
peer_region_id="cn-shanghai",
bandwidth=2,
opts=pulumi.ResourceOptions(depends_on=[foo_bandwidth_package_associate]))
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const fooCen = new volcengine.cen.Cen("fooCen", {
cenName: "acc-test-cen",
description: "acc-test",
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
});
const fooBandwidthPackage = new volcengine.cen.BandwidthPackage("fooBandwidthPackage", {
localGeographicRegionSetId: "China",
peerGeographicRegionSetId: "China",
bandwidth: 5,
cenBandwidthPackageName: "acc-test-cen-bp",
description: "acc-test",
billingType: "PrePaid",
periodUnit: "Month",
period: 1,
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
});
const fooBandwidthPackageAssociate = new volcengine.cen.BandwidthPackageAssociate("fooBandwidthPackageAssociate", {
cenBandwidthPackageId: fooBandwidthPackage.id,
cenId: fooCen.id,
});
const fooInterRegionBandwidth = new volcengine.cen.InterRegionBandwidth("fooInterRegionBandwidth", {
cenId: fooCen.id,
localRegionId: "cn-beijing",
peerRegionId: "cn-shanghai",
bandwidth: 2,
}, {
dependsOn: [fooBandwidthPackageAssociate],
});
resources:
fooCen:
type: volcengine:cen:Cen
properties:
cenName: acc-test-cen
description: acc-test
projectName: default
tags:
- key: k1
value: v1
fooBandwidthPackage:
type: volcengine:cen:BandwidthPackage
properties:
localGeographicRegionSetId: China
peerGeographicRegionSetId: China
bandwidth: 5
cenBandwidthPackageName: acc-test-cen-bp
description: acc-test
billingType: PrePaid
periodUnit: Month
period: 1
projectName: default
tags:
- key: k1
value: v1
fooBandwidthPackageAssociate:
type: volcengine:cen:BandwidthPackageAssociate
properties:
cenBandwidthPackageId: ${fooBandwidthPackage.id}
cenId: ${fooCen.id}
fooInterRegionBandwidth:
type: volcengine:cen:InterRegionBandwidth
properties:
cenId: ${fooCen.id}
localRegionId: cn-beijing
peerRegionId: cn-shanghai
bandwidth: 2
options:
dependson:
- ${fooBandwidthPackageAssociate}
Create InterRegionBandwidth Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterRegionBandwidth(name: string, args: InterRegionBandwidthArgs, opts?: CustomResourceOptions);
@overload
def InterRegionBandwidth(resource_name: str,
args: InterRegionBandwidthArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterRegionBandwidth(resource_name: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
cen_id: Optional[str] = None,
local_region_id: Optional[str] = None,
peer_region_id: Optional[str] = None)
func NewInterRegionBandwidth(ctx *Context, name string, args InterRegionBandwidthArgs, opts ...ResourceOption) (*InterRegionBandwidth, error)
public InterRegionBandwidth(string name, InterRegionBandwidthArgs args, CustomResourceOptions? opts = null)
public InterRegionBandwidth(String name, InterRegionBandwidthArgs args)
public InterRegionBandwidth(String name, InterRegionBandwidthArgs args, CustomResourceOptions options)
type: volcengine:cen:InterRegionBandwidth
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 InterRegionBandwidthArgs
- 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 InterRegionBandwidthArgs
- 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 InterRegionBandwidthArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterRegionBandwidthArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterRegionBandwidthArgs
- 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 interRegionBandwidthResource = new Volcengine.Cen.InterRegionBandwidth("interRegionBandwidthResource", new()
{
Bandwidth = 0,
CenId = "string",
LocalRegionId = "string",
PeerRegionId = "string",
});
example, err := cen.NewInterRegionBandwidth(ctx, "interRegionBandwidthResource", &cen.InterRegionBandwidthArgs{
Bandwidth: pulumi.Int(0),
CenId: pulumi.String("string"),
LocalRegionId: pulumi.String("string"),
PeerRegionId: pulumi.String("string"),
})
var interRegionBandwidthResource = new InterRegionBandwidth("interRegionBandwidthResource", InterRegionBandwidthArgs.builder()
.bandwidth(0)
.cenId("string")
.localRegionId("string")
.peerRegionId("string")
.build());
inter_region_bandwidth_resource = volcengine.cen.InterRegionBandwidth("interRegionBandwidthResource",
bandwidth=0,
cen_id="string",
local_region_id="string",
peer_region_id="string")
const interRegionBandwidthResource = new volcengine.cen.InterRegionBandwidth("interRegionBandwidthResource", {
bandwidth: 0,
cenId: "string",
localRegionId: "string",
peerRegionId: "string",
});
type: volcengine:cen:InterRegionBandwidth
properties:
bandwidth: 0
cenId: string
localRegionId: string
peerRegionId: string
InterRegionBandwidth 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 InterRegionBandwidth resource accepts the following input properties:
- Bandwidth int
- The bandwidth of the cen inter region bandwidth.
- Cen
Id string - The cen ID of the cen inter region bandwidth.
- Local
Region stringId - The local region id of the cen inter region bandwidth.
- Peer
Region stringId - The peer region id of the cen inter region bandwidth.
- Bandwidth int
- The bandwidth of the cen inter region bandwidth.
- Cen
Id string - The cen ID of the cen inter region bandwidth.
- Local
Region stringId - The local region id of the cen inter region bandwidth.
- Peer
Region stringId - The peer region id of the cen inter region bandwidth.
- bandwidth Integer
- The bandwidth of the cen inter region bandwidth.
- cen
Id String - The cen ID of the cen inter region bandwidth.
- local
Region StringId - The local region id of the cen inter region bandwidth.
- peer
Region StringId - The peer region id of the cen inter region bandwidth.
- bandwidth number
- The bandwidth of the cen inter region bandwidth.
- cen
Id string - The cen ID of the cen inter region bandwidth.
- local
Region stringId - The local region id of the cen inter region bandwidth.
- peer
Region stringId - The peer region id of the cen inter region bandwidth.
- bandwidth int
- The bandwidth of the cen inter region bandwidth.
- cen_
id str - The cen ID of the cen inter region bandwidth.
- local_
region_ strid - The local region id of the cen inter region bandwidth.
- peer_
region_ strid - The peer region id of the cen inter region bandwidth.
- bandwidth Number
- The bandwidth of the cen inter region bandwidth.
- cen
Id String - The cen ID of the cen inter region bandwidth.
- local
Region StringId - The local region id of the cen inter region bandwidth.
- peer
Region StringId - The peer region id of the cen inter region bandwidth.
Outputs
All input properties are implicitly available as output properties. Additionally, the InterRegionBandwidth resource produces the following output properties:
- Creation
Time string - The create time of the cen inter region bandwidth.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- Status string
- The status of the cen inter region bandwidth.
- Update
Time string - The update time of the cen inter region bandwidth.
- Creation
Time string - The create time of the cen inter region bandwidth.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- Status string
- The status of the cen inter region bandwidth.
- Update
Time string - The update time of the cen inter region bandwidth.
- creation
Time String - The create time of the cen inter region bandwidth.
- id String
- The provider-assigned unique ID for this managed resource.
- inter
Region StringBandwidth Id - The ID of the cen inter region bandwidth.
- status String
- The status of the cen inter region bandwidth.
- update
Time String - The update time of the cen inter region bandwidth.
- creation
Time string - The create time of the cen inter region bandwidth.
- id string
- The provider-assigned unique ID for this managed resource.
- inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- status string
- The status of the cen inter region bandwidth.
- update
Time string - The update time of the cen inter region bandwidth.
- creation_
time str - The create time of the cen inter region bandwidth.
- id str
- The provider-assigned unique ID for this managed resource.
- inter_
region_ strbandwidth_ id - The ID of the cen inter region bandwidth.
- status str
- The status of the cen inter region bandwidth.
- update_
time str - The update time of the cen inter region bandwidth.
- creation
Time String - The create time of the cen inter region bandwidth.
- id String
- The provider-assigned unique ID for this managed resource.
- inter
Region StringBandwidth Id - The ID of the cen inter region bandwidth.
- status String
- The status of the cen inter region bandwidth.
- update
Time String - The update time of the cen inter region bandwidth.
Look up Existing InterRegionBandwidth Resource
Get an existing InterRegionBandwidth 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?: InterRegionBandwidthState, opts?: CustomResourceOptions): InterRegionBandwidth
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
cen_id: Optional[str] = None,
creation_time: Optional[str] = None,
inter_region_bandwidth_id: Optional[str] = None,
local_region_id: Optional[str] = None,
peer_region_id: Optional[str] = None,
status: Optional[str] = None,
update_time: Optional[str] = None) -> InterRegionBandwidth
func GetInterRegionBandwidth(ctx *Context, name string, id IDInput, state *InterRegionBandwidthState, opts ...ResourceOption) (*InterRegionBandwidth, error)
public static InterRegionBandwidth Get(string name, Input<string> id, InterRegionBandwidthState? state, CustomResourceOptions? opts = null)
public static InterRegionBandwidth get(String name, Output<String> id, InterRegionBandwidthState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Bandwidth int
- The bandwidth of the cen inter region bandwidth.
- Cen
Id string - The cen ID of the cen inter region bandwidth.
- Creation
Time string - The create time of the cen inter region bandwidth.
- Inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- Local
Region stringId - The local region id of the cen inter region bandwidth.
- Peer
Region stringId - The peer region id of the cen inter region bandwidth.
- Status string
- The status of the cen inter region bandwidth.
- Update
Time string - The update time of the cen inter region bandwidth.
- Bandwidth int
- The bandwidth of the cen inter region bandwidth.
- Cen
Id string - The cen ID of the cen inter region bandwidth.
- Creation
Time string - The create time of the cen inter region bandwidth.
- Inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- Local
Region stringId - The local region id of the cen inter region bandwidth.
- Peer
Region stringId - The peer region id of the cen inter region bandwidth.
- Status string
- The status of the cen inter region bandwidth.
- Update
Time string - The update time of the cen inter region bandwidth.
- bandwidth Integer
- The bandwidth of the cen inter region bandwidth.
- cen
Id String - The cen ID of the cen inter region bandwidth.
- creation
Time String - The create time of the cen inter region bandwidth.
- inter
Region StringBandwidth Id - The ID of the cen inter region bandwidth.
- local
Region StringId - The local region id of the cen inter region bandwidth.
- peer
Region StringId - The peer region id of the cen inter region bandwidth.
- status String
- The status of the cen inter region bandwidth.
- update
Time String - The update time of the cen inter region bandwidth.
- bandwidth number
- The bandwidth of the cen inter region bandwidth.
- cen
Id string - The cen ID of the cen inter region bandwidth.
- creation
Time string - The create time of the cen inter region bandwidth.
- inter
Region stringBandwidth Id - The ID of the cen inter region bandwidth.
- local
Region stringId - The local region id of the cen inter region bandwidth.
- peer
Region stringId - The peer region id of the cen inter region bandwidth.
- status string
- The status of the cen inter region bandwidth.
- update
Time string - The update time of the cen inter region bandwidth.
- bandwidth int
- The bandwidth of the cen inter region bandwidth.
- cen_
id str - The cen ID of the cen inter region bandwidth.
- creation_
time str - The create time of the cen inter region bandwidth.
- inter_
region_ strbandwidth_ id - The ID of the cen inter region bandwidth.
- local_
region_ strid - The local region id of the cen inter region bandwidth.
- peer_
region_ strid - The peer region id of the cen inter region bandwidth.
- status str
- The status of the cen inter region bandwidth.
- update_
time str - The update time of the cen inter region bandwidth.
- bandwidth Number
- The bandwidth of the cen inter region bandwidth.
- cen
Id String - The cen ID of the cen inter region bandwidth.
- creation
Time String - The create time of the cen inter region bandwidth.
- inter
Region StringBandwidth Id - The ID of the cen inter region bandwidth.
- local
Region StringId - The local region id of the cen inter region bandwidth.
- peer
Region StringId - The peer region id of the cen inter region bandwidth.
- status String
- The status of the cen inter region bandwidth.
- update
Time String - The update time of the cen inter region bandwidth.
Import
CenInterRegionBandwidth can be imported using the id, e.g.
$ pulumi import volcengine:cen/interRegionBandwidth:InterRegionBandwidth default cirb-3tex2x1cwd4c6c0v****
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.