Skip to content

Commit 6cece36

Browse files
authored
Add boto exceptions for AppSync patterns (#3772)
1 parent 0a31357 commit 6cece36

File tree

11 files changed

+14
-31
lines changed

11 files changed

+14
-31
lines changed

scripts/boto/update_schemas_from_boto.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def build_resource_type_patches(
7070
if not value:
7171
continue
7272
if field == "pattern":
73-
if value == ".*":
73+
if value in [".*", "^.*$"]:
7474
continue
7575
try:
7676
re.compile(value)

src/cfnlint/data/schemas/patches/extensions/all/aws_appsync_functionconfiguration/boto.json

-10
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,5 @@
88
"op": "add",
99
"path": "/properties/DataSourceName/pattern",
1010
"value": "[_A-Za-z][_0-9A-Za-z]*"
11-
},
12-
{
13-
"op": "add",
14-
"path": "/properties/RequestMappingTemplate/pattern",
15-
"value": "^.*$"
16-
},
17-
{
18-
"op": "add",
19-
"path": "/properties/ResponseMappingTemplate/pattern",
20-
"value": "^.*$"
2111
}
2212
]

src/cfnlint/data/schemas/patches/extensions/all/aws_appsync_resolver/boto.json

-10
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,6 @@
1414
"path": "/properties/DataSourceName/pattern",
1515
"value": "[_A-Za-z][_0-9A-Za-z]*"
1616
},
17-
{
18-
"op": "add",
19-
"path": "/properties/RequestMappingTemplate/pattern",
20-
"value": "^.*$"
21-
},
22-
{
23-
"op": "add",
24-
"path": "/properties/ResponseMappingTemplate/pattern",
25-
"value": "^.*$"
26-
},
2717
{
2818
"op": "add",
2919
"path": "/properties/Kind/enum",

src/cfnlint/data/schemas/patches/extensions/all/aws_codestarconnections_syncconfiguration/boto.json

-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
[
2-
{
3-
"op": "add",
4-
"path": "/properties/Branch/pattern",
5-
"value": "^.*$"
6-
},
72
{
83
"op": "add",
94
"path": "/properties/RoleArn/pattern",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"op": "add",
4+
"path": "/properties/IntegrationName/pattern",
5+
"value": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$"
6+
}
7+
]

src/cfnlint/data/schemas/providers/ca_west_1/aws-redshift-integration.json

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"IntegrationName": {
6464
"maxLength": 64,
6565
"minLength": 1,
66+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
6667
"type": "string"
6768
},
6869
"KMSKeyId": {

src/cfnlint/data/schemas/providers/eu_central_1/aws-autoscaling-autoscalinggroup.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,10 @@
516516
},
517517
"HealthCheckType": {
518518
"enum": [
519+
"EBS",
519520
"EC2",
520-
"ELB"
521+
"ELB",
522+
"VPC_LATTICE"
521523
],
522524
"type": "string"
523525
},

src/cfnlint/data/schemas/providers/eu_central_1/aws-redshift-integration.json

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"IntegrationName": {
6464
"maxLength": 64,
6565
"minLength": 1,
66+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
6667
"type": "string"
6768
},
6869
"KMSKeyId": {

src/cfnlint/data/schemas/providers/eu_central_2/aws-redshift-integration.json

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
"IntegrationName": {
6464
"maxLength": 64,
6565
"minLength": 1,
66+
"pattern": "^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$",
6667
"type": "string"
6768
},
6869
"KMSKeyId": {

src/cfnlint/data/schemas/providers/us_east_1/aws-appsync-functionconfiguration.json

-2
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,12 @@
8585
"type": "string"
8686
},
8787
"RequestMappingTemplate": {
88-
"pattern": "^.*$",
8988
"type": "string"
9089
},
9190
"RequestMappingTemplateS3Location": {
9291
"type": "string"
9392
},
9493
"ResponseMappingTemplate": {
95-
"pattern": "^.*$",
9694
"type": "string"
9795
},
9896
"ResponseMappingTemplateS3Location": {

src/cfnlint/data/schemas/providers/us_east_1/aws-appsync-resolver.json

-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"$ref": "#/definitions/PipelineConfig"
130130
},
131131
"RequestMappingTemplate": {
132-
"pattern": "^.*$",
133132
"type": "string"
134133
},
135134
"RequestMappingTemplateS3Location": {
@@ -139,7 +138,6 @@
139138
"type": "string"
140139
},
141140
"ResponseMappingTemplate": {
142-
"pattern": "^.*$",
143141
"type": "string"
144142
},
145143
"ResponseMappingTemplateS3Location": {

0 commit comments

Comments
 (0)