@pulumi/gcp 7.36.0 → 7.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/accesscontextmanager/index.d.ts +6 -0
  2. package/accesscontextmanager/index.js +11 -1
  3. package/accesscontextmanager/index.js.map +1 -1
  4. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.d.ts +112 -0
  5. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js +76 -0
  6. package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js.map +1 -0
  7. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.d.ts +116 -0
  8. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js +77 -0
  9. package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js.map +1 -0
  10. package/accesscontextmanager/servicePerimeterEgressPolicy.d.ts +1 -12
  11. package/accesscontextmanager/servicePerimeterEgressPolicy.js +1 -12
  12. package/accesscontextmanager/servicePerimeterEgressPolicy.js.map +1 -1
  13. package/accesscontextmanager/servicePerimeterIngressPolicy.d.ts +1 -12
  14. package/accesscontextmanager/servicePerimeterIngressPolicy.js +1 -12
  15. package/accesscontextmanager/servicePerimeterIngressPolicy.js.map +1 -1
  16. package/applicationintegration/client.d.ts +1 -1
  17. package/applicationintegration/client.js +1 -1
  18. package/compute/regionTargetHttpsProxy.d.ts +12 -0
  19. package/compute/regionTargetHttpsProxy.js.map +1 -1
  20. package/dataform/repository.d.ts +31 -0
  21. package/dataform/repository.js +18 -0
  22. package/dataform/repository.js.map +1 -1
  23. package/discoveryengine/dataStore.d.ts +31 -0
  24. package/discoveryengine/dataStore.js +3 -0
  25. package/discoveryengine/dataStore.js.map +1 -1
  26. package/logging/getLogViewIamPolicy.d.ts +34 -0
  27. package/logging/getLogViewIamPolicy.js +34 -0
  28. package/logging/getLogViewIamPolicy.js.map +1 -1
  29. package/logging/logViewIamBinding.d.ts +276 -0
  30. package/logging/logViewIamBinding.js +276 -0
  31. package/logging/logViewIamBinding.js.map +1 -1
  32. package/logging/logViewIamMember.d.ts +276 -0
  33. package/logging/logViewIamMember.js +276 -0
  34. package/logging/logViewIamMember.js.map +1 -1
  35. package/logging/logViewIamPolicy.d.ts +276 -0
  36. package/logging/logViewIamPolicy.js +276 -0
  37. package/logging/logViewIamPolicy.js.map +1 -1
  38. package/networkconnectivity/regionalEndpoint.d.ts +3 -3
  39. package/networkconnectivity/regionalEndpoint.js +3 -3
  40. package/organizations/getProject.d.ts +1 -0
  41. package/organizations/getProject.js.map +1 -1
  42. package/organizations/project.d.ts +21 -9
  43. package/organizations/project.js +2 -0
  44. package/organizations/project.js.map +1 -1
  45. package/package.json +2 -2
  46. package/securitycenter/getV2OrganizationSourceIamPolicy.d.ts +71 -0
  47. package/securitycenter/getV2OrganizationSourceIamPolicy.js +48 -0
  48. package/securitycenter/getV2OrganizationSourceIamPolicy.js.map +1 -0
  49. package/securitycenter/index.d.ts +24 -0
  50. package/securitycenter/index.js +39 -1
  51. package/securitycenter/index.js.map +1 -1
  52. package/securitycenter/v2folderMuteConfig.d.ts +230 -0
  53. package/securitycenter/v2folderMuteConfig.js +129 -0
  54. package/securitycenter/v2folderMuteConfig.js.map +1 -0
  55. package/securitycenter/v2organizationSource.d.ts +151 -0
  56. package/securitycenter/v2organizationSource.js +106 -0
  57. package/securitycenter/v2organizationSource.js.map +1 -0
  58. package/securitycenter/v2organizationSourceIamBinding.d.ts +283 -0
  59. package/securitycenter/v2organizationSourceIamBinding.js +230 -0
  60. package/securitycenter/v2organizationSourceIamBinding.js.map +1 -0
  61. package/securitycenter/v2organizationSourceIamMember.d.ts +283 -0
  62. package/securitycenter/v2organizationSourceIamMember.js +230 -0
  63. package/securitycenter/v2organizationSourceIamMember.js.map +1 -0
  64. package/securitycenter/v2organizationSourceIamPolicy.d.ts +233 -0
  65. package/securitycenter/v2organizationSourceIamPolicy.js +223 -0
  66. package/securitycenter/v2organizationSourceIamPolicy.js.map +1 -0
  67. package/securitycenter/v2projectMuteConfig.d.ts +232 -0
  68. package/securitycenter/v2projectMuteConfig.js +128 -0
  69. package/securitycenter/v2projectMuteConfig.js.map +1 -0
  70. package/securitycenter/v2projectNotificationConfig.d.ts +184 -0
  71. package/securitycenter/v2projectNotificationConfig.js +129 -0
  72. package/securitycenter/v2projectNotificationConfig.js.map +1 -0
  73. package/spanner/instance.d.ts +0 -3
  74. package/spanner/instance.js.map +1 -1
  75. package/storage/bucketObject.d.ts +8 -0
  76. package/storage/bucketObject.js +2 -0
  77. package/storage/bucketObject.js.map +1 -1
  78. package/storage/getBucketObject.d.ts +4 -0
  79. package/storage/getBucketObject.js.map +1 -1
  80. package/storage/getBucketObjectContent.d.ts +1 -0
  81. package/storage/getBucketObjectContent.js.map +1 -1
  82. package/storage/managedFolder.d.ts +22 -0
  83. package/storage/managedFolder.js +3 -0
  84. package/storage/managedFolder.js.map +1 -1
  85. package/types/input.d.ts +242 -3
  86. package/types/output.d.ts +256 -5
  87. package/vmwareengine/networkPolicy.d.ts +3 -3
  88. package/vmwareengine/networkPolicy.js +3 -3
