All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CEN::TransitRouterVpnAttachment

Last Updated:Nov 27, 2023

ALIYUN::CEN::TransitRouterVpnAttachment is used to create a VPN attachment.

Syntax

{
  "Type": "ALIYUN::CEN::TransitRouterVpnAttachment",
  "Properties": {
    "AutoPublishRouteEnabled": Boolean,
    "RouteTableAssociationEnabled": Boolean,
    "VpnOwnerId": String,
    "DeletionForce": Boolean,
    "ZoneId": String,
    "RouteTablePropagationEnabled": Boolean,
    "CenId": String,
    "TransitRouterAttachmentName": String,
    "Tags": List,
    "TransitRouterAttachmentDescription": String,
    "TransitRouterId": String,
    "VpnId": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

AutoPublishRouteEnabled

Boolean

No

Yes

Specifies whether to allow the transit router to automatically advertise routes to the IPsec-VPN connection.

Valid values:

  • true (default)

  • false

RouteTableAssociationEnabled

Boolean

No

No

Specifies whether to enable associated forwarding correlations for routes.

Valid values:

  • true

  • false

VpnOwnerId

String

No

No

The ID of the Alibaba Cloud account to which the IPsec-VPN connection belongs.

This property conforms with the following requirements:

  • If you leave this property empty, the ID of the current Alibaba Cloud account is used by default.

  • This property must be specified when the IPsec-VPN connection and the transit route belong to different Alibaba Cloud accounts.

DeletionForce

Boolean

No

Yes

Specifies whether to forcefully delete the VPN attachment.  

Valid values:

  • true

  • false

ZoneId

String

Yes

No

The zone ID.

None.

RouteTablePropagationEnabled

Boolean

No

No

Specifies whether to enable route learning correlations.

Valid values:

  • true

  • false

CenId

String

No

No

The ID of the Cloud Enterprise Network (CEN) instance.

None.

TransitRouterAttachmentName

String

No

Yes

The name of the VPN attachment.

The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.

Tags

List

No

No

The information about the tags.

You can add up to 20 tags in a call. For more information, see Tags properties.

TransitRouterAttachmentDescription

String

No

Yes

The description of the VPN attachment.

The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https://.

TransitRouterId

String

No

Yes

The ID of the transit router.

None.

VpnId

String

Yes

No

The ID of the IPsec-VPN connection.

None.

Tags syntax

"Tags": [
  {
    "Value": String,
    "Key": String
  }
]

Tags properties

Property

Type

Required

Editable

Description

Constraint

Value

String

No

No

The tag value of the VPN attachment.

The tag value can be an empty string. It can be up to 128 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.

Key

String

Yes

No

The tag key of the VPN attachment.

The tag key cannot be an empty string. It can be up to 64 characters in length, and cannot contain http:// or https://. It cannot start with aliyun or acs:.

Return values

Fn::GetAtt

TransitRouterAttachmentId: the ID of the VPN attachment.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ZoneId:
        AssociationProperty: ZoneId
        Type: String
        Description:
          en: Availability zone ID in the current region.
      VpnOwnerId:
        Type: String
        Description:
          en: Alibaba Cloud account (main account) ID to which the IPsec connection belongs.
      CenId:
        Type: String
        Description:
          en: The ID of the CEN instance.
      TransitRouterAttachmentName:
        Type: String
        Description:
          en: The name of the VPN connection.
      TransitRouterId:
        Type: String
        Description:
          en: Forwarding router instance ID
      VpnId:
        Type: String
        Description:
          en: IPsec connection ID
    Resources:
      TransitRouterVpnAttachment:
        Type: ALIYUN::CEN::TransitRouterVpnAttachment
        Properties:
          VpnOwnerId:
            Ref: VpnOwnerId
          ZoneId:
            Ref: ZoneId
          CenId:
            Ref: CenId
          TransitRouterAttachmentName:
            Ref: TransitRouterAttachmentName
          TransitRouterId:
            Ref: TransitRouterId
          VpnId:
            Ref: VpnId
    Outputs:
      TransitRouterAttachmentId:
        Description: The ID of the VPN connection.
        Value:
          Fn::GetAtt:
            - TransitRouterVpnAttachment
            - TransitRouterAttachmentId
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ZoneId": {
          "AssociationProperty": "ZoneId",
          "Type": "String",
          "Description": {
            "en": "Availability zone ID in the current region."
          }
        },
        "VpnOwnerId": {
          "Type": "String",
          "Description": {
            "en": "Alibaba Cloud account (main account) ID to which the IPsec connection belongs."
          }
        },
        "CenId": {
          "Type": "String",
          "Description": {
            "en": "The ID of the CEN instance."
          }
        },
        "TransitRouterAttachmentName": {
          "Type": "String",
          "Description": {
            "en": "The name of the VPN connection."
          }
        },
        "TransitRouterId": {
          "Type": "String",
          "Description": {
            "en": "Forwarding router instance ID"
          }
        },
        "VpnId": {
          "Type": "String",
          "Description": {
            "en": "IPsec connection ID"
          }
        }
      },
      "Resources": {
        "TransitRouterVpnAttachment": {
          "Type": "ALIYUN::CEN::TransitRouterVpnAttachment",
          "Properties": {
            "VpnOwnerId": {
              "Ref": "VpnOwnerId"
            },
            "ZoneId": {
              "Ref": "ZoneId"
            },
            "CenId": {
              "Ref": "CenId"
            },
            "TransitRouterAttachmentName": {
              "Ref": "TransitRouterAttachmentName"
            },
            "TransitRouterId": {
              "Ref": "TransitRouterId"
            },
            "VpnId": {
              "Ref": "VpnId"
            }
          }
        }
      },
      "Outputs": {
        "TransitRouterAttachmentId": {
          "Description": "The ID of the VPN connection.",
          "Value": {
            "Fn::GetAtt": [
              "TransitRouterVpnAttachment",
              "TransitRouterAttachmentId"
            ]
          }
        }
      }
    }