DATASOURCE::VPC::PrefixList類型用于查詢指定前綴列表的列表信息。
語法
{
"Type": "DATASOURCE::VPC::PrefixList",
"Properties": {
"PrefixListId": String,
"RefreshOptions": String
}
}
屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
PrefixListId | String | 是 | 是 | 要查詢的前綴列表ID。 | 無 |
RefreshOptions | String | 否 | 是 | 當資源棧更新時,數據源資源的刷新策略。 | 有效值:
|
返回值
Fn::GetAtt
MaxEntries:前綴列表中CIDR地址塊的最大條目數。
ResourceGroupId:前綴列表所屬的資源組ID。
OwnerId:前綴列表所屬的阿里云賬號(主賬號)。
PrefixListDescription:前綴列表的描述信息。
IpVersion:前綴列表的IP版本。
PrefixListId:查詢到的前綴列表ID。
PrefixListName:前綴列表的名稱。
CreateTime:創建前綴列表的時間。
Entries:前綴列表中的CIDR地址塊列表。
Tags:標簽列表。
ShareType:前綴列表的共享類型。
示例
YAML格式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PrefixListId:
Description:
en: The ID of the query Prefix List.
Required: true
Type: String
Resources:
ExtensionDataSource:
Properties:
PrefixListId:
Ref: PrefixListId
Type: DATASOURCE::VPC::PrefixList
Outputs:
CreateTime:
Description: The time when the prefix list was created.
Value:
Fn::GetAtt:
- ExtensionDataSource
- CreateTime
Entries:
Description: The CIDR address block list of the prefix list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Entries
IpVersion:
Description: The IP version of the prefix list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- IpVersion
MaxEntries:
Description: The maximum number of entries for CIDR address blocks in the prefix
list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MaxEntries
OwnerId:
Description: The Alibaba Cloud account (primary account) to which the prefix list
belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- OwnerId
PrefixListDescription:
Description: The description of the prefix list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PrefixListDescription
PrefixListId:
Description: The ID of the query Prefix List.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PrefixListId
PrefixListName:
Description: The name of the prefix list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PrefixListName
ResourceGroupId:
Description: The ID of the resource group to which the VPC belongs.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ResourceGroupId
ShareType:
Description: The share type of the prefix list.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ShareType
Tags:
Description: The tags of PrefixList.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Tags
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PrefixListId": {
"Type": "String",
"Description": {
"en": "The ID of the query Prefix List."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::VPC::PrefixList",
"Properties": {
"PrefixListId": {
"Ref": "PrefixListId"
}
}
}
},
"Outputs": {
"MaxEntries": {
"Description": "The maximum number of entries for CIDR address blocks in the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MaxEntries"
]
}
},
"ResourceGroupId": {
"Description": "The ID of the resource group to which the VPC belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ResourceGroupId"
]
}
},
"OwnerId": {
"Description": "The Alibaba Cloud account (primary account) to which the prefix list belongs.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"OwnerId"
]
}
},
"PrefixListDescription": {
"Description": "The description of the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PrefixListDescription"
]
}
},
"IpVersion": {
"Description": "The IP version of the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"IpVersion"
]
}
},
"PrefixListId": {
"Description": "The ID of the query Prefix List.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PrefixListId"
]
}
},
"PrefixListName": {
"Description": "The name of the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PrefixListName"
]
}
},
"CreateTime": {
"Description": "The time when the prefix list was created.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"CreateTime"
]
}
},
"Entries": {
"Description": "The CIDR address block list of the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Entries"
]
}
},
"Tags": {
"Description": "The tags of PrefixList.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Tags"
]
}
},
"ShareType": {
"Description": "The share type of the prefix list.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ShareType"
]
}
}
}
}
文檔內容是否對您有幫助?