ALIYUN::EDAS::UserDefineRegion

更新时间:
复制 MD 格式

You can use the ALIYUN::EDAS::UserDefineRegion resource to create or edit a custom namespace.

Syntax

{
  "Type": "ALIYUN::EDAS::UserDefineRegion",
  "Properties": {
    "RegionName": String,
    "DebugEnable": Boolean,
    "Description": String,
    "RegionTag": String
  }
}

Properties

Property name

Type

Required

Update allowed

Description

Constraints

RegionName

String

Yes

Yes

The name of the logical region (namespace).

None

DebugEnable

Boolean

No

Yes

Specifies whether to enable remote debugging.

Valid values:

  • true

  • false (The default value)

Description

String

No

Yes

The description of the logical region (namespace).

The value must be 1 to 64 characters in length.

RegionTag

String

Yes

No

The ID of the logical region (namespace).

This property cannot be changed after the resource is created. The format is "Physical Region ID:Logical Region Identifier".

The logical region identifier must be 1 to 32 characters in length and can contain only letters and digits.

Return values

Fn::GetAtt

  • BelongRegion: The ID of the physical region to which the namespace belongs.

  • DebugEnable: Specifies whether to enable remote debugging.

  • UserId: The ID of the root account.

  • Id: The ID of the logical region.

  • RegionName: The name of the logical region (namespace).

Examples

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  RegionName:
    Type: String
    Description: The name of the logical region (namespace).
    Default: mytest
Resources:
  UserDefineRegion:
    Type: ALIYUN::EDAS::UserDefineRegion
    Properties:
      RegionName:
        Ref: RegionName
      RegionTag:
        Fn::Join:
          - ':'
          - - Ref: ALIYUN::Region
            - Ref: RegionName
Outputs:
  BelongRegion:
    Description: The ID of the physical region.
    Value:
      Fn::GetAtt:
        - UserDefineRegion
        - BelongRegion
  DebugEnable:
    Description: Indicates whether remote debugging is enabled.
    Value:
      Fn::GetAtt:
        - UserDefineRegion
        - DebugEnable
  UserId:
    Description: The ID of the Alibaba Cloud account.
    Value:
      Fn::GetAtt:
        - UserDefineRegion
        - UserId
  Id:
    Description: The ID of the resource.
    Value:
      Fn::GetAtt:
        - UserDefineRegion
        - Id
  RegionName:
    Description: The name of the region.
    Value:
      Fn::GetAtt:
        - UserDefineRegion
        - RegionName

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "RegionName": {
      "Type": "String",
      "Description": "The name of the logical region (namespace).",
      "Default": "mytest"
    }
  },
  "Resources": {
    "UserDefineRegion": {
      "Type": "ALIYUN::EDAS::UserDefineRegion",
      "Properties": {
        "RegionName": {
          "Ref": "RegionName"
        },
        "RegionTag": {
          "Fn::Join": [
            ":",
            [
              {
                "Ref": "ALIYUN::Region"
              },
              {
                "Ref": "RegionName"
              }
            ]
          ]
        }
      }
    }
  },
  "Outputs": {
    "BelongRegion": {
      "Description": "The ID of the physical region.",
      "Value": {
        "Fn::GetAtt": [
          "UserDefineRegion",
          "BelongRegion"
        ]
      }
    },
    "DebugEnable": {
      "Description": "Indicates whether remote debugging is enabled.",
      "Value": {
        "Fn::GetAtt": [
          "UserDefineRegion",
          "DebugEnable"
        ]
      }
    },
    "UserId": {
      "Description": "The ID of the Alibaba Cloud account.",
      "Value": {
        "Fn::GetAtt": [
          "UserDefineRegion",
          "UserId"
        ]
      }
    },
    "Id": {
      "Description": "The ID of the resource.",
      "Value": {
        "Fn::GetAtt": [
          "UserDefineRegion",
          "Id"
        ]
      }
    },
    "RegionName": {
      "Description": "The name of the region.",
      "Value": {
        "Fn::GetAtt": [
          "UserDefineRegion",
          "RegionName"
        ]
      }
    }
  }
}