Skip to content

Commit

Permalink
Add boto exceptions for AppSync patterns (#3772)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong authored Oct 21, 2024
1 parent 0a31357 commit 6cece36
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion scripts/boto/update_schemas_from_boto.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def build_resource_type_patches(
if not value:
continue
if field == "pattern":
if value == ".*":
if value in [".*", "^.*$"]:
continue
try:
re.compile(value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,5 @@
"op": "add",
"path": "/properties/DataSourceName/pattern",
"value": "[_A-Za-z][_0-9A-Za-z]*"
},
{
"op": "add",
"path": "/properties/RequestMappingTemplate/pattern",
"value": "^.*$"
},
{
"op": "add",
"path": "/properties/ResponseMappingTemplate/pattern",
"value": "^.*$"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
"path": "/properties/DataSourceName/pattern",
"value": "[_A-Za-z][_0-9A-Za-z]*"
},
{
"op": "add",
"path": "/properties/RequestMappingTemplate/pattern",
"value": "^.*$"
},
{
"op": "add",
"path": "/properties/ResponseMappingTemplate/pattern",
"value": "^.*$"
},
{
"op": "add",
"path": "/properties/Kind/enum",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
[
{
"op": "add",
"path": "/properties/Branch/pattern",
"value": "^.*$"
},
{
"op": "add",
"path": "/properties/RoleArn/pattern",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"op": "add",
"path": "/properties/IntegrationName/pattern",
"value": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"IntegrationName": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
"type": "string"
},
"KMSKeyId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,8 +516,10 @@
},
"HealthCheckType": {
"enum": [
"EBS",
"EC2",
"ELB"
"ELB",
"VPC_LATTICE"
],
"type": "string"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"IntegrationName": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
"type": "string"
},
"KMSKeyId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"IntegrationName": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
"type": "string"
},
"KMSKeyId": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@
"type": "string"
},
"RequestMappingTemplate": {
"pattern": "^.*$",
"type": "string"
},
"RequestMappingTemplateS3Location": {
"type": "string"
},
"ResponseMappingTemplate": {
"pattern": "^.*$",
"type": "string"
},
"ResponseMappingTemplateS3Location": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@
"$ref": "#/definitions/PipelineConfig"
},
"RequestMappingTemplate": {
"pattern": "^.*$",
"type": "string"
},
"RequestMappingTemplateS3Location": {
Expand All @@ -139,7 +138,6 @@
"type": "string"
},
"ResponseMappingTemplate": {
"pattern": "^.*$",
"type": "string"
},
"ResponseMappingTemplateS3Location": {
Expand Down

0 comments on commit 6cece36

Please sign in to comment.