【发布时间】:2020-10-18 00:15:02
【问题描述】:
"SSHLocation" : {
"Description" : "The IP address range that can SSH to the EC2 instance.",
"Type": "String",
"MinLength": "9",
"MaxLength": "18",
"Default": "0.0.0.0/0",
"AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
"ConstraintDescription": "Must be a valid IP CIDR range of the form x.x.x.x/x."
}
}
你能帮我理解这个语法吗?比如:什么是最大和最小长度?这个AllowedPattern 语法是什么?它是如何工作的?
【问题讨论】:
标签: amazon-web-services ssh amazon-cloudformation