@@ -2,6 +2,282 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
+ * Three different resources help you manage your IAM policy for Cloud (Stackdriver) Logging LogView. Each of these resources serves a different use case:
6
+ *
7
+ * * `gcp.logging.LogViewIamPolicy`: Authoritative. Sets the IAM policy for the logview and replaces any existing policy already attached.
8
+ * * `gcp.logging.LogViewIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the logview are preserved.
9
+ * * `gcp.logging.LogViewIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the logview are preserved.
10
+ *
11
+ * A data source can be used to retrieve policy data in advent you do not need creation
12
+ *
13
+ * * `gcp.logging.LogViewIamPolicy`: Retrieves the IAM policy for the logview
14
+ *
15
+ * > **Note:** `gcp.logging.LogViewIamPolicy` **cannot** be used in conjunction with `gcp.logging.LogViewIamBinding` and `gcp.logging.LogViewIamMember` or they will fight over what your policy should be.
16
+ *
17
+ * > **Note:** `gcp.logging.LogViewIamBinding` resources **can be** used in conjunction with `gcp.logging.LogViewIamMember` resources **only if** they do not grant privilege to the same role.
18
+ *
19
+ * > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
20
+ *
21
+ * ## gcp.logging.LogViewIamPolicy
22
+ *
23
+ * ```typescript
24
+ * import * as pulumi from "@pulumi/pulumi";
25
+ * import * as gcp from "@pulumi/gcp";
26
+ *
27
+ * const admin = gcp.organizations.getIAMPolicy({
28
+ * bindings: [{
29
+ * role: "roles/logging.admin",
30
+ * members: ["user:jane@example.com"],
31
+ * }],
32
+ * });
33
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
34
+ * parent: loggingLogView.parent,
35
+ * location: loggingLogView.location,
36
+ * bucket: loggingLogView.bucket,
37
+ * name: loggingLogView.name,
38
+ * policyData: admin.then(admin => admin.policyData),
39
+ * });
40
+ * ```
41
+ *
42
+ * With IAM Conditions:
43
+ *
44
+ * ```typescript
45
+ * import * as pulumi from "@pulumi/pulumi";
46
+ * import * as gcp from "@pulumi/gcp";
47
+ *
48
+ * const admin = gcp.organizations.getIAMPolicy({
49
+ * bindings: [{
50
+ * role: "roles/logging.admin",
51
+ * members: ["user:jane@example.com"],
52
+ * condition: {
53
+ * title: "expires_after_2019_12_31",
54
+ * description: "Expiring at midnight of 2019-12-31",
55
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
56
+ * },
57
+ * }],
58
+ * });
59
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
60
+ * parent: loggingLogView.parent,
61
+ * location: loggingLogView.location,
62
+ * bucket: loggingLogView.bucket,
63
+ * name: loggingLogView.name,
64
+ * policyData: admin.then(admin => admin.policyData),
65
+ * });
66
+ * ```
67
+ * ## gcp.logging.LogViewIamBinding
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as gcp from "@pulumi/gcp";
72
+ *
73
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
74
+ * parent: loggingLogView.parent,
75
+ * location: loggingLogView.location,
76
+ * bucket: loggingLogView.bucket,
77
+ * name: loggingLogView.name,
78
+ * role: "roles/logging.admin",
79
+ * members: ["user:jane@example.com"],
80
+ * });
81
+ * ```
82
+ *
83
+ * With IAM Conditions:
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as gcp from "@pulumi/gcp";
88
+ *
89
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
90
+ * parent: loggingLogView.parent,
91
+ * location: loggingLogView.location,
92
+ * bucket: loggingLogView.bucket,
93
+ * name: loggingLogView.name,
94
+ * role: "roles/logging.admin",
95
+ * members: ["user:jane@example.com"],
96
+ * condition: {
97
+ * title: "expires_after_2019_12_31",
98
+ * description: "Expiring at midnight of 2019-12-31",
99
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
100
+ * },
101
+ * });
102
+ * ```
103
+ * ## gcp.logging.LogViewIamMember
104
+ *
105
+ * ```typescript
106
+ * import * as pulumi from "@pulumi/pulumi";
107
+ * import * as gcp from "@pulumi/gcp";
108
+ *
109
+ * const member = new gcp.logging.LogViewIamMember("member", {
110
+ * parent: loggingLogView.parent,
111
+ * location: loggingLogView.location,
112
+ * bucket: loggingLogView.bucket,
113
+ * name: loggingLogView.name,
114
+ * role: "roles/logging.admin",
115
+ * member: "user:jane@example.com",
116
+ * });
117
+ * ```
118
+ *
119
+ * With IAM Conditions:
120
+ *
121
+ * ```typescript
122
+ * import * as pulumi from "@pulumi/pulumi";
123
+ * import * as gcp from "@pulumi/gcp";
124
+ *
125
+ * const member = new gcp.logging.LogViewIamMember("member", {
126
+ * parent: loggingLogView.parent,
127
+ * location: loggingLogView.location,
128
+ * bucket: loggingLogView.bucket,
129
+ * name: loggingLogView.name,
130
+ * role: "roles/logging.admin",
131
+ * member: "user:jane@example.com",
132
+ * condition: {
133
+ * title: "expires_after_2019_12_31",
134
+ * description: "Expiring at midnight of 2019-12-31",
135
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
136
+ * },
137
+ * });
138
+ * ```
139
+ *
140
+ * ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
141
+ *
142
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
143
+ * ---
144
+ *
145
+ * # IAM policy for Cloud (Stackdriver) Logging LogView
146
+ * Three different resources help you manage your IAM policy for Cloud (Stackdriver) Logging LogView. Each of these resources serves a different use case:
147
+ *
148
+ * * `gcp.logging.LogViewIamPolicy`: Authoritative. Sets the IAM policy for the logview and replaces any existing policy already attached.
149
+ * * `gcp.logging.LogViewIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the logview are preserved.
150
+ * * `gcp.logging.LogViewIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the logview are preserved.
151
+ *
152
+ * A data source can be used to retrieve policy data in advent you do not need creation
153
+ *
154
+ * * `gcp.logging.LogViewIamPolicy`: Retrieves the IAM policy for the logview
155
+ *
156
+ * > **Note:** `gcp.logging.LogViewIamPolicy` **cannot** be used in conjunction with `gcp.logging.LogViewIamBinding` and `gcp.logging.LogViewIamMember` or they will fight over what your policy should be.
157
+ *
158
+ * > **Note:** `gcp.logging.LogViewIamBinding` resources **can be** used in conjunction with `gcp.logging.LogViewIamMember` resources **only if** they do not grant privilege to the same role.
159
+ *
160
+ * > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
161
+ *
162
+ * ## gcp.logging.LogViewIamPolicy
163
+ *
164
+ * ```typescript
165
+ * import * as pulumi from "@pulumi/pulumi";
166
+ * import * as gcp from "@pulumi/gcp";
167
+ *
168
+ * const admin = gcp.organizations.getIAMPolicy({
169
+ * bindings: [{
170
+ * role: "roles/logging.admin",
171
+ * members: ["user:jane@example.com"],
172
+ * }],
173
+ * });
174
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
175
+ * parent: loggingLogView.parent,
176
+ * location: loggingLogView.location,
177
+ * bucket: loggingLogView.bucket,
178
+ * name: loggingLogView.name,
179
+ * policyData: admin.then(admin => admin.policyData),
180
+ * });
181
+ * ```
182
+ *
183
+ * With IAM Conditions:
184
+ *
185
+ * ```typescript
186
+ * import * as pulumi from "@pulumi/pulumi";
187
+ * import * as gcp from "@pulumi/gcp";
188
+ *
189
+ * const admin = gcp.organizations.getIAMPolicy({
190
+ * bindings: [{
191
+ * role: "roles/logging.admin",
192
+ * members: ["user:jane@example.com"],
193
+ * condition: {
194
+ * title: "expires_after_2019_12_31",
195
+ * description: "Expiring at midnight of 2019-12-31",
196
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
197
+ * },
198
+ * }],
199
+ * });
200
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
201
+ * parent: loggingLogView.parent,
202
+ * location: loggingLogView.location,
203
+ * bucket: loggingLogView.bucket,
204
+ * name: loggingLogView.name,
205
+ * policyData: admin.then(admin => admin.policyData),
206
+ * });
207
+ * ```
208
+ * ## gcp.logging.LogViewIamBinding
209
+ *
210
+ * ```typescript
211
+ * import * as pulumi from "@pulumi/pulumi";
212
+ * import * as gcp from "@pulumi/gcp";
213
+ *
214
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
215
+ * parent: loggingLogView.parent,
216
+ * location: loggingLogView.location,
217
+ * bucket: loggingLogView.bucket,
218
+ * name: loggingLogView.name,
219
+ * role: "roles/logging.admin",
220
+ * members: ["user:jane@example.com"],
221
+ * });
222
+ * ```
223
+ *
224
+ * With IAM Conditions:
225
+ *
226
+ * ```typescript
227
+ * import * as pulumi from "@pulumi/pulumi";
228
+ * import * as gcp from "@pulumi/gcp";
229
+ *
230
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
231
+ * parent: loggingLogView.parent,
232
+ * location: loggingLogView.location,
233
+ * bucket: loggingLogView.bucket,
234
+ * name: loggingLogView.name,
235
+ * role: "roles/logging.admin",
236
+ * members: ["user:jane@example.com"],
237
+ * condition: {
238
+ * title: "expires_after_2019_12_31",
239
+ * description: "Expiring at midnight of 2019-12-31",
240
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
241
+ * },
242
+ * });
243
+ * ```
244
+ * ## gcp.logging.LogViewIamMember
245
+ *
246
+ * ```typescript
247
+ * import * as pulumi from "@pulumi/pulumi";
248
+ * import * as gcp from "@pulumi/gcp";
249
+ *
250
+ * const member = new gcp.logging.LogViewIamMember("member", {
251
+ * parent: loggingLogView.parent,
252
+ * location: loggingLogView.location,
253
+ * bucket: loggingLogView.bucket,
254
+ * name: loggingLogView.name,
255
+ * role: "roles/logging.admin",
256
+ * member: "user:jane@example.com",
257
+ * });
258
+ * ```
259
+ *
260
+ * With IAM Conditions:
261
+ *
262
+ * ```typescript
263
+ * import * as pulumi from "@pulumi/pulumi";
264
+ * import * as gcp from "@pulumi/gcp";
265
+ *
266
+ * const member = new gcp.logging.LogViewIamMember("member", {
267
+ * parent: loggingLogView.parent,
268
+ * location: loggingLogView.location,
269
+ * bucket: loggingLogView.bucket,
270
+ * name: loggingLogView.name,
271
+ * role: "roles/logging.admin",
272
+ * member: "user:jane@example.com",
273
+ * condition: {
274
+ * title: "expires_after_2019_12_31",
275
+ * description: "Expiring at midnight of 2019-12-31",
276
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
277
+ * },
278
+ * });
279
+ * ```
280
+ *
5
281
  * ## Import
