Skip to content

Commit a4fa458

Browse files
Josh SennettJosh Sennett
andauthored
Update schema properties to match API rules (#21)
Co-authored-by: Josh Sennett <[email protected]>
1 parent 6854165 commit a4fa458

File tree

8 files changed

+29
-26
lines changed

8 files changed

+29
-26
lines changed

aws-datasync-agent/aws-datasync-agent.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"Key": {
1111
"type": "string",
1212
"description": "The key for an AWS resource tag.",
13-
"pattern": "^[a-zA-Z0-9\\s+=.:/-]+$",
13+
"pattern": "^[a-zA-Z0-9\\s+=._:/-]+$",
1414
"maxLength": 256,
1515
"minLength": 1
1616
},
1717
"Value": {
1818
"type": "string",
1919
"description": "The value for an AWS resource tag.",
20-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
20+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
2121
"maxLength": 256,
2222
"minLength": 1
2323
}
@@ -32,7 +32,7 @@
3232
"AgentName": {
3333
"description": "The name configured for the agent. Text reference used to identify the agent in the console.",
3434
"type": "string",
35-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
35+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
3636
"maxLength": 256,
3737
"minLength": 1
3838
},
@@ -77,7 +77,7 @@
7777
"Tags": {
7878
"description": "An array of key-value pairs to apply to this resource.",
7979
"type": "array",
80-
"maxItems": 55,
80+
"maxItems": 50,
8181
"uniqueItems": true,
8282
"insertionOrder": false,
8383
"items": {

aws-datasync-locationefs/aws-datasync-locationefs.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"Value": {
4545
"type": "string",
4646
"description": "The value for an AWS resource tag.",
47-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
47+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
4848
"maxLength": 256,
4949
"minLength": 1
5050
}
@@ -68,12 +68,13 @@
6868
"Subdirectory": {
6969
"description": "A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.",
7070
"type": "string",
71-
"maxLength": 4096
71+
"maxLength": 4096,
72+
"pattern": "^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"
7273
},
7374
"Tags": {
7475
"description": "An array of key-value pairs to apply to this resource.",
7576
"type": "array",
76-
"maxItems": 55,
77+
"maxItems": 50,
7778
"uniqueItems": true,
7879
"insertionOrder": false,
7980
"items": {

aws-datasync-locationfsxwindows/aws-datasync-locationfsxwindows.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Value": {
1818
"type": "string",
1919
"description": "The value for an AWS resource tag.",
20-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
20+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
2121
"maxLength": 256,
2222
"minLength": 1
2323
}
@@ -71,7 +71,7 @@
7171
"Tags": {
7272
"description": "An array of key-value pairs to apply to this resource.",
7373
"type": "array",
74-
"maxItems": 55,
74+
"maxItems": 50,
7575
"uniqueItems": true,
7676
"insertionOrder": false,
7777
"items": {

aws-datasync-locationnfs/aws-datasync-locationnfs.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"maxLength": 128
3333
},
3434
"minItems": 1,
35-
"maxItems": 64
35+
"maxItems": 4
3636
}
3737
},
3838
"required": [
@@ -53,7 +53,7 @@
5353
"Value": {
5454
"type": "string",
5555
"description": "The value for an AWS resource tag.",
56-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
56+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
5757
"maxLength": 256,
5858
"minLength": 1
5959
}
@@ -83,12 +83,13 @@
8383
"Subdirectory": {
8484
"description": "The subdirectory in the NFS file system that is used to read data from the NFS source location or write data to the NFS destination.",
8585
"type": "string",
86-
"maxLength": 4096
86+
"maxLength": 4096,
87+
"pattern": "^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"
8788
},
8889
"Tags": {
8990
"description": "An array of key-value pairs to apply to this resource.",
9091
"type": "array",
91-
"maxItems": 55,
92+
"maxItems": 50,
9293
"uniqueItems": true,
9394
"insertionOrder": false,
9495
"items": {

aws-datasync-locationobjectstorage/aws-datasync-locationobjectstorage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"Value": {
1818
"type": "string",
1919
"description": "The value for an AWS resource tag.",
20-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
20+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
2121
"maxLength": 256,
2222
"minLength": 1
2323
}
@@ -90,7 +90,7 @@
9090
"Tags": {
9191
"description": "An array of key-value pairs to apply to this resource.",
9292
"type": "array",
93-
"maxItems": 55,
93+
"maxItems": 50,
9494
"uniqueItems": true,
9595
"insertionOrder": false,
9696
"items": {

aws-datasync-locations3/aws-datasync-locations3.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Value": {
3333
"type": "string",
3434
"description": "The value for an AWS resource tag.",
35-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
35+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
3636
"maxLength": 256,
3737
"minLength": 1
3838
}
@@ -50,13 +50,14 @@
5050
"S3BucketArn": {
5151
"description": "The Amazon Resource Name (ARN) of the Amazon S3 bucket.",
5252
"type": "string",
53-
"maxLength": 76,
54-
"pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3:::([^/]*)$"
53+
"maxLength": 156,
54+
"pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):s3:[a-z\\-0-9]*:[0-9]*:.*$"
5555
},
5656
"Subdirectory": {
5757
"description": "A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.",
5858
"type": "string",
59-
"maxLength": 4096
59+
"maxLength": 4096,
60+
"pattern": "^[a-zA-Z0-9_\\-\\+\\./\\(\\)\\$\\p{Zs}]+$"
6061
},
6162
"S3StorageClass": {
6263
"description": "The Amazon S3 storage class you want to store your files in when this location is used as a task destination.",
@@ -74,7 +75,7 @@
7475
"Tags": {
7576
"description": "An array of key-value pairs to apply to this resource.",
7677
"type": "array",
77-
"maxItems": 55,
78+
"maxItems": 50,
7879
"uniqueItems": true,
7980
"insertionOrder": false,
8081
"items": {

aws-datasync-locationsmb/aws-datasync-locationsmb.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"Value": {
3333
"type": "string",
3434
"description": "The value for an AWS resource tag.",
35-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
35+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
3636
"maxLength": 256,
3737
"minLength": 1
3838
}
@@ -53,7 +53,7 @@
5353
"maxLength": 128
5454
},
5555
"minItems": 1,
56-
"maxItems": 64
56+
"maxItems": 4
5757
},
5858
"Domain": {
5959
"description": "The name of the Windows domain that the SMB server belongs to.",
@@ -94,7 +94,7 @@
9494
"Tags": {
9595
"description": "An array of key-value pairs to apply to this resource.",
9696
"type": "array",
97-
"maxItems": 55,
97+
"maxItems": 50,
9898
"uniqueItems": true,
9999
"insertionOrder": false,
100100
"items": {

aws-datasync-task/aws-datasync-task.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Value": {
3939
"type": "string",
4040
"description": "The value for an AWS resource tag.",
41-
"pattern": "^[a-zA-Z0-9\\s+=.:@/-]+$",
41+
"pattern": "^[a-zA-Z0-9\\s+=._:@/-]+$",
4242
"maxLength": 256,
4343
"minLength": 1
4444
}
@@ -207,7 +207,7 @@
207207
"Tags": {
208208
"description": "An array of key-value pairs to apply to this resource.",
209209
"type": "array",
210-
"maxItems": 55,
210+
"maxItems": 50,
211211
"uniqueItems": true,
212212
"insertionOrder": false,
213213
"items": {
@@ -218,7 +218,7 @@
218218
"description": "The ARN of the Amazon CloudWatch log group that is used to monitor and log events in the task.",
219219
"type": "string",
220220
"maxLength": 562,
221-
"pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):logs:[a-z\\-0-9]*:[0-9]{12}:log-group:([^:\\*]*)$"
221+
"pattern": "^arn:(aws|aws-cn|aws-us-gov|aws-iso|aws-iso-b):logs:[a-z\\-0-9]*:[0-9]{12}:log-group:([^:\\*]*)(:\\*)?$"
222222
},
223223
"DestinationLocationArn": {
224224
"description": "The ARN of an AWS storage resource's location.",

0 commit comments

Comments
 (0)