ALIYUN::VPC::IpamResourceDiscovery

更新时间:
复制为 MD 格式

ALIYUN::VPC::IpamResourceDiscovery类型用于创建自定义类型的资源发现实例。

语法

{
  "Type": "ALIYUN::VPC::IpamResourceDiscovery",
  "Properties": {
    "OperatingRegionList": List,
    "IpamResourceDiscoveryDescription": String,
    "IpamResourceDiscoveryName": String,
    "ResourceGroupId": String,
    "Tags": List
  }
}

属性

属性名称

类型

必须

允许更新

描述

约束

OperatingRegionList

List

资源发现生效的区域列表。

长度:最小1,最大100

IpamResourceDiscoveryDescription

String

资源发现的描述。

IpamResourceDiscoveryName

String

资源发现的名称。

ResourceGroupId

String

资源组ID。

Tags

List

IPAM资源发现的标签。

长度:最大20。更多信息,请参考Tags属性

Tags语法

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

Tags属性

属性名称

类型

必须

允许更新

描述

约束

Key

String

标签键。

Value

String

标签值。

返回值

Fn::GetAtt

  • OperatingRegionList:资源发现生效的区域列表。

  • Type:资源发现的类型。

  • ResourceGroupId:资源组ID。

  • CreateTime:资源发现创建时间。

  • Tags:发现实例的标签。

  • IpamResourceDiscoveryDescription:资源发现的描述。

  • IpamResourceDiscoveryId:资源发现实例ID。

  • IpamResourceDiscoveryName:资源发现的名称。

示例

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  IpamResourceDiscoveryName:
    Type: String
    Description:
      en: The name of the resource discovery.
    Default: Null
    Required: false
  Tags:
    Description:
      en: Tags of ipam resource discovery.
    Required: false
    Default: Null
    Type: Json
    MaxLength: 20
    AssociationProperty: List[Parameters]
    AssociationPropertyMetadata:
      Parameters:
        Key:
          Type: String
          Required: true
        Value:
          Type: String
          Default: Null
          Required: false
      ListMetadata:
        Order:
          - Key
          - Value
  IpamResourceDiscoveryDescription:
    Type: String
    Description:
      en: The description of the resource discovery.
    Default: Null
    Required: false
  OperatingRegionList:
    Description:
      en: The list of regions where the resource discovery is effective.
    Required: true
    Type: Json
    MinLength: 1
    MaxLength: 100
    AssociationProperty: List[Parameter]
    AssociationPropertyMetadata:
      Parameter:
        Type: String
        Description:
          en: The operating region of resource discovery.
        Default: Null
        Required: false
  ResourceGroupId:
    Type: String
    Description:
      en: The ID of the resource group.
    AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
    Default: Null
    Required: false
Resources:
  ExtensionResource:
    Type: ALIYUN::VPC::IpamResourceDiscovery
    Properties:
      IpamResourceDiscoveryName:
        Ref: IpamResourceDiscoveryName
      Tags:
        Ref: Tags
      IpamResourceDiscoveryDescription:
        Ref: IpamResourceDiscoveryDescription
      OperatingRegionList:
        Ref: OperatingRegionList
      ResourceGroupId:
        Ref: ResourceGroupId
Outputs:
  IpamResourceDiscoveryId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamResourceDiscoveryId
    Description: The ID of the resource discovery instance.
  Tags:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Tags
    Description: The tag of the discovery instance.
  OperatingRegionList:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - OperatingRegionList
    Description: The list of regions where the resource discovery is effective.
  ResourceGroupId:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - ResourceGroupId
    Description: The ID of the resource group.
  IpamResourceDiscoveryName:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamResourceDiscoveryName
    Description: The name of the resource discovery.
  Type:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - Type
    Description: The type of resource discovery.
  CreateTime:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - CreateTime
    Description: The time when the resource discovery was created.
  IpamResourceDiscoveryDescription:
    Value:
      Fn::GetAtt:
        - ExtensionResource
        - IpamResourceDiscoveryDescription
    Description: The description of the resource discovery.
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "IpamResourceDiscoveryName": {
      "Type": "String",
      "Description": {
        "en": "The name of the resource discovery."
      },
      "Default": null,
      "Required": false
    },
    "Tags": {
      "Description": {
        "en": "Tags of ipam resource discovery."
      },
      "Required": false,
      "Default": null,
      "Type": "Json",
      "MaxLength": 20,
      "AssociationProperty": "List[Parameters]",
      "AssociationPropertyMetadata": {
        "Parameters": {
          "Key": {
            "Type": "String",
            "Required": true
          },
          "Value": {
            "Type": "String",
            "Default": null,
            "Required": false
          }
        },
        "ListMetadata": {
          "Order": [
            "Key",
            "Value"
          ]
        }
      }
    },
    "IpamResourceDiscoveryDescription": {
      "Type": "String",
      "Description": {
        "en": "The description of the resource discovery."
      },
      "Default": null,
      "Required": false
    },
    "OperatingRegionList": {
      "Description": {
        "en": "The list of regions where the resource discovery is effective."
      },
      "Required": true,
      "Type": "Json",
      "MinLength": 1,
      "MaxLength": 100,
      "AssociationProperty": "List[Parameter]",
      "AssociationPropertyMetadata": {
        "Parameter": {
          "Type": "String",
          "Description": {
            "en": "The operating region of resource discovery."
          },
          "Default": null,
          "Required": false
        }
      }
    },
    "ResourceGroupId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the resource group."
      },
      "AssociationProperty": "ALIYUN::ECS::ResourceGroup::ResourceGroupId",
      "Default": null,
      "Required": false
    }
  },
  "Resources": {
    "ExtensionResource": {
      "Type": "ALIYUN::VPC::IpamResourceDiscovery",
      "Properties": {
        "IpamResourceDiscoveryName": {
          "Ref": "IpamResourceDiscoveryName"
        },
        "Tags": {
          "Ref": "Tags"
        },
        "IpamResourceDiscoveryDescription": {
          "Ref": "IpamResourceDiscoveryDescription"
        },
        "OperatingRegionList": {
          "Ref": "OperatingRegionList"
        },
        "ResourceGroupId": {
          "Ref": "ResourceGroupId"
        }
      }
    }
  },
  "Outputs": {
    "IpamResourceDiscoveryId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamResourceDiscoveryId"
        ]
      },
      "Description": "The ID of the resource discovery instance."
    },
    "Tags": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Tags"
        ]
      },
      "Description": "The tag of the discovery instance."
    },
    "OperatingRegionList": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "OperatingRegionList"
        ]
      },
      "Description": "The list of regions where the resource discovery is effective."
    },
    "ResourceGroupId": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "ResourceGroupId"
        ]
      },
      "Description": "The ID of the resource group."
    },
    "IpamResourceDiscoveryName": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamResourceDiscoveryName"
        ]
      },
      "Description": "The name of the resource discovery."
    },
    "Type": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "Type"
        ]
      },
      "Description": "The type of resource discovery."
    },
    "CreateTime": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "CreateTime"
        ]
      },
      "Description": "The time when the resource discovery was created."
    },
    "IpamResourceDiscoveryDescription": {
      "Value": {
        "Fn::GetAtt": [
          "ExtensionResource",
          "IpamResourceDiscoveryDescription"
        ]
      },
      "Description": "The description of the resource discovery."
    }
  }
}