ALIYUN::CEN::TransitRouterGrantAttachment

ALIYUN::CEN::TransitRouterGrantAttachment类型用于为转发路由器实例进行授权。

语法

{
  "Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
  "Properties": {
    "CenOwnerId": Integer,
    "CenId": String,
    "InstanceId": String,
    "InstanceType": String,
    "OrderType": String
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

CenOwnerId

Integer

云企业网实例所属的阿里云账号(主账号)ID。

CenId

String

转发路由器实例所属的云企业网实例 ID。

InstanceId

String

网络实例 ID。

InstanceType

String

网络实例的类型。

取值:

  • VPC:表示 VPC 实例。

  • ExpressConnect:表示 VBR 实例。

  • VPN:表示 IPsec 连接。

  • ECR:表示 ECR 实例。

OrderType

String

网络实例的付费方。

取值:

  • PayByCenOwner:表示网络实例产生的费用由云企业网实例所属的账号承担。

  • PayByResourceOwner:表示网络实例产生的费用由网络实例所属的账号承担。

返回值

Fn::GetAtt

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  InstanceId:
    Type: String
    Description:
      en: The ID of the network instance.
    Required: true
  CenOwnerId:
    Type: Number
    Description:
      en: The Alibaba Cloud account ID (main account ID) of the CEN instance owner.
    Required: true
  CenId:
    Type: String
    Description:
      en: The ID of the Cloud Enterprise Network (CEN) instance.
    Required: true
  InstanceType:
    Type: String
    Description:
      en: |-
        The type of the network instance. Valid values:
        - VPC: Virtual Private Cloud instance.
        - ExpressConnect: Virtual Border Router (VBR) instance.
        - VPN: IPsec connection.
        - ECR: ECR instance.
    AllowedValues:
      - VPC
      - ExpressConnect
      - VPN
      - ECR
    Required: true
Resources:
  TransitRouterGrantAttachment:
    Type: ALIYUN::CEN::TransitRouterGrantAttachment
    Properties:
      InstanceId:
        Ref: InstanceId
      CenOwnerId:
        Ref: CenOwnerId
      CenId:
        Ref: CenId
      InstanceType:
        Ref: InstanceType
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "InstanceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the network instance."
      },
      "Required": true
    },
    "CenOwnerId": {
      "Type": "Number",
      "Description": {
        "en": "The Alibaba Cloud account ID (main account ID) of the CEN instance owner."
      },
      "Required": true
    },
    "CenId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the Cloud Enterprise Network (CEN) instance."
      },
      "Required": true
    },
    "InstanceType": {
      "Type": "String",
      "Description": {
        "en": "The type of the network instance. Valid values:\n- VPC: Virtual Private Cloud instance.\n- ExpressConnect: Virtual Border Router (VBR) instance.\n- VPN: IPsec connection.\n- ECR: ECR instance."
      },
      "AllowedValues": [
        "VPC",
        "ExpressConnect",
        "VPN",
        "ECR"
      ],
      "Required": true
    }
  },
  "Resources": {
    "TransitRouterGrantAttachment": {
      "Type": "ALIYUN::CEN::TransitRouterGrantAttachment",
      "Properties": {
        "InstanceId": {
          "Ref": "InstanceId"
        },
        "CenOwnerId": {
          "Ref": "CenOwnerId"
        },
        "CenId": {
          "Ref": "CenId"
        },
        "InstanceType": {
          "Ref": "InstanceType"
        }
      }
    }
  }
}