1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. InterRegionTrafficQosQueue
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cen.InterRegionTrafficQosQueue

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    Provides a Cen Inter Region Traffic Qos Queue resource.

    For information about Cen Inter Region Traffic Qos Queue and how to use it, see What is Inter Region Traffic Qos Queue.

    NOTE: Available since v1.195.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") || "tf_example";
    const defaultRegion = config.get("defaultRegion") || "cn-hangzhou";
    const peerRegion = config.get("peerRegion") || "cn-beijing";
    const hz = new alicloud.Provider("hz", {region: defaultRegion});
    const bj = new alicloud.Provider("bj", {region: peerRegion});
    const defaultInstance = new alicloud.cen.Instance("defaultInstance", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const defaultBandwidthPackage = new alicloud.cen.BandwidthPackage("defaultBandwidthPackage", {
        bandwidth: 5,
        cenBandwidthPackageName: "tf_example",
        geographicRegionAId: "China",
        geographicRegionBId: "China",
    }, {
        provider: alicloud.hz,
    });
    const defaultBandwidthPackageAttachment = new alicloud.cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", {
        instanceId: defaultInstance.id,
        bandwidthPackageId: defaultBandwidthPackage.id,
    }, {
        provider: alicloud.hz,
    });
    const defaultTransitRouter = new alicloud.cen.TransitRouter("defaultTransitRouter", {
        cenId: defaultInstance.id,
        supportMulticast: true,
    }, {
        provider: alicloud.hz,
    });
    const peer = new alicloud.cen.TransitRouter("peer", {
        cenId: defaultTransitRouter.cenId,
        supportMulticast: true,
    }, {
        provider: alicloud.bj,
    });
    const defaultTransitRouterPeerAttachment = new alicloud.cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", {
        cenId: defaultInstance.id,
        transitRouterId: defaultTransitRouter.transitRouterId,
        peerTransitRouterRegionId: peerRegion,
        peerTransitRouterId: peer.transitRouterId,
        cenBandwidthPackageId: defaultBandwidthPackageAttachment.bandwidthPackageId,
        bandwidth: 5,
        transitRouterAttachmentDescription: name,
        transitRouterAttachmentName: name,
    }, {
        provider: alicloud.hz,
    });
    const defaultInterRegionTrafficQosPolicy = new alicloud.cen.InterRegionTrafficQosPolicy("defaultInterRegionTrafficQosPolicy", {
        transitRouterId: defaultTransitRouter.transitRouterId,
        transitRouterAttachmentId: defaultTransitRouterPeerAttachment.transitRouterAttachmentId,
        interRegionTrafficQosPolicyName: name,
        interRegionTrafficQosPolicyDescription: name,
    }, {
        provider: alicloud.hz,
    });
    const defaultInterRegionTrafficQosQueue = new alicloud.cen.InterRegionTrafficQosQueue("defaultInterRegionTrafficQosQueue", {
        remainBandwidthPercent: 20,
        trafficQosPolicyId: defaultInterRegionTrafficQosPolicy.id,
        dscps: [
            "1",
            "2",
        ],
        interRegionTrafficQosQueueDescription: name,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    default_region = config.get("defaultRegion")
    if default_region is None:
        default_region = "cn-hangzhou"
    peer_region = config.get("peerRegion")
    if peer_region is None:
        peer_region = "cn-beijing"
    hz = alicloud.Provider("hz", region=default_region)
    bj = alicloud.Provider("bj", region=peer_region)
    default_instance = alicloud.cen.Instance("defaultInstance",
        cen_instance_name=name,
        protection_level="REDUCED")
    default_bandwidth_package = alicloud.cen.BandwidthPackage("defaultBandwidthPackage",
        bandwidth=5,
        cen_bandwidth_package_name="tf_example",
        geographic_region_a_id="China",
        geographic_region_b_id="China",
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    default_bandwidth_package_attachment = alicloud.cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment",
        instance_id=default_instance.id,
        bandwidth_package_id=default_bandwidth_package.id,
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    default_transit_router = alicloud.cen.TransitRouter("defaultTransitRouter",
        cen_id=default_instance.id,
        support_multicast=True,
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    peer = alicloud.cen.TransitRouter("peer",
        cen_id=default_transit_router.cen_id,
        support_multicast=True,
        opts=pulumi.ResourceOptions(provider=alicloud["bj"]))
    default_transit_router_peer_attachment = alicloud.cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment",
        cen_id=default_instance.id,
        transit_router_id=default_transit_router.transit_router_id,
        peer_transit_router_region_id=peer_region,
        peer_transit_router_id=peer.transit_router_id,
        cen_bandwidth_package_id=default_bandwidth_package_attachment.bandwidth_package_id,
        bandwidth=5,
        transit_router_attachment_description=name,
        transit_router_attachment_name=name,
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    default_inter_region_traffic_qos_policy = alicloud.cen.InterRegionTrafficQosPolicy("defaultInterRegionTrafficQosPolicy",
        transit_router_id=default_transit_router.transit_router_id,
        transit_router_attachment_id=default_transit_router_peer_attachment.transit_router_attachment_id,
        inter_region_traffic_qos_policy_name=name,
        inter_region_traffic_qos_policy_description=name,
        opts=pulumi.ResourceOptions(provider=alicloud["hz"]))
    default_inter_region_traffic_qos_queue = alicloud.cen.InterRegionTrafficQosQueue("defaultInterRegionTrafficQosQueue",
        remain_bandwidth_percent=20,
        traffic_qos_policy_id=default_inter_region_traffic_qos_policy.id,
        dscps=[
            "1",
            "2",
        ],
        inter_region_traffic_qos_queue_description=name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"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 := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		defaultRegion := "cn-hangzhou"
    		if param := cfg.Get("defaultRegion"); param != "" {
    			defaultRegion = param
    		}
    		peerRegion := "cn-beijing"
    		if param := cfg.Get("peerRegion"); param != "" {
    			peerRegion = param
    		}
    		_, err := alicloud.NewProvider(ctx, "hz", &alicloud.ProviderArgs{
    			Region: pulumi.String(defaultRegion),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = alicloud.NewProvider(ctx, "bj", &alicloud.ProviderArgs{
    			Region: pulumi.String(peerRegion),
    		})
    		if err != nil {
    			return err
    		}
    		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "defaultBandwidthPackage", &cen.BandwidthPackageArgs{
    			Bandwidth:               pulumi.Int(5),
    			CenBandwidthPackageName: pulumi.String("tf_example"),
    			GeographicRegionAId:     pulumi.String("China"),
    			GeographicRegionBId:     pulumi.String("China"),
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		defaultBandwidthPackageAttachment, err := cen.NewBandwidthPackageAttachment(ctx, "defaultBandwidthPackageAttachment", &cen.BandwidthPackageAttachmentArgs{
    			InstanceId:         defaultInstance.ID(),
    			BandwidthPackageId: defaultBandwidthPackage.ID(),
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		defaultTransitRouter, err := cen.NewTransitRouter(ctx, "defaultTransitRouter", &cen.TransitRouterArgs{
    			CenId:            defaultInstance.ID(),
    			SupportMulticast: pulumi.Bool(true),
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		peer, err := cen.NewTransitRouter(ctx, "peer", &cen.TransitRouterArgs{
    			CenId:            defaultTransitRouter.CenId,
    			SupportMulticast: pulumi.Bool(true),
    		}, pulumi.Provider(alicloud.Bj))
    		if err != nil {
    			return err
    		}
    		defaultTransitRouterPeerAttachment, err := cen.NewTransitRouterPeerAttachment(ctx, "defaultTransitRouterPeerAttachment", &cen.TransitRouterPeerAttachmentArgs{
    			CenId:                              defaultInstance.ID(),
    			TransitRouterId:                    defaultTransitRouter.TransitRouterId,
    			PeerTransitRouterRegionId:          pulumi.String(peerRegion),
    			PeerTransitRouterId:                peer.TransitRouterId,
    			CenBandwidthPackageId:              defaultBandwidthPackageAttachment.BandwidthPackageId,
    			Bandwidth:                          pulumi.Int(5),
    			TransitRouterAttachmentDescription: pulumi.String(name),
    			TransitRouterAttachmentName:        pulumi.String(name),
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		defaultInterRegionTrafficQosPolicy, err := cen.NewInterRegionTrafficQosPolicy(ctx, "defaultInterRegionTrafficQosPolicy", &cen.InterRegionTrafficQosPolicyArgs{
    			TransitRouterId:                        defaultTransitRouter.TransitRouterId,
    			TransitRouterAttachmentId:              defaultTransitRouterPeerAttachment.TransitRouterAttachmentId,
    			InterRegionTrafficQosPolicyName:        pulumi.String(name),
    			InterRegionTrafficQosPolicyDescription: pulumi.String(name),
    		}, pulumi.Provider(alicloud.Hz))
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewInterRegionTrafficQosQueue(ctx, "defaultInterRegionTrafficQosQueue", &cen.InterRegionTrafficQosQueueArgs{
    			RemainBandwidthPercent: pulumi.Int(20),
    			TrafficQosPolicyId:     defaultInterRegionTrafficQosPolicy.ID(),
    			Dscps: pulumi.StringArray{
    				pulumi.String("1"),
    				pulumi.String("2"),
    			},
    			InterRegionTrafficQosQueueDescription: pulumi.String(name),
    		})
    		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") ?? "tf_example";
        var defaultRegion = config.Get("defaultRegion") ?? "cn-hangzhou";
        var peerRegion = config.Get("peerRegion") ?? "cn-beijing";
        var hz = new AliCloud.Provider("hz", new()
        {
            Region = defaultRegion,
        });
    
        var bj = new AliCloud.Provider("bj", new()
        {
            Region = peerRegion,
        });
    
        var defaultInstance = new AliCloud.Cen.Instance("defaultInstance", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var defaultBandwidthPackage = new AliCloud.Cen.BandwidthPackage("defaultBandwidthPackage", new()
        {
            Bandwidth = 5,
            CenBandwidthPackageName = "tf_example",
            GeographicRegionAId = "China",
            GeographicRegionBId = "China",
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var defaultBandwidthPackageAttachment = new AliCloud.Cen.BandwidthPackageAttachment("defaultBandwidthPackageAttachment", new()
        {
            InstanceId = defaultInstance.Id,
            BandwidthPackageId = defaultBandwidthPackage.Id,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var defaultTransitRouter = new AliCloud.Cen.TransitRouter("defaultTransitRouter", new()
        {
            CenId = defaultInstance.Id,
            SupportMulticast = true,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var peer = new AliCloud.Cen.TransitRouter("peer", new()
        {
            CenId = defaultTransitRouter.CenId,
            SupportMulticast = true,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Bj,
        });
    
        var defaultTransitRouterPeerAttachment = new AliCloud.Cen.TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", new()
        {
            CenId = defaultInstance.Id,
            TransitRouterId = defaultTransitRouter.TransitRouterId,
            PeerTransitRouterRegionId = peerRegion,
            PeerTransitRouterId = peer.TransitRouterId,
            CenBandwidthPackageId = defaultBandwidthPackageAttachment.BandwidthPackageId,
            Bandwidth = 5,
            TransitRouterAttachmentDescription = name,
            TransitRouterAttachmentName = name,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var defaultInterRegionTrafficQosPolicy = new AliCloud.Cen.InterRegionTrafficQosPolicy("defaultInterRegionTrafficQosPolicy", new()
        {
            TransitRouterId = defaultTransitRouter.TransitRouterId,
            TransitRouterAttachmentId = defaultTransitRouterPeerAttachment.TransitRouterAttachmentId,
            InterRegionTrafficQosPolicyName = name,
            InterRegionTrafficQosPolicyDescription = name,
        }, new CustomResourceOptions
        {
            Provider = alicloud.Hz,
        });
    
        var defaultInterRegionTrafficQosQueue = new AliCloud.Cen.InterRegionTrafficQosQueue("defaultInterRegionTrafficQosQueue", new()
        {
            RemainBandwidthPercent = 20,
            TrafficQosPolicyId = defaultInterRegionTrafficQosPolicy.Id,
            Dscps = new[]
            {
                "1",
                "2",
            },
            InterRegionTrafficQosQueueDescription = name,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.Provider;
    import com.pulumi.alicloud.ProviderArgs;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.BandwidthPackage;
    import com.pulumi.alicloud.cen.BandwidthPackageArgs;
    import com.pulumi.alicloud.cen.BandwidthPackageAttachment;
    import com.pulumi.alicloud.cen.BandwidthPackageAttachmentArgs;
    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 com.pulumi.alicloud.cen.InterRegionTrafficQosQueue;
    import com.pulumi.alicloud.cen.InterRegionTrafficQosQueueArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            final var defaultRegion = config.get("defaultRegion").orElse("cn-hangzhou");
            final var peerRegion = config.get("peerRegion").orElse("cn-beijing");
            var hz = new Provider("hz", ProviderArgs.builder()        
                .region(defaultRegion)
                .build());
    
            var bj = new Provider("bj", ProviderArgs.builder()        
                .region(peerRegion)
                .build());
    
            var defaultInstance = new Instance("defaultInstance", InstanceArgs.builder()        
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var defaultBandwidthPackage = new BandwidthPackage("defaultBandwidthPackage", BandwidthPackageArgs.builder()        
                .bandwidth(5)
                .cenBandwidthPackageName("tf_example")
                .geographicRegionAId("China")
                .geographicRegionBId("China")
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var defaultBandwidthPackageAttachment = new BandwidthPackageAttachment("defaultBandwidthPackageAttachment", BandwidthPackageAttachmentArgs.builder()        
                .instanceId(defaultInstance.id())
                .bandwidthPackageId(defaultBandwidthPackage.id())
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var defaultTransitRouter = new TransitRouter("defaultTransitRouter", TransitRouterArgs.builder()        
                .cenId(defaultInstance.id())
                .supportMulticast(true)
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var peer = new TransitRouter("peer", TransitRouterArgs.builder()        
                .cenId(defaultTransitRouter.cenId())
                .supportMulticast(true)
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.bj())
                    .build());
    
            var defaultTransitRouterPeerAttachment = new TransitRouterPeerAttachment("defaultTransitRouterPeerAttachment", TransitRouterPeerAttachmentArgs.builder()        
                .cenId(defaultInstance.id())
                .transitRouterId(defaultTransitRouter.transitRouterId())
                .peerTransitRouterRegionId(peerRegion)
                .peerTransitRouterId(peer.transitRouterId())
                .cenBandwidthPackageId(defaultBandwidthPackageAttachment.bandwidthPackageId())
                .bandwidth(5)
                .transitRouterAttachmentDescription(name)
                .transitRouterAttachmentName(name)
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var defaultInterRegionTrafficQosPolicy = new InterRegionTrafficQosPolicy("defaultInterRegionTrafficQosPolicy", InterRegionTrafficQosPolicyArgs.builder()        
                .transitRouterId(defaultTransitRouter.transitRouterId())
                .transitRouterAttachmentId(defaultTransitRouterPeerAttachment.transitRouterAttachmentId())
                .interRegionTrafficQosPolicyName(name)
                .interRegionTrafficQosPolicyDescription(name)
                .build(), CustomResourceOptions.builder()
                    .provider(alicloud.hz())
                    .build());
    
            var defaultInterRegionTrafficQosQueue = new InterRegionTrafficQosQueue("defaultInterRegionTrafficQosQueue", InterRegionTrafficQosQueueArgs.builder()        
                .remainBandwidthPercent(20)
                .trafficQosPolicyId(defaultInterRegionTrafficQosPolicy.id())
                .dscps(            
                    1,
                    2)
                .interRegionTrafficQosQueueDescription(name)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
      defaultRegion:
        type: string
        default: cn-hangzhou
      peerRegion:
        type: string
        default: cn-beijing
    resources:
      hz:
        type: pulumi:providers:alicloud
        properties:
          region: ${defaultRegion}
      bj:
        type: pulumi:providers:alicloud
        properties:
          region: ${peerRegion}
      defaultInstance:
        type: alicloud:cen:Instance
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      defaultBandwidthPackage:
        type: alicloud:cen:BandwidthPackage
        properties:
          bandwidth: 5
          cenBandwidthPackageName: tf_example
          geographicRegionAId: China
          geographicRegionBId: China
        options:
          provider: ${alicloud.hz}
      defaultBandwidthPackageAttachment:
        type: alicloud:cen:BandwidthPackageAttachment
        properties:
          instanceId: ${defaultInstance.id}
          bandwidthPackageId: ${defaultBandwidthPackage.id}
        options:
          provider: ${alicloud.hz}
      defaultTransitRouter:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${defaultInstance.id}
          supportMulticast: true
        options:
          provider: ${alicloud.hz}
      peer:
        type: alicloud:cen:TransitRouter
        properties:
          cenId: ${defaultTransitRouter.cenId}
          supportMulticast: true
        options:
          provider: ${alicloud.bj}
      defaultTransitRouterPeerAttachment:
        type: alicloud:cen:TransitRouterPeerAttachment
        properties:
          cenId: ${defaultInstance.id}
          transitRouterId: ${defaultTransitRouter.transitRouterId}
          peerTransitRouterRegionId: ${peerRegion}
          peerTransitRouterId: ${peer.transitRouterId}
          cenBandwidthPackageId: ${defaultBandwidthPackageAttachment.bandwidthPackageId}
          bandwidth: 5
          transitRouterAttachmentDescription: ${name}
          transitRouterAttachmentName: ${name}
        options:
          provider: ${alicloud.hz}
      defaultInterRegionTrafficQosPolicy:
        type: alicloud:cen:InterRegionTrafficQosPolicy
        properties:
          transitRouterId: ${defaultTransitRouter.transitRouterId}
          transitRouterAttachmentId: ${defaultTransitRouterPeerAttachment.transitRouterAttachmentId}
          interRegionTrafficQosPolicyName: ${name}
          interRegionTrafficQosPolicyDescription: ${name}
        options:
          provider: ${alicloud.hz}
      defaultInterRegionTrafficQosQueue:
        type: alicloud:cen:InterRegionTrafficQosQueue
        properties:
          remainBandwidthPercent: 20
          trafficQosPolicyId: ${defaultInterRegionTrafficQosPolicy.id}
          dscps:
            - 1
            - 2
          interRegionTrafficQosQueueDescription: ${name}
    

    Create InterRegionTrafficQosQueue Resource

    new InterRegionTrafficQosQueue(name: string, args: InterRegionTrafficQosQueueArgs, opts?: CustomResourceOptions);
    @overload
    def InterRegionTrafficQosQueue(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   dscps: Optional[Sequence[str]] = None,
                                   inter_region_traffic_qos_queue_description: Optional[str] = None,
                                   inter_region_traffic_qos_queue_name: Optional[str] = None,
                                   remain_bandwidth_percent: Optional[int] = None,
                                   traffic_qos_policy_id: Optional[str] = None)
    @overload
    def InterRegionTrafficQosQueue(resource_name: str,
                                   args: InterRegionTrafficQosQueueArgs,
                                   opts: Optional[ResourceOptions] = None)
    func NewInterRegionTrafficQosQueue(ctx *Context, name string, args InterRegionTrafficQosQueueArgs, opts ...ResourceOption) (*InterRegionTrafficQosQueue, error)
    public InterRegionTrafficQosQueue(string name, InterRegionTrafficQosQueueArgs args, CustomResourceOptions? opts = null)
    public InterRegionTrafficQosQueue(String name, InterRegionTrafficQosQueueArgs args)
    public InterRegionTrafficQosQueue(String name, InterRegionTrafficQosQueueArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:InterRegionTrafficQosQueue
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args InterRegionTrafficQosQueueArgs
    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 InterRegionTrafficQosQueueArgs
    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 InterRegionTrafficQosQueueArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InterRegionTrafficQosQueueArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InterRegionTrafficQosQueueArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    InterRegionTrafficQosQueue Resource Properties

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

    Inputs

    The InterRegionTrafficQosQueue resource accepts the following input properties:

    Dscps List<string>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    RemainBandwidthPercent int
    The percentage of cross-region bandwidth that the current queue can use.
    TrafficQosPolicyId string
    The ID of the traffic scheduling policy.
    InterRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    InterRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    Dscps []string
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    RemainBandwidthPercent int
    The percentage of cross-region bandwidth that the current queue can use.
    TrafficQosPolicyId string
    The ID of the traffic scheduling policy.
    InterRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    InterRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    dscps List<String>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    remainBandwidthPercent Integer
    The percentage of cross-region bandwidth that the current queue can use.
    trafficQosPolicyId String
    The ID of the traffic scheduling policy.
    interRegionTrafficQosQueueDescription String
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName String
    The name of the traffic scheduling policy.
    dscps string[]
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    remainBandwidthPercent number
    The percentage of cross-region bandwidth that the current queue can use.
    trafficQosPolicyId string
    The ID of the traffic scheduling policy.
    interRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    dscps Sequence[str]
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    remain_bandwidth_percent int
    The percentage of cross-region bandwidth that the current queue can use.
    traffic_qos_policy_id str
    The ID of the traffic scheduling policy.
    inter_region_traffic_qos_queue_description str
    The description information of the traffic scheduling policy.
    inter_region_traffic_qos_queue_name str
    The name of the traffic scheduling policy.
    dscps List<String>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    remainBandwidthPercent Number
    The percentage of cross-region bandwidth that the current queue can use.
    trafficQosPolicyId String
    The ID of the traffic scheduling policy.
    interRegionTrafficQosQueueDescription String
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName String
    The name of the traffic scheduling policy.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.

    Look up Existing InterRegionTrafficQosQueue Resource

    Get an existing InterRegionTrafficQosQueue 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?: InterRegionTrafficQosQueueState, opts?: CustomResourceOptions): InterRegionTrafficQosQueue
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dscps: Optional[Sequence[str]] = None,
            inter_region_traffic_qos_queue_description: Optional[str] = None,
            inter_region_traffic_qos_queue_name: Optional[str] = None,
            remain_bandwidth_percent: Optional[int] = None,
            status: Optional[str] = None,
            traffic_qos_policy_id: Optional[str] = None) -> InterRegionTrafficQosQueue
    func GetInterRegionTrafficQosQueue(ctx *Context, name string, id IDInput, state *InterRegionTrafficQosQueueState, opts ...ResourceOption) (*InterRegionTrafficQosQueue, error)
    public static InterRegionTrafficQosQueue Get(string name, Input<string> id, InterRegionTrafficQosQueueState? state, CustomResourceOptions? opts = null)
    public static InterRegionTrafficQosQueue get(String name, Output<String> id, InterRegionTrafficQosQueueState 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.
    The following state arguments are supported:
    Dscps List<string>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    InterRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    InterRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    RemainBandwidthPercent int
    The percentage of cross-region bandwidth that the current queue can use.
    Status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    TrafficQosPolicyId string
    The ID of the traffic scheduling policy.
    Dscps []string
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    InterRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    InterRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    RemainBandwidthPercent int
    The percentage of cross-region bandwidth that the current queue can use.
    Status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    TrafficQosPolicyId string
    The ID of the traffic scheduling policy.
    dscps List<String>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    interRegionTrafficQosQueueDescription String
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName String
    The name of the traffic scheduling policy.
    remainBandwidthPercent Integer
    The percentage of cross-region bandwidth that the current queue can use.
    status String
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    trafficQosPolicyId String
    The ID of the traffic scheduling policy.
    dscps string[]
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    interRegionTrafficQosQueueDescription string
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName string
    The name of the traffic scheduling policy.
    remainBandwidthPercent number
    The percentage of cross-region bandwidth that the current queue can use.
    status string
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    trafficQosPolicyId string
    The ID of the traffic scheduling policy.
    dscps Sequence[str]
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    inter_region_traffic_qos_queue_description str
    The description information of the traffic scheduling policy.
    inter_region_traffic_qos_queue_name str
    The name of the traffic scheduling policy.
    remain_bandwidth_percent int
    The percentage of cross-region bandwidth that the current queue can use.
    status str
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    traffic_qos_policy_id str
    The ID of the traffic scheduling policy.
    dscps List<String>
    The DSCP value of the traffic packet to be matched in the current queue, ranging from 0 to 63.
    interRegionTrafficQosQueueDescription String
    The description information of the traffic scheduling policy.
    interRegionTrafficQosQueueName String
    The name of the traffic scheduling policy.
    remainBandwidthPercent Number
    The percentage of cross-region bandwidth that the current queue can use.
    status String
    The status of the traffic scheduling policy. -Creating: The function is being created.-Active: available.-Modifying: is being modified.-Deleting: Deleted.-Deleted: Deleted.
    trafficQosPolicyId String
    The ID of the traffic scheduling policy.

    Import

    Cen Inter Region Traffic Qos Queue can be imported using the id, e.g.

    $ pulumi import alicloud:cen/interRegionTrafficQosQueue:InterRegionTrafficQosQueue example <id>
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi