You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Adds new attribute results and deprecates resource_policies for mongodbatlas_resource_policies data source (#2740)
* new attribute results and deprecate resource_policies
* changelog entry
* change test to check new attribute
* fix changelog
* changelog fix
* fix docs
* Update .changelog/2740.txt
Co-authored-by: Leo Antoli <[email protected]>
* migration test
* skip mig test until next version
* fix comment
---------
Co-authored-by: Leo Antoli <[email protected]>
Copy file name to clipboardExpand all lines: docs/data-sources/resource_policies.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ data "mongodbatlas_resource_policies" "this" {
84
84
85
85
86
86
output "policy_ids" {
87
-
value = { for policy in data.mongodbatlas_resource_policies.this.resource_policies : policy.name => policy.id }
87
+
value = { for policy in data.mongodbatlas_resource_policies.this.results : policy.name => policy.id }
88
88
}
89
89
```
90
90
@@ -97,7 +97,8 @@ output "policy_ids" {
97
97
98
98
### Read-Only
99
99
100
-
-`resource_policies` (Attributes List) (see [below for nested schema](#nestedatt--resource_policies))
100
+
-`resource_policies` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--resource_policies))
101
+
-`results` (Attributes List) (see [below for nested schema](#nestedatt--results))
101
102
102
103
<aid="nestedatt--resource_policies"></a>
103
104
### Nested Schema for `resource_policies`
@@ -140,3 +141,46 @@ Read-Only:
140
141
-`body` (String) A string that defines the permissions for the policy. The syntax used is the Cedar Policy language.
141
142
-`id` (String) Unique 24-hexadecimal character string that identifies the policy.
142
143
144
+
145
+
146
+
<aid="nestedatt--results"></a>
147
+
### Nested Schema for `results`
148
+
149
+
Read-Only:
150
+
151
+
-`created_by_user` (Attributes) The user that last updated the Atlas resource policy. (see [below for nested schema](#nestedatt--results--created_by_user))
152
+
-`created_date` (String) Date and time in UTC when the Atlas resource policy was created.
153
+
-`id` (String) Unique 24-hexadecimal digit string that identifies an Atlas resource policy.
154
+
-`last_updated_by_user` (Attributes) The user that last updated the Atlas resource policy. (see [below for nested schema](#nestedatt--results--last_updated_by_user))
155
+
-`last_updated_date` (String) Date and time in UTC when the Atlas resource policy was last updated.
156
+
-`name` (String) Human-readable label that describes the Atlas resource policy.
157
+
-`org_id` (String) 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.
158
+
-`policies` (Attributes List) List of policies that make up the Atlas resource policy. (see [below for nested schema](#nestedatt--results--policies))
159
+
-`version` (String) A string that identifies the version of the Atlas resource policy.
160
+
161
+
<aid="nestedatt--results--created_by_user"></a>
162
+
### Nested Schema for `results.created_by_user`
163
+
164
+
Read-Only:
165
+
166
+
-`id` (String) Unique 24-hexadecimal character string that identifies a user.
167
+
-`name` (String) Human-readable label that describes a user.
MarkdownDescription: "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.",
0 commit comments