6
282
  *
7
283
  * For all import syntaxes, the "resource in question" can take any of the following forms:
@@ -6,6 +6,282 @@ exports.LogViewIamMember = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
+ * Three different resources help you manage your IAM policy for Cloud (Stackdriver) Logging LogView. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.logging.LogViewIamPolicy`: Authoritative. Sets the IAM policy for the logview and replaces any existing policy already attached.
12
+ * * `gcp.logging.LogViewIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the logview are preserved.
13
+ * * `gcp.logging.LogViewIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the logview are preserved.
14
+ *
15
+ * A data source can be used to retrieve policy data in advent you do not need creation
16
+ *
17
+ * * `gcp.logging.LogViewIamPolicy`: Retrieves the IAM policy for the logview
18
+ *
19
+ * > **Note:** `gcp.logging.LogViewIamPolicy` **cannot** be used in conjunction with `gcp.logging.LogViewIamBinding` and `gcp.logging.LogViewIamMember` or they will fight over what your policy should be.
20
+ *
21
+ * > **Note:** `gcp.logging.LogViewIamBinding` resources **can be** used in conjunction with `gcp.logging.LogViewIamMember` resources **only if** they do not grant privilege to the same role.
22
+ *
23
+ * > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
24
+ *
25
+ * ## gcp.logging.LogViewIamPolicy
26
+ *
27
+ * ```typescript
28
+ * import * as pulumi from "@pulumi/pulumi";
29
+ * import * as gcp from "@pulumi/gcp";
30
+ *
31
+ * const admin = gcp.organizations.getIAMPolicy({
32
+ * bindings: [{
33
+ * role: "roles/logging.admin",
34
+ * members: ["user:jane@example.com"],
35
+ * }],
36
+ * });
37
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
38
+ * parent: loggingLogView.parent,
39
+ * location: loggingLogView.location,
40
+ * bucket: loggingLogView.bucket,
41
+ * name: loggingLogView.name,
42
+ * policyData: admin.then(admin => admin.policyData),
43
+ * });
44
+ * ```
45
+ *
46
+ * With IAM Conditions:
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as gcp from "@pulumi/gcp";
51
+ *
52
+ * const admin = gcp.organizations.getIAMPolicy({
53
+ * bindings: [{
54
+ * role: "roles/logging.admin",
55
+ * members: ["user:jane@example.com"],
56
+ * condition: {
57
+ * title: "expires_after_2019_12_31",
58
+ * description: "Expiring at midnight of 2019-12-31",
59
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
60
+ * },
61
+ * }],
62
+ * });
63
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
64
+ * parent: loggingLogView.parent,
65
+ * location: loggingLogView.location,
66
+ * bucket: loggingLogView.bucket,
67
+ * name: loggingLogView.name,
68
+ * policyData: admin.then(admin => admin.policyData),
69
+ * });
70
+ * ```
71
+ * ## gcp.logging.LogViewIamBinding
72
+ *
73
+ * ```typescript
74
+ * import * as pulumi from "@pulumi/pulumi";
75
+ * import * as gcp from "@pulumi/gcp";
76
+ *
77
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
78
+ * parent: loggingLogView.parent,
79
+ * location: loggingLogView.location,
80
+ * bucket: loggingLogView.bucket,
81
+ * name: loggingLogView.name,
82
+ * role: "roles/logging.admin",
83
+ * members: ["user:jane@example.com"],
84
+ * });
85
+ * ```
86
+ *
87
+ * With IAM Conditions:
88
+ *
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as gcp from "@pulumi/gcp";
92
+ *
93
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
94
+ * parent: loggingLogView.parent,
95
+ * location: loggingLogView.location,
96
+ * bucket: loggingLogView.bucket,
97
+ * name: loggingLogView.name,
98
+ * role: "roles/logging.admin",
99
+ * members: ["user:jane@example.com"],
100
+ * condition: {
101
+ * title: "expires_after_2019_12_31",
102
+ * description: "Expiring at midnight of 2019-12-31",
103
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
104
+ * },
105
+ * });
106
+ * ```
107
+ * ## gcp.logging.LogViewIamMember
108
+ *
109
+ * ```typescript
110
+ * import * as pulumi from "@pulumi/pulumi";
111
+ * import * as gcp from "@pulumi/gcp";
112
+ *
113
+ * const member = new gcp.logging.LogViewIamMember("member", {
114
+ * parent: loggingLogView.parent,
115
+ * location: loggingLogView.location,
116
+ * bucket: loggingLogView.bucket,
117
+ * name: loggingLogView.name,
118
+ * role: "roles/logging.admin",
119
+ * member: "user:jane@example.com",
120
+ * });
121
+ * ```
122
+ *
123
+ * With IAM Conditions:
124
+ *
125
+ * ```typescript
126
+ * import * as pulumi from "@pulumi/pulumi";
127
+ * import * as gcp from "@pulumi/gcp";
128
+ *
129
+ * const member = new gcp.logging.LogViewIamMember("member", {
130
+ * parent: loggingLogView.parent,
131
+ * location: loggingLogView.location,
132
+ * bucket: loggingLogView.bucket,
133
+ * name: loggingLogView.name,
134
+ * role: "roles/logging.admin",
135
+ * member: "user:jane@example.com",
136
+ * condition: {
137
+ * title: "expires_after_2019_12_31",
138
+ * description: "Expiring at midnight of 2019-12-31",
139
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
140
+ * },
141
+ * });
142
+ * ```
143
+ *
144
+ * ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
145
+ *
146
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
147
+ * ---
148
+ *
149
+ * # IAM policy for Cloud (Stackdriver) Logging LogView
150
+ * Three different resources help you manage your IAM policy for Cloud (Stackdriver) Logging LogView. Each of these resources serves a different use case:
151
+ *
152
+ * * `gcp.logging.LogViewIamPolicy`: Authoritative. Sets the IAM policy for the logview and replaces any existing policy already attached.
153
+ * * `gcp.logging.LogViewIamBinding`: Authoritative for a given role. Updates the IAM policy to grant a role to a list of members. Other roles within the IAM policy for the logview are preserved.
154
+ * * `gcp.logging.LogViewIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the logview are preserved.
155
+ *
156
+ * A data source can be used to retrieve policy data in advent you do not need creation
157
+ *
158
+ * * `gcp.logging.LogViewIamPolicy`: Retrieves the IAM policy for the logview
159
+ *
160
+ * > **Note:** `gcp.logging.LogViewIamPolicy` **cannot** be used in conjunction with `gcp.logging.LogViewIamBinding` and `gcp.logging.LogViewIamMember` or they will fight over what your policy should be.
161
+ *
162
+ * > **Note:** `gcp.logging.LogViewIamBinding` resources **can be** used in conjunction with `gcp.logging.LogViewIamMember` resources **only if** they do not grant privilege to the same role.
163
+ *
164
+ * > **Note:** This resource supports IAM Conditions but they have some known limitations which can be found [here](https://cloud.google.com/iam/docs/conditions-overview#limitations). Please review this article if you are having issues with IAM Conditions.
165
+ *
166
+ * ## gcp.logging.LogViewIamPolicy
167
+ *
168
+ * ```typescript
169
+ * import * as pulumi from "@pulumi/pulumi";
170
+ * import * as gcp from "@pulumi/gcp";
171
+ *
172
+ * const admin = gcp.organizations.getIAMPolicy({
173
+ * bindings: [{
174
+ * role: "roles/logging.admin",
175
+ * members: ["user:jane@example.com"],
176
+ * }],
177
+ * });
178
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
179
+ * parent: loggingLogView.parent,
180
+ * location: loggingLogView.location,
181
+ * bucket: loggingLogView.bucket,
182
+ * name: loggingLogView.name,
183
+ * policyData: admin.then(admin => admin.policyData),
184
+ * });
185
+ * ```
186
+ *
187
+ * With IAM Conditions:
188
+ *
189
+ * ```typescript
190
+ * import * as pulumi from "@pulumi/pulumi";
191
+ * import * as gcp from "@pulumi/gcp";
192
+ *
193
+ * const admin = gcp.organizations.getIAMPolicy({
194
+ * bindings: [{
195
+ * role: "roles/logging.admin",
196
+ * members: ["user:jane@example.com"],
197
+ * condition: {
198
+ * title: "expires_after_2019_12_31",
199
+ * description: "Expiring at midnight of 2019-12-31",
200
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
201
+ * },
202
+ * }],
203
+ * });
204
+ * const policy = new gcp.logging.LogViewIamPolicy("policy", {
205
+ * parent: loggingLogView.parent,
206
+ * location: loggingLogView.location,
207
+ * bucket: loggingLogView.bucket,
208
+ * name: loggingLogView.name,
209
+ * policyData: admin.then(admin => admin.policyData),
210
+ * });
211
+ * ```
212
+ * ## gcp.logging.LogViewIamBinding
213
+ *
214
+ * ```typescript
215
+ * import * as pulumi from "@pulumi/pulumi";
216
+ * import * as gcp from "@pulumi/gcp";
217
+ *
218
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
219
+ * parent: loggingLogView.parent,
220
+ * location: loggingLogView.location,
221
+ * bucket: loggingLogView.bucket,
222
+ * name: loggingLogView.name,
223
+ * role: "roles/logging.admin",
224
+ * members: ["user:jane@example.com"],
225
+ * });
226
+ * ```
227
+ *
228
+ * With IAM Conditions:
229
+ *
230
+ * ```typescript
231
+ * import * as pulumi from "@pulumi/pulumi";
232
+ * import * as gcp from "@pulumi/gcp";
233
+ *
234
+ * const binding = new gcp.logging.LogViewIamBinding("binding", {
235
+ * parent: loggingLogView.parent,
236
+ * location: loggingLogView.location,
237
+ * bucket: loggingLogView.bucket,
238
+ * name: loggingLogView.name,
239
+ * role: "roles/logging.admin",
240
+ * members: ["user:jane@example.com"],
241
+ * condition: {
242
+ * title: "expires_after_2019_12_31",
243
+ * description: "Expiring at midnight of 2019-12-31",
244
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
245
+ * },
246
+ * });
247
+ * ```
248
+ * ## gcp.logging.LogViewIamMember
249
+ *
250
+ * ```typescript
251
+ * import * as pulumi from "@pulumi/pulumi";
252
+ * import * as gcp from "@pulumi/gcp";
253
+ *
254
+ * const member = new gcp.logging.LogViewIamMember("member", {
255
+ * parent: loggingLogView.parent,
256
+ * location: loggingLogView.location,
257
+ * bucket: loggingLogView.bucket,
258
+ * name: loggingLogView.name,
259
+ * role: "roles/logging.admin",
260
+ * member: "user:jane@example.com",
261
+ * });
262
+ * ```
263
+ *
264
+ * With IAM Conditions:
265
+ *
266
+ * ```typescript
267
+ * import * as pulumi from "@pulumi/pulumi";
268
+ * import * as gcp from "@pulumi/gcp";
269
+ *
270
+ * const member = new gcp.logging.LogViewIamMember("member", {
271
+ * parent: loggingLogView.parent,
272
+ * location: loggingLogView.location,
273
+ * bucket: loggingLogView.bucket,
274
+ * name: loggingLogView.name,
275
+ * role: "roles/logging.admin",
276
+ * member: "user:jane@example.com",
277
+ * condition: {
278
+ * title: "expires_after_2019_12_31",
279
+ * description: "Expiring at midnight of 2019-12-31",
280
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
281
+ * },
282
+ * });
283
+ * ```
284
+ *
9
285
  * ## Import
10
286
  *
11
287
  * For all import syntaxes, the "resource in question" can take any of the following forms:
@@ -1 +1 @@
1
- {"version":3,"file":"logViewIamMember.js","sourceRoot":"","sources":["../../logging/logViewIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IA0DD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAA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