ALIYUN::DataLakeFormation::VpcConfig类型用于配置VPC白名单。
语法
{
"Type": "ALIYUN::DataLakeFormation::VpcConfig",
"Properties": {
"VpcId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
VpcId | String | 是 | 否 | 专有网络ID。 | 无 |
返回值
Fn::GetAtt
VpcId:专有网络ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
AssociationProperty: ALIYUN::ECS::VPC::VPCId
Type: String
Description:
en: The VPC ID to be config.
Required: true
Resources:
VpcConfig:
Type: ALIYUN::DataLakeFormation::VpcConfig
Properties:
VpcId:
Ref: VpcId
Outputs:
VpcId:
Description: VPC ID.
Value:
Fn::GetAtt:
- VpcConfig
- VpcId
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"AssociationProperty": "ALIYUN::ECS::VPC::VPCId",
"Type": "String",
"Description": {
"en": "The VPC ID to be config."
},
"Required": true
}
},
"Resources": {
"VpcConfig": {
"Type": "ALIYUN::DataLakeFormation::VpcConfig",
"Properties": {
"VpcId": {
"Ref": "VpcId"
}
}
}
},
"Outputs": {
"VpcId": {
"Description": "VPC ID.",
"Value": {
"Fn::GetAtt": [
"VpcConfig",
"VpcId"
]
}
}
}
}
该文章对您有帮助吗?