alicloud.cen.InterRegionTrafficQosPolicy
Explore with Pulumi AI
Provides a Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy resource.
For information about Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy and how to use it, see What is Inter Region Traffic Qos Policy.
NOTE: Available since v1.246.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const defaultpSZB78 = new alicloud.cen.Instance("defaultpSZB78", {});
const defaultUmmxnE = new alicloud.cen.TransitRouter("defaultUmmxnE", {cenId: defaultpSZB78.id});
const defaultksqgSa = new alicloud.cen.TransitRouter("defaultksqgSa", {cenId: defaultpSZB78.id});
const defaultnXZ83y = new alicloud.cen.TransitRouterPeerAttachment("defaultnXZ83y", {
defaultLinkType: "Platinum",
bandwidthType: "DataTransfer",
cenId: defaultpSZB78.id,
peerTransitRouterRegionId: defaultksqgSa.id,
transitRouterId: defaultUmmxnE.transitRouterId,
peerTransitRouterId: defaultksqgSa.transitRouterId,
bandwidth: 10,
});
const _default = new alicloud.cen.InterRegionTrafficQosPolicy("default", {
transitRouterAttachmentId: defaultnXZ83y.id,
interRegionTrafficQosPolicyName: "example1",
interRegionTrafficQosPolicyDescription: "example1",
bandwidthGuaranteeMode: "byBandwidthPercent",
transitRouterId: defaultnXZ83y.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
defaultp_szb78 = alicloud.cen.Instance("defaultpSZB78")
default_ummxn_e = alicloud.cen.TransitRouter("defaultUmmxnE", cen_id=defaultp_szb78.id)
defaultksqg_sa = alicloud.cen.TransitRouter("defaultksqgSa", cen_id=defaultp_szb78.id)
defaultn_xz83y = alicloud.cen.TransitRouterPeerAttachment("defaultnXZ83y",
default_link_type="Platinum",
bandwidth_type="DataTransfer",
cen_id=defaultp_szb78.id,
peer_transit_router_region_id=defaultksqg_sa.id,
transit_router_id=default_ummxn_e.transit_router_id,
peer_transit_router_id=defaultksqg_sa.transit_router_id,
bandwidth=10)
default = alicloud.cen.InterRegionTrafficQosPolicy("default",
transit_router_attachment_id=defaultn_xz83y.id,
inter_region_traffic_qos_policy_name="example1",
inter_region_traffic_qos_policy_description="example1",
bandwidth_guarantee_mode="byBandwidthPercent",
transit_router_id=defaultn_xz83y.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultpSZB78, err := cen.NewInstance(ctx, "defaultpSZB78", nil)
if err != nil {
return err
}
defaultUmmxnE, err := cen.NewTransitRouter(ctx, "defaultUmmxnE", &cen.TransitRouterArgs{
CenId: defaultpSZB78.ID(),
})
if err != nil {
return err
}
defaultksqgSa, err := cen.NewTransitRouter(ctx, "defaultksqgSa", &cen.TransitRouterArgs{
CenId: defaultpSZB78.ID(),
})
if err != nil {
return err
}
defaultnXZ83y, err := cen.NewTransitRouterPeerAttachment(ctx, "defaultnXZ83y", &cen.TransitRouterPeerAttachmentArgs{
DefaultLinkType: pulumi.String("Platinum"),
BandwidthType: pulumi.String("DataTransfer"),
CenId: defaultpSZB78.ID(),
PeerTransitRouterRegionId: defaultksqgSa.ID(),
TransitRouterId: defaultUmmxnE.TransitRouterId,
PeerTransitRouterId: defaultksqgSa.TransitRouterId,
Bandwidth: pulumi.Int(10),
})
if err != nil {
return err
}
_, err = cen.NewInterRegionTrafficQosPolicy(ctx, "default", &cen.InterRegionTrafficQosPolicyArgs{
TransitRouterAttachmentId: defaultnXZ83y.ID(),
InterRegionTrafficQosPolicyName: pulumi.String("example1"),
InterRegionTrafficQosPolicyDescription: pulumi.String("example1"),
BandwidthGuaranteeMode: pulumi.String("byBandwidthPercent"),
TransitRouterId: defaultnXZ83y.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var defaultpSZB78 = new AliCloud.Cen.Instance("defaultpSZB78");
var defaultUmmxnE = new AliCloud.Cen.TransitRouter("defaultUmmxnE", new()
{
CenId = defaultpSZB78.Id,
});
var defaultksqgSa = new AliCloud.Cen.TransitRouter("defaultksqgSa", new()
{
CenId = defaultpSZB78.Id,
});
var defaultnXZ83y = new AliCloud.Cen.TransitRouterPeerAttachment("defaultnXZ83y", new()
{
DefaultLinkType = "Platinum",
BandwidthType = "DataTransfer",
CenId = defaultpSZB78.Id,
PeerTransitRouterRegionId = defaultksqgSa.Id,
TransitRouterId = defaultUmmxnE.TransitRouterId,
PeerTransitRouterId = defaultksqgSa.TransitRouterId,
Bandwidth = 10,
});
var @default = new AliCloud.Cen.InterRegionTrafficQosPolicy("default", new()
{
TransitRouterAttachmentId = defaultnXZ83y.Id,
InterRegionTrafficQosPolicyName = "example1",
InterRegionTrafficQosPolicyDescription = "example1",
BandwidthGuaranteeMode = "byBandwidthPercent",
TransitRouterId = defaultnXZ83y.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.cen.TransitRouter;
import com.pulumi.alicloud.cen.TransitRouterArgs;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachment;
import com.pulumi.alicloud.cen.TransitRouterPeerAttachmentArgs;
import com.pulumi.alicloud.cen.InterRegionTrafficQosPolicy;
import com.pulumi.alicloud.cen.InterRegionTrafficQosPolicyArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var defaultpSZB78 = new Instance("defaultpSZB78");
var defaultUmmxnE = new TransitRouter("defaultUmmxnE", TransitRouterArgs.builder()
.cenId(defaultpSZB78.id())
.build());
var defaultksqgSa = new TransitRouter("defaultksqgSa", TransitRouterArgs.builder()
.cenId(defaultpSZB78.id())
.build());
var defaultnXZ83y = new TransitRouterPeerAttachment("defaultnXZ83y", TransitRouterPeerAttachmentArgs.builder()
.defaultLinkType("Platinum")
.bandwidthType("DataTransfer")
.cenId(defaultpSZB78.id())
.peerTransitRouterRegionId(defaultksqgSa.id())
.transitRouterId(defaultUmmxnE.transitRouterId())
.peerTransitRouterId(defaultksqgSa.transitRouterId())
.bandwidth("10")
.build());
var default_ = new InterRegionTrafficQosPolicy("default", InterRegionTrafficQosPolicyArgs.builder()
.transitRouterAttachmentId(defaultnXZ83y.id())
.interRegionTrafficQosPolicyName("example1")
.interRegionTrafficQosPolicyDescription("example1")
.bandwidthGuaranteeMode("byBandwidthPercent")
.transitRouterId(defaultnXZ83y.id())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultpSZB78:
type: alicloud:cen:Instance
defaultUmmxnE:
type: alicloud:cen:TransitRouter
properties:
cenId: ${defaultpSZB78.id}
defaultksqgSa:
type: alicloud:cen:TransitRouter
properties:
cenId: ${defaultpSZB78.id}
defaultnXZ83y:
type: alicloud:cen:TransitRouterPeerAttachment
properties:
defaultLinkType: Platinum
bandwidthType: DataTransfer
cenId: ${defaultpSZB78.id}
peerTransitRouterRegionId: ${defaultksqgSa.id}
transitRouterId: ${defaultUmmxnE.transitRouterId}
peerTransitRouterId: ${defaultksqgSa.transitRouterId}
bandwidth: '10'
default:
type: alicloud:cen:InterRegionTrafficQosPolicy
properties:
transitRouterAttachmentId: ${defaultnXZ83y.id}
interRegionTrafficQosPolicyName: example1
interRegionTrafficQosPolicyDescription: example1
bandwidthGuaranteeMode: byBandwidthPercent
transitRouterId: ${defaultnXZ83y.id}
Create InterRegionTrafficQosPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterRegionTrafficQosPolicy(name: string, args: InterRegionTrafficQosPolicyArgs, opts?: CustomResourceOptions);
@overload
def InterRegionTrafficQosPolicy(resource_name: str,
args: InterRegionTrafficQosPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterRegionTrafficQosPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
transit_router_attachment_id: Optional[str] = None,
transit_router_id: Optional[str] = None,
bandwidth_guarantee_mode: Optional[str] = None,
inter_region_traffic_qos_policy_description: Optional[str] = None,
inter_region_traffic_qos_policy_name: Optional[str] = None)
func NewInterRegionTrafficQosPolicy(ctx *Context, name string, args InterRegionTrafficQosPolicyArgs, opts ...ResourceOption) (*InterRegionTrafficQosPolicy, error)
public InterRegionTrafficQosPolicy(string name, InterRegionTrafficQosPolicyArgs args, CustomResourceOptions? opts = null)
public InterRegionTrafficQosPolicy(String name, InterRegionTrafficQosPolicyArgs args)
public InterRegionTrafficQosPolicy(String name, InterRegionTrafficQosPolicyArgs args, CustomResourceOptions options)
type: alicloud:cen:InterRegionTrafficQosPolicy
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 InterRegionTrafficQosPolicyArgs
- 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 InterRegionTrafficQosPolicyArgs
- 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 InterRegionTrafficQosPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterRegionTrafficQosPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterRegionTrafficQosPolicyArgs
- 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 interRegionTrafficQosPolicyResource = new AliCloud.Cen.InterRegionTrafficQosPolicy("interRegionTrafficQosPolicyResource", new()
{
TransitRouterAttachmentId = "string",
TransitRouterId = "string",
BandwidthGuaranteeMode = "string",
InterRegionTrafficQosPolicyDescription = "string",
InterRegionTrafficQosPolicyName = "string",
});
example, err := cen.NewInterRegionTrafficQosPolicy(ctx, "interRegionTrafficQosPolicyResource", &cen.InterRegionTrafficQosPolicyArgs{
TransitRouterAttachmentId: pulumi.String("string"),
TransitRouterId: pulumi.String("string"),
BandwidthGuaranteeMode: pulumi.String("string"),
InterRegionTrafficQosPolicyDescription: pulumi.String("string"),
InterRegionTrafficQosPolicyName: pulumi.String("string"),
})
var interRegionTrafficQosPolicyResource = new InterRegionTrafficQosPolicy("interRegionTrafficQosPolicyResource", InterRegionTrafficQosPolicyArgs.builder()
.transitRouterAttachmentId("string")
.transitRouterId("string")
.bandwidthGuaranteeMode("string")
.interRegionTrafficQosPolicyDescription("string")
.interRegionTrafficQosPolicyName("string")
.build());
inter_region_traffic_qos_policy_resource = alicloud.cen.InterRegionTrafficQosPolicy("interRegionTrafficQosPolicyResource",
transit_router_attachment_id="string",
transit_router_id="string",
bandwidth_guarantee_mode="string",
inter_region_traffic_qos_policy_description="string",
inter_region_traffic_qos_policy_name="string")
const interRegionTrafficQosPolicyResource = new alicloud.cen.InterRegionTrafficQosPolicy("interRegionTrafficQosPolicyResource", {
transitRouterAttachmentId: "string",
transitRouterId: "string",
bandwidthGuaranteeMode: "string",
interRegionTrafficQosPolicyDescription: "string",
interRegionTrafficQosPolicyName: "string",
});
type: alicloud:cen:InterRegionTrafficQosPolicy
properties:
bandwidthGuaranteeMode: string
interRegionTrafficQosPolicyDescription: string
interRegionTrafficQosPolicyName: string
transitRouterAttachmentId: string
transitRouterId: string
InterRegionTrafficQosPolicy 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 InterRegionTrafficQosPolicy resource accepts the following input properties:
- Transit
Router stringAttachment Id - Peer Attachment ID.
- Transit
Router stringId - The ID of the forwarding router instance.
- Bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- Inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- Inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- Transit
Router stringAttachment Id - Peer Attachment ID.
- Transit
Router stringId - The ID of the forwarding router instance.
- Bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- Inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- Inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- transit
Router StringAttachment Id - Peer Attachment ID.
- transit
Router StringId - The ID of the forwarding router instance.
- bandwidth
Guarantee StringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region StringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region StringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- transit
Router stringAttachment Id - Peer Attachment ID.
- transit
Router stringId - The ID of the forwarding router instance.
- bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- transit_
router_ strattachment_ id - Peer Attachment ID.
- transit_
router_ strid - The ID of the forwarding router instance.
- bandwidth_
guarantee_ strmode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter_
region_ strtraffic_ qos_ policy_ description - The description information of the traffic scheduling policy.
- inter_
region_ strtraffic_ qos_ policy_ name - The name of the traffic scheduling policy.
- transit
Router StringAttachment Id - Peer Attachment ID.
- transit
Router StringId - The ID of the forwarding router instance.
- bandwidth
Guarantee StringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region StringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region StringTraffic Qos Policy Name - The name of the traffic scheduling policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the InterRegionTrafficQosPolicy resource produces the following output properties:
Look up Existing InterRegionTrafficQosPolicy Resource
Get an existing InterRegionTrafficQosPolicy 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?: InterRegionTrafficQosPolicyState, opts?: CustomResourceOptions): InterRegionTrafficQosPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth_guarantee_mode: Optional[str] = None,
inter_region_traffic_qos_policy_description: Optional[str] = None,
inter_region_traffic_qos_policy_name: Optional[str] = None,
status: Optional[str] = None,
transit_router_attachment_id: Optional[str] = None,
transit_router_id: Optional[str] = None) -> InterRegionTrafficQosPolicy
func GetInterRegionTrafficQosPolicy(ctx *Context, name string, id IDInput, state *InterRegionTrafficQosPolicyState, opts ...ResourceOption) (*InterRegionTrafficQosPolicy, error)
public static InterRegionTrafficQosPolicy Get(string name, Input<string> id, InterRegionTrafficQosPolicyState? state, CustomResourceOptions? opts = null)
public static InterRegionTrafficQosPolicy get(String name, Output<String> id, InterRegionTrafficQosPolicyState state, CustomResourceOptions options)
resources: _: type: alicloud:cen:InterRegionTrafficQosPolicy 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.
- Bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- Inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- Inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- Status string
- The status of the traffic scheduling policy.
- Transit
Router stringAttachment Id - Peer Attachment ID.
- Transit
Router stringId - The ID of the forwarding router instance.
- Bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- Inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- Inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- Status string
- The status of the traffic scheduling policy.
- Transit
Router stringAttachment Id - Peer Attachment ID.
- Transit
Router stringId - The ID of the forwarding router instance.
- bandwidth
Guarantee StringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region StringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region StringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- status String
- The status of the traffic scheduling policy.
- transit
Router StringAttachment Id - Peer Attachment ID.
- transit
Router StringId - The ID of the forwarding router instance.
- bandwidth
Guarantee stringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region stringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region stringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- status string
- The status of the traffic scheduling policy.
- transit
Router stringAttachment Id - Peer Attachment ID.
- transit
Router stringId - The ID of the forwarding router instance.
- bandwidth_
guarantee_ strmode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter_
region_ strtraffic_ qos_ policy_ description - The description information of the traffic scheduling policy.
- inter_
region_ strtraffic_ qos_ policy_ name - The name of the traffic scheduling policy.
- status str
- The status of the traffic scheduling policy.
- transit_
router_ strattachment_ id - Peer Attachment ID.
- transit_
router_ strid - The ID of the forwarding router instance.
- bandwidth
Guarantee StringMode - Bandwidth guarantee mode. You can select by bandwidth or by bandwidth percentage. The default is by percentage.
- inter
Region StringTraffic Qos Policy Description - The description information of the traffic scheduling policy.
- inter
Region StringTraffic Qos Policy Name - The name of the traffic scheduling policy.
- status String
- The status of the traffic scheduling policy.
- transit
Router StringAttachment Id - Peer Attachment ID.
- transit
Router StringId - The ID of the forwarding router instance.
Import
Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy can be imported using the id, e.g.
$ pulumi import alicloud:cen/interRegionTrafficQosPolicy:InterRegionTrafficQosPolicy example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.