ALIYUN::CEN::InterRegionTrafficQosPolicy

更新时间:
复制 MD 格式

The ALIYUN::CEN::InterRegionTrafficQosPolicy resource creates an inter-region traffic QoS policy for a Cloud Enterprise Network (CEN).

Syntax

{
  "Type": "ALIYUN::CEN::InterRegionTrafficQosPolicy",
  "Properties": {
    "TransitRouterAttachmentId": String,
    "TransitRouterId": String,
    "BandwidthGuaranteeMode": String,
    "InterRegionTrafficQosPolicyName": String,
    "InterRegionTrafficQosPolicyDescription": String
  }
}

Properties

Parameter

Type

Required

Updatable

Description

Constraints

TransitRouterAttachmentId

String

Yes

No

The ID of the inter-region connection.

None

TransitRouterId

String

Yes

No

The ID of the transit router.

None

BandwidthGuaranteeMode

String

No

No

The allocation mode for guaranteed bandwidth.

Specifies whether to allocate an absolute bandwidth value or a bandwidth percentage. Valid values:

  • byBandwidth: Allocates an absolute bandwidth value to a QoS queue.

  • byBandwidthPercent (default): Allocates a bandwidth percentage to a QoS queue.

InterRegionTrafficQosPolicyDescription

String

No

Yes

The description of the QoS policy.

The description must be 1 to 256 characters long and cannot start with http:// or https://.

InterRegionTrafficQosPolicyName

String

No

Yes

The name of the QoS policy.

The name can be empty or up to 128 characters long. It cannot start with http:// or https://.

Return value

Fn::GetAtt

  • TransitRouterAttachmentId: The ID of the inter-region connection.

  • InterRegionTrafficQosPolicyName: The name of the QoS policy.

  • InterRegionTrafficQosPolicyDescription: The description of the QoS policy.

  • InterRegionTrafficQosPolicyId: The ID of the QoS policy.

  • BandwidthGuaranteeMode: The allocation mode for guaranteed bandwidth.

  • TransitRouterId: The ID of the transit router.

Examples

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  TransitRouterAttachmentId:
    Type: String
    Description: The ID of the inter-region connection.
    Required: true
  TransitRouterId:
    Type: String
    Description: The ID of the transit router.
    Required: true
Resources:
  ExtensionResource:
    Type: ALIYUN::CEN::InterRegionTrafficQosPolicy
    Properties:
      TransitRouterAttachmentId:
        Ref: TransitRouterAttachmentId
      TransitRouterId:
        Ref: TransitRouterId
Outputs:
  TransitRouterAttachmentId:
    Description: The ID of the inter-region connection.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterAttachmentId
  InterRegionTrafficQosPolicyName:
    Description: The name of the QoS policy.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosPolicyName
  InterRegionTrafficQosPolicyDescription:
    Description: The description of the QoS policy.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosPolicyDescription
  InterRegionTrafficQosPolicyId:
    Description: The ID of the QoS policy.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - InterRegionTrafficQosPolicyId
  BandwidthGuaranteeMode:
    Description: The allocation mode for guaranteed bandwidth.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - BandwidthGuaranteeMode
  TransitRouterId:
    Description: The ID of the transit router.
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - TransitRouterId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "TransitRouterAttachmentId": {
      "Type": "String",
      "Description": "The ID of the inter-region connection.",
      "Required": true
    },
    "TransitRouterId": {
      "Type": "String",
      "Description": "The ID of the transit router.",
      "Required": true
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::CEN::InterRegionTrafficQosPolicy",
      "Properties": {
        "TransitRouterAttachmentId": {
          "Ref": "TransitRouterAttachmentId"
        },
        "TransitRouterId": {
          "Ref": "TransitRouterId"
        }
      }
    }
  },
  "Outputs": {
    "TransitRouterAttachmentId": {
      "Description": "The ID of the inter-region connection.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterAttachmentId"
        ]
      }
    },
    "InterRegionTrafficQosPolicyName": {
      "Description": "The name of the QoS policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosPolicyName"
        ]
      }
    },
    "InterRegionTrafficQosPolicyDescription": {
      "Description": "The description of the QoS policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosPolicyDescription"
        ]
      }
    },
    "InterRegionTrafficQosPolicyId": {
      "Description": "The ID of the QoS policy.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "InterRegionTrafficQosPolicyId"
        ]
      }
    },
    "BandwidthGuaranteeMode": {
      "Description": "The allocation mode for guaranteed bandwidth.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "BandwidthGuaranteeMode"
        ]
      }
    },
    "TransitRouterId": {
      "Description": "The ID of the transit router.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "TransitRouterId"
        ]
      }
    }
  }
}