@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
@@ -0,0 +1,283 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
6
+ *
7
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
8
+ * * `gcp.securitycenter.V2OrganizationSourceIamBinding`: 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 organizationsource are preserved.
9
+ * * `gcp.securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
10
+ *
11
+ * A data source can be used to retrieve policy data in advent you do not need creation
12
+ *
13
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
14
+ *
15
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamBinding` and `gcp.securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
16
+ *
17
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
18
+ *
19
+ * ## gcp.securitycenter.V2OrganizationSourceIamPolicy
20
+ *
21
+ * ```typescript
22
+ * import * as pulumi from "@pulumi/pulumi";
23
+ * import * as gcp from "@pulumi/gcp";
24
+ *
25
+ * const admin = gcp.organizations.getIAMPolicy({
26
+ * bindings: [{
27
+ * role: "roles/viewer",
28
+ * members: ["user:jane@example.com"],
29
+ * }],
30
+ * });
31
+ * const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
32
+ * source: customSource.name,
33
+ * policyData: admin.then(admin => admin.policyData),
34
+ * });
35
+ * ```
36
+ *
37
+ * ## gcp.securitycenter.V2OrganizationSourceIamBinding
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as gcp from "@pulumi/gcp";
42
+ *
43
+ * const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
44
+ * source: customSource.name,
45
+ * role: "roles/viewer",
46
+ * members: ["user:jane@example.com"],
47
+ * });
48
+ * ```
49
+ *
50
+ * ## gcp.securitycenter.V2OrganizationSourceIamMember
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as gcp from "@pulumi/gcp";
55
+ *
56
+ * const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
57
+ * source: customSource.name,
58
+ * role: "roles/viewer",
59
+ * member: "user:jane@example.com",
60
+ * });
61
+ * ```
62
+ *
63
+ * ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
64
+ *
65
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
66
+ * ---
67
+ *
68
+ * # IAM policy for Security Command Center (SCC)v2 API OrganizationSource
69
+ * Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
70
+ *
71
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
72
+ * * `gcp.securitycenter.V2OrganizationSourceIamBinding`: 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 organizationsource are preserved.
73
+ * * `gcp.securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
74
+ *
75
+ * A data source can be used to retrieve policy data in advent you do not need creation
76
+ *
77
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
78
+ *
79
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamBinding` and `gcp.securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
80
+ *
81
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
82
+ *
83
+ * ## gcp.securitycenter.V2OrganizationSourceIamPolicy
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as gcp from "@pulumi/gcp";
88
+ *
89
+ * const admin = gcp.organizations.getIAMPolicy({
90
+ * bindings: [{
91
+ * role: "roles/viewer",
92
+ * members: ["user:jane@example.com"],
93
+ * }],
94
+ * });
95
+ * const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
96
+ * source: customSource.name,
97
+ * policyData: admin.then(admin => admin.policyData),
98
+ * });
99
+ * ```
100
+ *
101
+ * ## gcp.securitycenter.V2OrganizationSourceIamBinding
102
+ *
103
+ * ```typescript
104
+ * import * as pulumi from "@pulumi/pulumi";
105
+ * import * as gcp from "@pulumi/gcp";
106
+ *
107
+ * const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
108
+ * source: customSource.name,
109
+ * role: "roles/viewer",
110
+ * members: ["user:jane@example.com"],
111
+ * });
112
+ * ```
113
+ *
114
+ * ## gcp.securitycenter.V2OrganizationSourceIamMember
115
+ *
116
+ * ```typescript
117
+ * import * as pulumi from "@pulumi/pulumi";
118
+ * import * as gcp from "@pulumi/gcp";
119
+ *
120
+ * const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
121
+ * source: customSource.name,
122
+ * role: "roles/viewer",
123
+ * member: "user:jane@example.com",
124
+ * });
125
+ * ```
126
+ *
127
+ * ## Import
128
+ *
129
+ * For all import syntaxes, the "resource in question" can take any of the following forms:
130
+ *
131
+ * * organizations/{{organization}}/sources/{{source}}
132
+ *
133
+ * * {{organization}}/{{source}}
134
+ *
135
+ * * {{source}}
136
+ *
137
+ * Any variables not passed in the import command will be taken from the provider configuration.
138
+ *
139
+ * Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
140
+ *
141
+ * IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
142
+ *
143
+ * ```sh
144
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
145
+ * ```
146
+ *
147
+ * IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
148
+ *
149
+ * ```sh
150
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
151
+ * ```
152
+ *
153
+ * IAM policy imports use the identifier of the resource in question, e.g.
154
+ *
155
+ * ```sh
156
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor organizations/{{organization}}/sources/{{source}}
157
+ * ```
158
+ *
159
+ * -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
160
+ *
161
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
162
+ */
163
+ export declare class V2OrganizationSourceIamBinding extends pulumi.CustomResource {
164
+ /**
165
+ * Get an existing V2OrganizationSourceIamBinding resource's state with the given name, ID, and optional extra
166
+ * properties used to qualify the lookup.
167
+ *
168
+ * @param name The _unique_ name of the resulting resource.
169
+ * @param id The _unique_ provider ID of the resource to lookup.
170
+ * @param state Any extra arguments used during the lookup.
171
+ * @param opts Optional settings to control the behavior of the CustomResource.
172
+ */
173
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: V2OrganizationSourceIamBindingState, opts?: pulumi.CustomResourceOptions): V2OrganizationSourceIamBinding;
174
+ /**
175
+ * Returns true if the given object is an instance of V2OrganizationSourceIamBinding. This is designed to work even
176
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
177
+ */
178
+ static isInstance(obj: any): obj is V2OrganizationSourceIamBinding;
179
+ readonly condition: pulumi.Output<outputs.securitycenter.V2OrganizationSourceIamBindingCondition | undefined>;
180
+ /**
181
+ * (Computed) The etag of the IAM policy.
182
+ */
183
+ readonly etag: pulumi.Output<string>;
184
+ /**
185
+ * Identities that will be granted the privilege in `role`.
186
+ * Each entry can have one of the following values:
187
+ * * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
188
+ * * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
189
+ * * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
190
+ * * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
191
+ * * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
192
+ * * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
193
+ * * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
194
+ * * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
195
+ * * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
196
+ */
197
+ readonly members: pulumi.Output<string[]>;
198
+ readonly organization: pulumi.Output<string>;
199
+ /**
200
+ * The role that should be applied. Only one
201
+ * `gcp.securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
202
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
203
+ */
204
+ readonly role: pulumi.Output<string>;
205
+ /**
206
+ * Used to find the parent resource to bind the IAM policy to
207
+ */
208
+ readonly source: pulumi.Output<string>;
209
+ /**
210
+ * Create a V2OrganizationSourceIamBinding resource with the given unique name, arguments, and options.
211
+ *
212
+ * @param name The _unique_ name of the resource.
213
+ * @param args The arguments to use to populate this resource's properties.
214
+ * @param opts A bag of options that control this resource's behavior.
215
+ */
216
+ constructor(name: string, args: V2OrganizationSourceIamBindingArgs, opts?: pulumi.CustomResourceOptions);
217
+ }
218
+ /**
219
+ * Input properties used for looking up and filtering V2OrganizationSourceIamBinding resources.
220
+ */
221
+ export interface V2OrganizationSourceIamBindingState {
222
+ condition?: pulumi.Input<inputs.securitycenter.V2OrganizationSourceIamBindingCondition>;
223
+ /**
224
+ * (Computed) The etag of the IAM policy.
225
+ */
226
+ etag?: pulumi.Input<string>;
227
+ /**
228
+ * Identities that will be granted the privilege in `role`.
229
+ * Each entry can have one of the following values:
230
+ * * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
231
+ * * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
232
+ * * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
233
+ * * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
234
+ * * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
235
+ * * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
236
+ * * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
237
+ * * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
238
+ * * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
239
+ */
240
+ members?: pulumi.Input<pulumi.Input<string>[]>;
241
+ organization?: pulumi.Input<string>;
242
+ /**
243
+ * The role that should be applied. Only one
244
+ * `gcp.securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
245
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
246
+ */
247
+ role?: pulumi.Input<string>;
248
+ /**
249
+ * Used to find the parent resource to bind the IAM policy to
250
+ */
251
+ source?: pulumi.Input<string>;
252
+ }
253
+ /**
254
+ * The set of arguments for constructing a V2OrganizationSourceIamBinding resource.
255
+ */
256
+ export interface V2OrganizationSourceIamBindingArgs {
257
+ condition?: pulumi.Input<inputs.securitycenter.V2OrganizationSourceIamBindingCondition>;
258
+ /**
259
+ * Identities that will be granted the privilege in `role`.
260
+ * Each entry can have one of the following values:
261
+ * * **allUsers**: A special identifier that represents anyone who is on the internet; with or without a Google account.
262
+ * * **allAuthenticatedUsers**: A special identifier that represents anyone who is authenticated with a Google account or a service account.
263
+ * * **user:{emailid}**: An email address that represents a specific Google account. For example, alice@gmail.com or joe@example.com.
264
+ * * **serviceAccount:{emailid}**: An email address that represents a service account. For example, my-other-app@appspot.gserviceaccount.com.
265
+ * * **group:{emailid}**: An email address that represents a Google group. For example, admins@example.com.
266
+ * * **domain:{domain}**: A G Suite domain (primary, instead of alias) name that represents all the users of that domain. For example, google.com or example.com.
267
+ * * **projectOwner:projectid**: Owners of the given project. For example, "projectOwner:my-example-project"
268
+ * * **projectEditor:projectid**: Editors of the given project. For example, "projectEditor:my-example-project"
269
+ * * **projectViewer:projectid**: Viewers of the given project. For example, "projectViewer:my-example-project"
270
+ */
271
+ members: pulumi.Input<pulumi.Input<string>[]>;
272
+ organization: pulumi.Input<string>;
273
+ /**
274
+ * The role that should be applied. Only one
275
+ * `gcp.securitycenter.V2OrganizationSourceIamBinding` can be used per role. Note that custom roles must be of the format
276
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
277
+ */
278
+ role: pulumi.Input<string>;
279
+ /**
280
+ * Used to find the parent resource to bind the IAM policy to
281
+ */
282
+ source: pulumi.Input<string>;
283
+ }
@@ -0,0 +1,230 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.V2OrganizationSourceIamBinding = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
12
+ * * `gcp.securitycenter.V2OrganizationSourceIamBinding`: 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 organizationsource are preserved.
13
+ * * `gcp.securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
14
+ *
15
+ * A data source can be used to retrieve policy data in advent you do not need creation
16
+ *
17
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
18
+ *
19
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamBinding` and `gcp.securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
20
+ *
21
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
22
+ *
23
+ * ## gcp.securitycenter.V2OrganizationSourceIamPolicy
24
+ *
25
+ * ```typescript
26
+ * import * as pulumi from "@pulumi/pulumi";
27
+ * import * as gcp from "@pulumi/gcp";
28
+ *
29
+ * const admin = gcp.organizations.getIAMPolicy({
30
+ * bindings: [{
31
+ * role: "roles/viewer",
32
+ * members: ["user:jane@example.com"],
33
+ * }],
34
+ * });
35
+ * const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
36
+ * source: customSource.name,
37
+ * policyData: admin.then(admin => admin.policyData),
38
+ * });
39
+ * ```
40
+ *
41
+ * ## gcp.securitycenter.V2OrganizationSourceIamBinding
42
+ *
43
+ * ```typescript
44
+ * import * as pulumi from "@pulumi/pulumi";
45
+ * import * as gcp from "@pulumi/gcp";
46
+ *
47
+ * const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
48
+ * source: customSource.name,
49
+ * role: "roles/viewer",
50
+ * members: ["user:jane@example.com"],
51
+ * });
52
+ * ```
53
+ *
54
+ * ## gcp.securitycenter.V2OrganizationSourceIamMember
55
+ *
56
+ * ```typescript
57
+ * import * as pulumi from "@pulumi/pulumi";
58
+ * import * as gcp from "@pulumi/gcp";
59
+ *
60
+ * const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
61
+ * source: customSource.name,
62
+ * role: "roles/viewer",
63
+ * member: "user:jane@example.com",
64
+ * });
65
+ * ```
66
+ *
67
+ * ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
68
+ *
69
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
70
+ * ---
71
+ *
72
+ * # IAM policy for Security Command Center (SCC)v2 API OrganizationSource
73
+ * Three different resources help you manage your IAM policy for Security Command Center (SCC)v2 API OrganizationSource. Each of these resources serves a different use case:
74
+ *
75
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
76
+ * * `gcp.securitycenter.V2OrganizationSourceIamBinding`: 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 organizationsource are preserved.
77
+ * * `gcp.securitycenter.V2OrganizationSourceIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organizationsource are preserved.
78
+ *
79
+ * A data source can be used to retrieve policy data in advent you do not need creation
80
+ *
81
+ * * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
82
+ *
83
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamPolicy` **cannot** be used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamBinding` and `gcp.securitycenter.V2OrganizationSourceIamMember` or they will fight over what your policy should be.
84
+ *
85
+ * > **Note:** `gcp.securitycenter.V2OrganizationSourceIamBinding` resources **can be** used in conjunction with `gcp.securitycenter.V2OrganizationSourceIamMember` resources **only if** they do not grant privilege to the same role.
86
+ *
87
+ * ## gcp.securitycenter.V2OrganizationSourceIamPolicy
88
+ *
89
+ * ```typescript
90
+ * import * as pulumi from "@pulumi/pulumi";
91
+ * import * as gcp from "@pulumi/gcp";
92
+ *
93
+ * const admin = gcp.organizations.getIAMPolicy({
94
+ * bindings: [{
95
+ * role: "roles/viewer",
96
+ * members: ["user:jane@example.com"],
97
+ * }],
98
+ * });
99
+ * const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
100
+ * source: customSource.name,
101
+ * policyData: admin.then(admin => admin.policyData),
102
+ * });
103
+ * ```
104
+ *
105
+ * ## gcp.securitycenter.V2OrganizationSourceIamBinding
106
+ *
107
+ * ```typescript
108
+ * import * as pulumi from "@pulumi/pulumi";
109
+ * import * as gcp from "@pulumi/gcp";
110
+ *
111
+ * const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
112
+ * source: customSource.name,
113
+ * role: "roles/viewer",
114
+ * members: ["user:jane@example.com"],
115
+ * });
116
+ * ```
117
+ *
118
+ * ## gcp.securitycenter.V2OrganizationSourceIamMember
119
+ *
120
+ * ```typescript
121
+ * import * as pulumi from "@pulumi/pulumi";
122
+ * import * as gcp from "@pulumi/gcp";
123
+ *
124
+ * const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
125
+ * source: customSource.name,
126
+ * role: "roles/viewer",
127
+ * member: "user:jane@example.com",
128
+ * });
129
+ * ```
130
+ *
131
+ * ## Import
132
+ *
133
+ * For all import syntaxes, the "resource in question" can take any of the following forms:
134
+ *
135
+ * * organizations/{{organization}}/sources/{{source}}
136
+ *
137
+ * * {{organization}}/{{source}}
138
+ *
139
+ * * {{source}}
140
+ *
141
+ * Any variables not passed in the import command will be taken from the provider configuration.
142
+ *
143
+ * Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
144
+ *
145
+ * IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
146
+ *
147
+ * ```sh
148
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
149
+ * ```
150
+ *
151
+ * IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
152
+ *
153
+ * ```sh
154
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
155
+ * ```
156
+ *
157
+ * IAM policy imports use the identifier of the resource in question, e.g.
158
+ *
159
+ * ```sh
160
+ * $ pulumi import gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding editor organizations/{{organization}}/sources/{{source}}
161
+ * ```
162
+ *
163
+ * -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
164
+ *
165
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
166
+ */
167
+ class V2OrganizationSourceIamBinding extends pulumi.CustomResource {
168
+ /**
169
+ * Get an existing V2OrganizationSourceIamBinding resource's state with the given name, ID, and optional extra
170
+ * properties used to qualify the lookup.
171
+ *
172
+ * @param name The _unique_ name of the resulting resource.
173
+ * @param id The _unique_ provider ID of the resource to lookup.
174
+ * @param state Any extra arguments used during the lookup.
175
+ * @param opts Optional settings to control the behavior of the CustomResource.
176
+ */
177
+ static get(name, id, state, opts) {
178
+ return new V2OrganizationSourceIamBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
179
+ }
180
+ /**
181
+ * Returns true if the given object is an instance of V2OrganizationSourceIamBinding. This is designed to work even
182
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
183
+ */
184
+ static isInstance(obj) {
185
+ if (obj === undefined || obj === null) {
186
+ return false;
187
+ }
188
+ return obj['__pulumiType'] === V2OrganizationSourceIamBinding.__pulumiType;
189
+ }
190
+ constructor(name, argsOrState, opts) {
191
+ let resourceInputs = {};
192
+ opts = opts || {};
193
+ if (opts.id) {
194
+ const state = argsOrState;
195
+ resourceInputs["condition"] = state ? state.condition : undefined;
196
+ resourceInputs["etag"] = state ? state.etag : undefined;
197
+ resourceInputs["members"] = state ? state.members : undefined;
198
+ resourceInputs["organization"] = state ? state.organization : undefined;
199
+ resourceInputs["role"] = state ? state.role : undefined;
200
+ resourceInputs["source"] = state ? state.source : undefined;
201
+ }
202
+ else {
203
+ const args = argsOrState;
204
+ if ((!args || args.members === undefined) && !opts.urn) {
205
+ throw new Error("Missing required property 'members'");
206
+ }
207
+ if ((!args || args.organization === undefined) && !opts.urn) {
208
+ throw new Error("Missing required property 'organization'");
209
+ }
210
+ if ((!args || args.role === undefined) && !opts.urn) {
211
+ throw new Error("Missing required property 'role'");
212
+ }
213
+ if ((!args || args.source === undefined) && !opts.urn) {
214
+ throw new Error("Missing required property 'source'");
215
+ }
216
+ resourceInputs["condition"] = args ? args.condition : undefined;
217
+ resourceInputs["members"] = args ? args.members : undefined;
218
+ resourceInputs["organization"] = args ? args.organization : undefined;
219
+ resourceInputs["role"] = args ? args.role : undefined;
220
+ resourceInputs["source"] = args ? args.source : undefined;
221
+ resourceInputs["etag"] = undefined /*out*/;
222
+ }
223
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
224
+ super(V2OrganizationSourceIamBinding.__pulumiType, name, resourceInputs, opts);
225
+ }
226
+ }
227
+ exports.V2OrganizationSourceIamBinding = V2OrganizationSourceIamBinding;
228
+ /** @internal */
229
+ V2OrganizationSourceIamBinding.__pulumiType = 'gcp:securitycenter/v2OrganizationSourceIamBinding:V2OrganizationSourceIamBinding';
230
+ //# sourceMappingURL=v2organizationSourceIamBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v2organizationSourceIamBinding.js","sourceRoot":"","sources":["../../securitycenter/v2organizationSourceIamBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8JG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;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