Skip to content

Commit 58f453f

Browse files
Josh SennettJosh Sennett
andauthored
Enforce additional properties are not allowed in schema object definitions (#25)
Co-authored-by: Josh Sennett <[email protected]>
1 parent a96a401 commit 58f453f

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"Tag": {
7+
"additionalProperties": false,
78
"description": "A key-value pair to associate with a resource.",
89
"type": "object",
910
"properties": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"Ec2Config": {
7+
"additionalProperties": false,
78
"description": "The subnet and security group that DataSync uses to access target EFS file system.",
89
"type": "object",
910
"properties": {
@@ -31,6 +32,7 @@
3132
]
3233
},
3334
"Tag": {
35+
"additionalProperties": false,
3436
"description": "A key-value pair to associate with a resource.",
3537
"type": "object",
3638
"properties": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"Tag": {
7+
"additionalProperties": false,
78
"description": "A key-value pair to associate with a resource.",
89
"type": "object",
910
"properties": {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"MountOptions": {
7+
"additionalProperties": false,
78
"description": "The NFS mount options that DataSync can use to mount your NFS share.",
89
"type": "object",
910
"properties": {
@@ -20,6 +21,7 @@
2021
}
2122
},
2223
"OnPremConfig": {
24+
"additionalProperties": false,
2325
"description": "Contains a list of Amazon Resource Names (ARNs) of agents that are used to connect an NFS server.",
2426
"type": "object",
2527
"properties": {
@@ -40,6 +42,7 @@
4042
]
4143
},
4244
"Tag": {
45+
"additionalProperties": false,
4346
"description": "A key-value pair to associate with a resource.",
4447
"type": "object",
4548
"properties": {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"Tag": {
7+
"additionalProperties": false,
78
"description": "A key-value pair to associate with a resource.",
89
"type": "object",
910
"properties": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"S3Config": {
7+
"additionalProperties": false,
78
"description": "The Amazon Resource Name (ARN) of the AWS IAM role that is used to access an Amazon S3 bucket.",
89
"type": "object",
910
"properties": {
@@ -19,6 +20,7 @@
1920
]
2021
},
2122
"Tag": {
23+
"additionalProperties": false,
2224
"description": "A key-value pair to associate with a resource.",
2325
"type": "object",
2426
"properties": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"MountOptions": {
7+
"additionalProperties": false,
78
"description": "The mount options used by DataSync to access the SMB server.",
89
"type": "object",
910
"properties": {
@@ -19,6 +20,7 @@
1920
}
2021
},
2122
"Tag": {
23+
"additionalProperties": false,
2224
"description": "A key-value pair to associate with a resource.",
2325
"type": "object",
2426
"properties": {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datasync.git",
55
"definitions": {
66
"FilterRule": {
7+
"additionalProperties": false,
78
"description": "Specifies which files folders and objects to include or exclude when transferring files from source to destination.",
89
"type": "object",
910
"properties": {
@@ -25,6 +26,7 @@
2526
}
2627
},
2728
"Tag": {
29+
"additionalProperties": false,
2830
"description": "A key-value pair to associate with a resource.",
2931
"type": "object",
3032
"properties": {
@@ -49,6 +51,7 @@
4951
]
5052
},
5153
"TaskSchedule": {
54+
"additionalProperties": false,
5255
"description": "Specifies the schedule you want your task to use for repeated executions.",
5356
"type": "object",
5457
"properties": {
@@ -64,6 +67,7 @@
6467
]
6568
},
6669
"Options": {
70+
"additionalProperties": false,
6771
"description": "Represents the options that are available to control the behavior of a StartTaskExecution operation.",
6872
"type": "object",
6973
"properties": {

0 commit comments

Comments
 (0)