@pulumi/gcp 6.15.0 → 6.15.1

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 (76) hide show
  1. package/billing/accountIamBinding.d.ts +105 -0
  2. package/billing/accountIamBinding.js +75 -0
  3. package/billing/accountIamBinding.js.map +1 -1
  4. package/billing/accountIamMember.d.ts +105 -0
  5. package/billing/accountIamMember.js +75 -0
  6. package/billing/accountIamMember.js.map +1 -1
  7. package/billing/accountIamPolicy.d.ts +99 -0
  8. package/billing/accountIamPolicy.js +75 -0
  9. package/billing/accountIamPolicy.js.map +1 -1
  10. package/cloudfunctions/functionIamBinding.d.ts +142 -0
  11. package/cloudfunctions/functionIamBinding.js +85 -0
  12. package/cloudfunctions/functionIamBinding.js.map +1 -1
  13. package/cloudfunctions/functionIamMember.d.ts +142 -0
  14. package/cloudfunctions/functionIamMember.js +85 -0
  15. package/cloudfunctions/functionIamMember.js.map +1 -1
  16. package/cloudfunctions/functionIamPolicy.d.ts +139 -0
  17. package/cloudfunctions/functionIamPolicy.js +85 -0
  18. package/cloudfunctions/functionIamPolicy.js.map +1 -1
  19. package/compute/backendServiceIamBinding.d.ts +79 -0
  20. package/compute/backendServiceIamBinding.js +25 -0
  21. package/compute/backendServiceIamBinding.js.map +1 -1
  22. package/compute/backendServiceIamMember.d.ts +79 -0
  23. package/compute/backendServiceIamMember.js +25 -0
  24. package/compute/backendServiceIamMember.js.map +1 -1
  25. package/compute/backendServiceIamPolicy.d.ts +64 -0
  26. package/compute/backendServiceIamPolicy.js +25 -0
  27. package/compute/backendServiceIamPolicy.js.map +1 -1
  28. package/compute/mangedSslCertificate.d.ts +157 -27
  29. package/compute/mangedSslCertificate.js +97 -0
  30. package/compute/mangedSslCertificate.js.map +1 -1
  31. package/compute/regionBackendServiceIamBinding.d.ts +100 -0
  32. package/compute/regionBackendServiceIamBinding.js +25 -0
  33. package/compute/regionBackendServiceIamBinding.js.map +1 -1
  34. package/compute/regionBackendServiceIamMember.d.ts +100 -0
  35. package/compute/regionBackendServiceIamMember.js +25 -0
  36. package/compute/regionBackendServiceIamMember.js.map +1 -1
  37. package/compute/regionBackendServiceIamPolicy.d.ts +85 -0
  38. package/compute/regionBackendServiceIamPolicy.js +25 -0
  39. package/compute/regionBackendServiceIamPolicy.js.map +1 -1
  40. package/datacatalog/tagTemplateIamBinding.d.ts +121 -0
  41. package/datacatalog/tagTemplateIamBinding.js +79 -0
  42. package/datacatalog/tagTemplateIamBinding.js.map +1 -1
  43. package/datacatalog/tagTemplateIamMember.d.ts +121 -0
  44. package/datacatalog/tagTemplateIamMember.js +79 -0
  45. package/datacatalog/tagTemplateIamMember.js.map +1 -1
  46. package/datacatalog/tagTemplateIamPolicy.d.ts +118 -0
  47. package/datacatalog/tagTemplateIamPolicy.js +79 -0
  48. package/datacatalog/tagTemplateIamPolicy.js.map +1 -1
  49. package/folder/iamAuditConfig.d.ts +200 -8
  50. package/folder/iamAuditConfig.js +183 -0
  51. package/folder/iamAuditConfig.js.map +1 -1
  52. package/folder/iammember.d.ts +225 -0
  53. package/folder/iammember.js +183 -0
  54. package/folder/iammember.js.map +1 -1
  55. package/folder/iampolicy.d.ts +213 -0
  56. package/folder/iampolicy.js +183 -0
  57. package/folder/iampolicy.js.map +1 -1
  58. package/kms/registry.d.ts +149 -18
  59. package/kms/registry.js +89 -0
  60. package/kms/registry.js.map +1 -1
  61. package/monitoring/getSecretVersion.d.ts +52 -0
  62. package/monitoring/getSecretVersion.js +14 -0
  63. package/monitoring/getSecretVersion.js.map +1 -1
  64. package/organizations/iammember.d.ts +228 -3
  65. package/organizations/iammember.js +186 -0
  66. package/organizations/iammember.js.map +1 -1
  67. package/organizations/iampolicy.d.ts +216 -3
  68. package/organizations/iampolicy.js +186 -0
  69. package/organizations/iampolicy.js.map +1 -1
  70. package/package.json +2 -2
  71. package/package.json.dev +2 -2
  72. package/sourcerepo/getRepository.d.ts +29 -0
  73. package/sourcerepo/getRepository.js +17 -0
  74. package/sourcerepo/getRepository.js.map +1 -1
  75. package/types/input.d.ts +77 -0
  76. package/types/output.d.ts +77 -0
