Skip to content

Commit 6f5fc54

Browse files
authored
fix: resource-policy schema, mark required attributes (#1175)
1 parent e7eea3b commit 6f5fc54

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

cfn-resources/resource-policy/docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati
5858

5959
Human-readable label that describes the atlas resource policy.
6060

61-
_Required_: No
61+
_Required_: Yes
6262

6363
_Type_: String
6464

@@ -68,7 +68,7 @@ _Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormati
6868

6969
Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access.
7070

71-
_Required_: No
71+
_Required_: Yes
7272

7373
_Type_: String
7474

@@ -84,7 +84,7 @@ _Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/l
8484

8585
List of policies that make up the atlas resource policy.
8686

87-
_Required_: No
87+
_Required_: Yes
8888

8989
_Type_: List of <a href="apiatlaspolicy.md">ApiAtlasPolicy</a>
9090

cfn-resources/resource-policy/docs/apiatlaspolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To declare this entity in your AWS CloudFormation template, use the following sy
2626

2727
A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
2828

29-
_Required_: No
29+
_Required_: Yes
3030

3131
_Type_: String
3232

cfn-resources/resource-policy/mongodb-atlas-resourcepolicy.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"minLength": 24
1616
}
1717
},
18-
"additionalProperties": false
18+
"additionalProperties": false,
19+
"required": [
20+
"Body"
21+
]
1922
},
2023
"ApiAtlasPolicyCreate": {
2124
"type": "object",
@@ -137,5 +140,10 @@
137140
"/properties/OrgId",
138141
"/properties/Profile"
139142
],
140-
"additionalProperties": false
143+
"additionalProperties": false,
144+
"required": [
145+
"Name",
146+
"OrgId",
147+
"Policies"
148+
]
141149
}

0 commit comments

Comments
 (0)