@@ -1,5 +1,191 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Four different resources help you manage your IAM policy for a organization. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.organizations.IAMPolicy`: Authoritative. Sets the IAM policy for the organization and replaces any existing policy already attached.
7
+ * * `gcp.organizations.IAMBinding`: 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 organization are preserved.
8
+ * * `gcp.organizations.IAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organization are preserved.
9
+ * * `gcp.organizations.IamAuditConfig`: Authoritative for a given service. Updates the IAM policy to enable audit logging for the given service.
10
+ *
11
+ * > **Note:** `gcp.organizations.IAMPolicy` **cannot** be used in conjunction with `gcp.organizations.IAMBinding`, `gcp.organizations.IAMMember`, or `gcp.organizations.IamAuditConfig` or they will fight over what your policy should be.
12
+ *
13
+ * > **Note:** `gcp.organizations.IAMBinding` resources **can be** used in conjunction with `gcp.organizations.IAMMember` resources **only if** they do not grant privilege to the same role.
14
+ *
15
+ * ## google\_organization\_iam\_policy
16
+ *
17
+ * !> **Warning:** New organizations have several default policies which will,
18
+ * without extreme caution, be **overwritten** by use of this resource.
19
+ * The safest alternative is to use multiple `gcp.organizations.IAMBinding`
20
+ * resources. This resource makes it easy to remove your own access to
21
+ * an organization, which will require a call to Google Support to have
22
+ * fixed, and can take multiple days to resolve.
23
+ *
24
+ * In general, this resource should only be used with organizations
25
+ * fully managed by this provider.I f you do use this resource,
26
+ * the best way to be sure that you are not making dangerous changes is to start
27
+ * by **importing** your existing policy, and examining the diff very closely.
28
+ *
29
+ * ```typescript
30
+ * import * as pulumi from "@pulumi/pulumi";
31
+ * import * as gcp from "@pulumi/gcp";
32
+ *
33
+ * const admin = gcp.organizations.getIAMPolicy({
34
+ * bindings: [{
35
+ * role: "roles/editor",
36
+ * members: ["user:jane@example.com"],
37
+ * }],
38
+ * });
39
+ * const organization = new gcp.organizations.IAMPolicy("organization", {
40
+ * orgId: "your-organization-id",
41
+ * policyData: admin.then(admin => admin.policyData),
42
+ * });
43
+ * ```
44
+ *
45
+ * With IAM Conditions:
46
+ *
47
+ * ```typescript
48
+ * import * as pulumi from "@pulumi/pulumi";
49
+ * import * as gcp from "@pulumi/gcp";
50
+ *
51
+ * const admin = pulumi.output(gcp.organizations.getIAMPolicy({
52
+ * bindings: [{
53
+ * condition: {
54
+ * description: "Expiring at midnight of 2019-12-31",
55
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
56
+ * title: "expires_after_2019_12_31",
57
+ * },
58
+ * members: ["user:jane@example.com"],
59
+ * role: "roles/editor",
60
+ * }],
61
+ * }));
62
+ * const organization = new gcp.organizations.IAMPolicy("organization", {
63
+ * orgId: "your-organization-id",
64
+ * policyData: admin.policyData,
65
+ * });
66
+ * ```
67
+ *
68
+ * ## google\_organization\_iam\_binding
69
+ *
70
+ * > **Note:** If `role` is set to `roles/owner` and you don't specify a user or service account you have access to in `members`, you can lock yourself out of your organization.
71
+ *
72
+ * ```typescript
73
+ * import * as pulumi from "@pulumi/pulumi";
74
+ * import * as gcp from "@pulumi/gcp";
75
+ *
76
+ * const organization = new gcp.organizations.IAMBinding("organization", {
77
+ * members: ["user:jane@example.com"],
78
+ * orgId: "your-organization-id",
79
+ * role: "roles/editor",
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 organization = new gcp.organizations.IAMBinding("organization", {
90
+ * condition: {
91
+ * description: "Expiring at midnight of 2019-12-31",
92
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
93
+ * title: "expires_after_2019_12_31",
94
+ * },
95
+ * members: ["user:jane@example.com"],
96
+ * orgId: "your-organization-id",
97
+ * role: "roles/editor",
98
+ * });
99
+ * ```
100
+ *
101
+ * ## google\_organization\_iam\_member
102
+ *
103
+ * ```typescript
104
+ * import * as pulumi from "@pulumi/pulumi";
105
+ * import * as gcp from "@pulumi/gcp";
106
+ *
107
+ * const organization = new gcp.organizations.IAMMember("organization", {
108
+ * member: "user:jane@example.com",
109
+ * orgId: "your-organization-id",
110
+ * role: "roles/editor",
111
+ * });
112
+ * ```
113
+ *
114
+ * With IAM Conditions:
115
+ *
116
+ * ```typescript
117
+ * import * as pulumi from "@pulumi/pulumi";
118
+ * import * as gcp from "@pulumi/gcp";
119
+ *
120
+ * const organization = new gcp.organizations.IAMMember("organization", {
121
+ * condition: {
122
+ * description: "Expiring at midnight of 2019-12-31",
123
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
124
+ * title: "expires_after_2019_12_31",
125
+ * },
126
+ * member: "user:jane@example.com",
127
+ * orgId: "your-organization-id",
128
+ * role: "roles/editor",
129
+ * });
130
+ * ```
131
+ *
132
+ * ## google\_organization\_iam\_audit\_config
133
+ *
134
+ * ```typescript
135
+ * import * as pulumi from "@pulumi/pulumi";
136
+ * import * as gcp from "@pulumi/gcp";
137
+ *
138
+ * const organization = new gcp.organizations.IamAuditConfig("organization", {
139
+ * auditLogConfigs: [
140
+ * {
141
+ * logType: "ADMIN_READ",
142
+ * },
143
+ * {
144
+ * exemptedMembers: ["user:joebloggs@hashicorp.com"],
145
+ * logType: "DATA_READ",
146
+ * },
147
+ * ],
148
+ * orgId: "your-organization-id",
149
+ * service: "allServices",
150
+ * });
151
+ * ```
152
+ *
153
+ * ## Import
154
+ *
155
+ * IAM member imports use space-delimited identifiers; the resource in question, the role, and the account.
156
+ *
157
+ * This member resource can be imported using the `org_id`, role, and member e.g.
158
+ *
159
+ * ```sh
160
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-orgid roles/viewer user:foo@example.com"
161
+ * ```
162
+ *
163
+ * IAM binding imports use space-delimited identifiers; the resource in question and the role.
164
+ *
165
+ * This binding resource can be imported using the `org_id` and role, e.g.
166
+ *
167
+ * ```sh
168
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-org-id roles/viewer"
169
+ * ```
170
+ *
171
+ * IAM policy imports use the identifier of the resource in question.
172
+ *
173
+ * This policy resource can be imported using the `org_id`.
174
+ *
175
+ * ```sh
176
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization your-org-id
177
+ * ```
178
+ *
179
+ * IAM audit config imports use the identifier of the resource in question and the service, e.g.
180
+ *
181
+ * ```sh
182
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-organization-id foo.googleapis.com"
183
+ * ```
184
+ *
185
+ * -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
186
+ *
187
+ * full name of the custom role, e.g. `organizations/{{org_id}}/roles/{{role_id}}`.
188
+ */
3
189
  export declare class IAMMember extends pulumi.CustomResource {
4
190
  /**
5
191
  * Get an existing IAMMember resource's state with the given name, ID, and optional extra
@@ -16,13 +202,27 @@ export declare class IAMMember extends pulumi.CustomResource {
16
202
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
17
203
  */
18
204
  static isInstance(obj: any): obj is IAMMember;
205
+ /**
206
+ * An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
207
+ * Structure is documented below.
208
+ */
19
209
  readonly condition: pulumi.Output<outputs.organizations.IAMMemberCondition | undefined>;
210
+ /**
211
+ * (Computed) The etag of the organization's IAM policy.
212
+ */
20
213
  readonly etag: pulumi.Output<string>;
21
214
  readonly member: pulumi.Output<string>;
22
215
  /**
23
- * The numeric ID of the organization in which you want to manage the audit logging config.
216
+ * The organization ID. If not specified for `gcp.organizations.IAMBinding`, `gcp.organizations.IAMMember`, or `gcp.organizations.IamAuditConfig`, uses the ID of the organization configured with the provider.
217
+ * Required for `gcp.organizations.IAMPolicy` - you must explicitly set the organization, and it
218
+ * will not be inferred from the provider.
24
219
  */
25
220
  readonly orgId: pulumi.Output<string>;
221
+ /**
222
+ * The role that should be applied. Only one
223
+ * `gcp.organizations.IAMBinding` can be used per role. Note that custom roles must be of the format
224
+ * `organizations/{{org_id}}/roles/{{role_id}}`.
225
+ */
26
226
  readonly role: pulumi.Output<string>;
27
227
  /**
28
228
  * Create a IAMMember resource with the given unique name, arguments, and options.
@@ -37,24 +237,49 @@ export declare class IAMMember extends pulumi.CustomResource {
37
237
  * Input properties used for looking up and filtering IAMMember resources.
38
238
  */
39
239
  export interface IAMMemberState {
240
+ /**
241
+ * An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
242
+ * Structure is documented below.
243
+ */
40
244
  condition?: pulumi.Input<inputs.organizations.IAMMemberCondition>;
245
+ /**
246
+ * (Computed) The etag of the organization's IAM policy.
247
+ */
41
248
  etag?: pulumi.Input<string>;
42
249
  member?: pulumi.Input<string>;
43
250
  /**
44
- * The numeric ID of the organization in which you want to manage the audit logging config.
251
+ * The organization ID. If not specified for `gcp.organizations.IAMBinding`, `gcp.organizations.IAMMember`, or `gcp.organizations.IamAuditConfig`, uses the ID of the organization configured with the provider.
252
+ * Required for `gcp.organizations.IAMPolicy` - you must explicitly set the organization, and it
253
+ * will not be inferred from the provider.
45
254
  */
46
255
  orgId?: pulumi.Input<string>;
256
+ /**
257
+ * The role that should be applied. Only one
258
+ * `gcp.organizations.IAMBinding` can be used per role. Note that custom roles must be of the format
259
+ * `organizations/{{org_id}}/roles/{{role_id}}`.
260
+ */
47
261
  role?: pulumi.Input<string>;
48
262
  }
49
263
  /**
50
264
  * The set of arguments for constructing a IAMMember resource.
51
265
  */
52
266
  export interface IAMMemberArgs {
267
+ /**
268
+ * An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
269
+ * Structure is documented below.
270
+ */
53
271
  condition?: pulumi.Input<inputs.organizations.IAMMemberCondition>;
54
272
  member: pulumi.Input<string>;
55
273
  /**
56
- * The numeric ID of the organization in which you want to manage the audit logging config.
274
+ * The organization ID. If not specified for `gcp.organizations.IAMBinding`, `gcp.organizations.IAMMember`, or `gcp.organizations.IamAuditConfig`, uses the ID of the organization configured with the provider.
275
+ * Required for `gcp.organizations.IAMPolicy` - you must explicitly set the organization, and it
276
+ * will not be inferred from the provider.
57
277
  */
58
278
  orgId: pulumi.Input<string>;
279
+ /**
280
+ * The role that should be applied. Only one
281
+ * `gcp.organizations.IAMBinding` can be used per role. Note that custom roles must be of the format
282
+ * `organizations/{{org_id}}/roles/{{role_id}}`.
283
+ */
59
284
  role: pulumi.Input<string>;
60
285
  }
@@ -5,6 +5,192 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.IAMMember = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ /**
9
+ * Four different resources help you manage your IAM policy for a organization. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.organizations.IAMPolicy`: Authoritative. Sets the IAM policy for the organization and replaces any existing policy already attached.
12
+ * * `gcp.organizations.IAMBinding`: 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 organization are preserved.
13
+ * * `gcp.organizations.IAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the organization are preserved.
14
+ * * `gcp.organizations.IamAuditConfig`: Authoritative for a given service. Updates the IAM policy to enable audit logging for the given service.
15
+ *
16
+ * > **Note:** `gcp.organizations.IAMPolicy` **cannot** be used in conjunction with `gcp.organizations.IAMBinding`, `gcp.organizations.IAMMember`, or `gcp.organizations.IamAuditConfig` or they will fight over what your policy should be.
17
+ *
18
+ * > **Note:** `gcp.organizations.IAMBinding` resources **can be** used in conjunction with `gcp.organizations.IAMMember` resources **only if** they do not grant privilege to the same role.
19
+ *
20
+ * ## google\_organization\_iam\_policy
21
+ *
22
+ * !> **Warning:** New organizations have several default policies which will,
23
+ * without extreme caution, be **overwritten** by use of this resource.
24
+ * The safest alternative is to use multiple `gcp.organizations.IAMBinding`
25
+ * resources. This resource makes it easy to remove your own access to
26
+ * an organization, which will require a call to Google Support to have
27
+ * fixed, and can take multiple days to resolve.
28
+ *
29
+ * In general, this resource should only be used with organizations
30
+ * fully managed by this provider.I f you do use this resource,
31
+ * the best way to be sure that you are not making dangerous changes is to start
32
+ * by **importing** your existing policy, and examining the diff very closely.
33
+ *
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as gcp from "@pulumi/gcp";
37
+ *
38
+ * const admin = gcp.organizations.getIAMPolicy({
39
+ * bindings: [{
40
+ * role: "roles/editor",
41
+ * members: ["user:jane@example.com"],
42
+ * }],
43
+ * });
44
+ * const organization = new gcp.organizations.IAMPolicy("organization", {
45
+ * orgId: "your-organization-id",
46
+ * policyData: admin.then(admin => admin.policyData),
47
+ * });
48
+ * ```
49
+ *
50
+ * With IAM Conditions:
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as gcp from "@pulumi/gcp";
55
+ *
56
+ * const admin = pulumi.output(gcp.organizations.getIAMPolicy({
57
+ * bindings: [{
58
+ * condition: {
59
+ * description: "Expiring at midnight of 2019-12-31",
60
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
61
+ * title: "expires_after_2019_12_31",
62
+ * },
63
+ * members: ["user:jane@example.com"],
64
+ * role: "roles/editor",
65
+ * }],
66
+ * }));
67
+ * const organization = new gcp.organizations.IAMPolicy("organization", {
68
+ * orgId: "your-organization-id",
69
+ * policyData: admin.policyData,
70
+ * });
71
+ * ```
72
+ *
73
+ * ## google\_organization\_iam\_binding
74
+ *
75
+ * > **Note:** If `role` is set to `roles/owner` and you don't specify a user or service account you have access to in `members`, you can lock yourself out of your organization.
76
+ *
77
+ * ```typescript
78
+ * import * as pulumi from "@pulumi/pulumi";
79
+ * import * as gcp from "@pulumi/gcp";
80
+ *
81
+ * const organization = new gcp.organizations.IAMBinding("organization", {
82
+ * members: ["user:jane@example.com"],
83
+ * orgId: "your-organization-id",
84
+ * role: "roles/editor",
85
+ * });
86
+ * ```
87
+ *
88
+ * With IAM Conditions:
89
+ *
90
+ * ```typescript
91
+ * import * as pulumi from "@pulumi/pulumi";
92
+ * import * as gcp from "@pulumi/gcp";
93
+ *
94
+ * const organization = new gcp.organizations.IAMBinding("organization", {
95
+ * condition: {
96
+ * description: "Expiring at midnight of 2019-12-31",
97
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
98
+ * title: "expires_after_2019_12_31",
99
+ * },
100
+ * members: ["user:jane@example.com"],
101
+ * orgId: "your-organization-id",
102
+ * role: "roles/editor",
103
+ * });
104
+ * ```
105
+ *
106
+ * ## google\_organization\_iam\_member
107
+ *
108
+ * ```typescript
109
+ * import * as pulumi from "@pulumi/pulumi";
110
+ * import * as gcp from "@pulumi/gcp";
111
+ *
112
+ * const organization = new gcp.organizations.IAMMember("organization", {
113
+ * member: "user:jane@example.com",
114
+ * orgId: "your-organization-id",
115
+ * role: "roles/editor",
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 organization = new gcp.organizations.IAMMember("organization", {
126
+ * condition: {
127
+ * description: "Expiring at midnight of 2019-12-31",
128
+ * expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
129
+ * title: "expires_after_2019_12_31",
130
+ * },
131
+ * member: "user:jane@example.com",
132
+ * orgId: "your-organization-id",
133
+ * role: "roles/editor",
134
+ * });
135
+ * ```
136
+ *
137
+ * ## google\_organization\_iam\_audit\_config
138
+ *
139
+ * ```typescript
140
+ * import * as pulumi from "@pulumi/pulumi";
141
+ * import * as gcp from "@pulumi/gcp";
142
+ *
143
+ * const organization = new gcp.organizations.IamAuditConfig("organization", {
144
+ * auditLogConfigs: [
145
+ * {
146
+ * logType: "ADMIN_READ",
147
+ * },
148
+ * {
149
+ * exemptedMembers: ["user:joebloggs@hashicorp.com"],
150
+ * logType: "DATA_READ",
151
+ * },
152
+ * ],
153
+ * orgId: "your-organization-id",
154
+ * service: "allServices",
155
+ * });
156
+ * ```
157
+ *
158
+ * ## Import
159
+ *
160
+ * IAM member imports use space-delimited identifiers; the resource in question, the role, and the account.
161
+ *
162
+ * This member resource can be imported using the `org_id`, role, and member e.g.
163
+ *
164
+ * ```sh
165
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-orgid roles/viewer user:foo@example.com"
166
+ * ```
167
+ *
168
+ * IAM binding imports use space-delimited identifiers; the resource in question and the role.
169
+ *
170
+ * This binding resource can be imported using the `org_id` and role, e.g.
171
+ *
172
+ * ```sh
173
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-org-id roles/viewer"
174
+ * ```
175
+ *
176
+ * IAM policy imports use the identifier of the resource in question.
177
+ *
178
+ * This policy resource can be imported using the `org_id`.
179
+ *
180
+ * ```sh
181
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization your-org-id
182
+ * ```
183
+ *
184
+ * IAM audit config imports use the identifier of the resource in question and the service, e.g.
185
+ *
186
+ * ```sh
187
+ * $ pulumi import gcp:organizations/iAMMember:IAMMember my_organization "your-organization-id foo.googleapis.com"
188
+ * ```
189
+ *
190
+ * -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
191
+ *
192
+ * full name of the custom role, e.g. `organizations/{{org_id}}/roles/{{role_id}}`.
193
+ */
8
194
  class IAMMember extends pulumi.CustomResource {
9
195
  constructor(name, argsOrState, opts) {
10
196
  let resourceInputs = {};
@@ -1 +1 @@
1
- {"version":3,"file":"iammember.js","sourceRoot":"","sources":["../../organizations/iammember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IA6ChD,YAAY,IAAY,EAAE,WAA4C,EAAE,IA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