@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.
- package/billing/accountIamBinding.d.ts +105 -0
- package/billing/accountIamBinding.js +75 -0
- package/billing/accountIamBinding.js.map +1 -1
- package/billing/accountIamMember.d.ts +105 -0
- package/billing/accountIamMember.js +75 -0
- package/billing/accountIamMember.js.map +1 -1
- package/billing/accountIamPolicy.d.ts +99 -0
- package/billing/accountIamPolicy.js +75 -0
- package/billing/accountIamPolicy.js.map +1 -1
- package/cloudfunctions/functionIamBinding.d.ts +142 -0
- package/cloudfunctions/functionIamBinding.js +85 -0
- package/cloudfunctions/functionIamBinding.js.map +1 -1
- package/cloudfunctions/functionIamMember.d.ts +142 -0
- package/cloudfunctions/functionIamMember.js +85 -0
- package/cloudfunctions/functionIamMember.js.map +1 -1
- package/cloudfunctions/functionIamPolicy.d.ts +139 -0
- package/cloudfunctions/functionIamPolicy.js +85 -0
- package/cloudfunctions/functionIamPolicy.js.map +1 -1
- package/compute/backendServiceIamBinding.d.ts +79 -0
- package/compute/backendServiceIamBinding.js +25 -0
- package/compute/backendServiceIamBinding.js.map +1 -1
- package/compute/backendServiceIamMember.d.ts +79 -0
- package/compute/backendServiceIamMember.js +25 -0
- package/compute/backendServiceIamMember.js.map +1 -1
- package/compute/backendServiceIamPolicy.d.ts +64 -0
- package/compute/backendServiceIamPolicy.js +25 -0
- package/compute/backendServiceIamPolicy.js.map +1 -1
- package/compute/mangedSslCertificate.d.ts +157 -27
- package/compute/mangedSslCertificate.js +97 -0
- package/compute/mangedSslCertificate.js.map +1 -1
- package/compute/regionBackendServiceIamBinding.d.ts +100 -0
- package/compute/regionBackendServiceIamBinding.js +25 -0
- package/compute/regionBackendServiceIamBinding.js.map +1 -1
- package/compute/regionBackendServiceIamMember.d.ts +100 -0
- package/compute/regionBackendServiceIamMember.js +25 -0
- package/compute/regionBackendServiceIamMember.js.map +1 -1
- package/compute/regionBackendServiceIamPolicy.d.ts +85 -0
- package/compute/regionBackendServiceIamPolicy.js +25 -0
- package/compute/regionBackendServiceIamPolicy.js.map +1 -1
- package/datacatalog/tagTemplateIamBinding.d.ts +121 -0
- package/datacatalog/tagTemplateIamBinding.js +79 -0
- package/datacatalog/tagTemplateIamBinding.js.map +1 -1
- package/datacatalog/tagTemplateIamMember.d.ts +121 -0
- package/datacatalog/tagTemplateIamMember.js +79 -0
- package/datacatalog/tagTemplateIamMember.js.map +1 -1
- package/datacatalog/tagTemplateIamPolicy.d.ts +118 -0
- package/datacatalog/tagTemplateIamPolicy.js +79 -0
- package/datacatalog/tagTemplateIamPolicy.js.map +1 -1
- package/folder/iamAuditConfig.d.ts +200 -8
- package/folder/iamAuditConfig.js +183 -0
- package/folder/iamAuditConfig.js.map +1 -1
- package/folder/iammember.d.ts +225 -0
- package/folder/iammember.js +183 -0
- package/folder/iammember.js.map +1 -1
- package/folder/iampolicy.d.ts +213 -0
- package/folder/iampolicy.js +183 -0
- package/folder/iampolicy.js.map +1 -1
- package/kms/registry.d.ts +149 -18
- package/kms/registry.js +89 -0
- package/kms/registry.js.map +1 -1
- package/monitoring/getSecretVersion.d.ts +52 -0
- package/monitoring/getSecretVersion.js +14 -0
- package/monitoring/getSecretVersion.js.map +1 -1
- package/organizations/iammember.d.ts +228 -3
- package/organizations/iammember.js +186 -0
- package/organizations/iammember.js.map +1 -1
- package/organizations/iampolicy.d.ts +216 -3
- package/organizations/iampolicy.js +186 -0
- package/organizations/iampolicy.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/sourcerepo/getRepository.d.ts +29 -0
- package/sourcerepo/getRepository.js +17 -0
- package/sourcerepo/getRepository.js.map +1 -1
- package/types/input.d.ts +77 -0
- package/types/output.d.ts +77 -0
package/folder/iampolicy.d.ts
CHANGED
|
@@ -1,4 +1,187 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Four different resources help you manage your IAM policy for a folder. Each of these resources serves a different use case:
|
|
4
|
+
*
|
|
5
|
+
* * `gcp.folder.IAMPolicy`: Authoritative. Sets the IAM policy for the folder and replaces any existing policy already attached.
|
|
6
|
+
* * `gcp.folder.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 folder are preserved.
|
|
7
|
+
* * `gcp.folder.IAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the folder are preserved.
|
|
8
|
+
* * `gcp.folder.IamAuditConfig`: Authoritative for a given service. Updates the IAM policy to enable audit logging for the given service.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:** `gcp.folder.IAMPolicy` **cannot** be used in conjunction with `gcp.folder.IAMBinding`, `gcp.folder.IAMMember`, or `gcp.folder.IamAuditConfig` or they will fight over what your policy should be.
|
|
11
|
+
*
|
|
12
|
+
* > **Note:** `gcp.folder.IAMBinding` resources **can be** used in conjunction with `gcp.folder.IAMMember` resources **only if** they do not grant privilege to the same role.
|
|
13
|
+
*
|
|
14
|
+
* > **Note:** The underlying API method `projects.setIamPolicy` has constraints which are documented [here](https://cloud.google.com/resource-manager/reference/rest/v1/projects/setIamPolicy). In addition to these constraints,
|
|
15
|
+
* IAM Conditions cannot be used with Basic Roles such as Owner. Violating these constraints will result in the API returning a 400 error code so please review these if you encounter errors with this resource.
|
|
16
|
+
*
|
|
17
|
+
* ## google\_folder\_iam\_policy
|
|
18
|
+
*
|
|
19
|
+
* !> **Be careful!** You can accidentally lock yourself out of your folder
|
|
20
|
+
* using this resource. Deleting a `gcp.folder.IAMPolicy` removes access
|
|
21
|
+
* from anyone without permissions on its parent folder/organization. Proceed with caution.
|
|
22
|
+
* It's not recommended to use `gcp.folder.IAMPolicy` with your provider folder
|
|
23
|
+
* to avoid locking yourself out, and it should generally only be used with folders
|
|
24
|
+
* fully managed by this provider. If you do use this resource, it is recommended to **import** the policy before
|
|
25
|
+
* applying the change.
|
|
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/editor",
|
|
34
|
+
* members: ["user:jane@example.com"],
|
|
35
|
+
* }],
|
|
36
|
+
* });
|
|
37
|
+
* const folder = new gcp.folder.IAMPolicy("folder", {
|
|
38
|
+
* folder: "folders/1234567",
|
|
39
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* With IAM Conditions:
|
|
44
|
+
*
|
|
45
|
+
* ```typescript
|
|
46
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
47
|
+
* import * as gcp from "@pulumi/gcp";
|
|
48
|
+
*
|
|
49
|
+
* const admin = pulumi.output(gcp.organizations.getIAMPolicy({
|
|
50
|
+
* bindings: [{
|
|
51
|
+
* condition: {
|
|
52
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
53
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
54
|
+
* title: "expires_after_2019_12_31",
|
|
55
|
+
* },
|
|
56
|
+
* members: ["user:jane@example.com"],
|
|
57
|
+
* role: "roles/compute.admin",
|
|
58
|
+
* }],
|
|
59
|
+
* }));
|
|
60
|
+
* const folder = new gcp.folder.IAMPolicy("folder", {
|
|
61
|
+
* folder: "folders/1234567",
|
|
62
|
+
* policyData: admin.policyData,
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ## google\_folder\_iam\_binding
|
|
67
|
+
*
|
|
68
|
+
* ```typescript
|
|
69
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
70
|
+
* import * as gcp from "@pulumi/gcp";
|
|
71
|
+
*
|
|
72
|
+
* const folder = new gcp.folder.IAMBinding("folder", {
|
|
73
|
+
* folder: "folders/1234567",
|
|
74
|
+
* members: ["user:jane@example.com"],
|
|
75
|
+
* role: "roles/editor",
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* With IAM Conditions:
|
|
80
|
+
*
|
|
81
|
+
* ```typescript
|
|
82
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
83
|
+
* import * as gcp from "@pulumi/gcp";
|
|
84
|
+
*
|
|
85
|
+
* const folder = new gcp.folder.IAMBinding("folder", {
|
|
86
|
+
* condition: {
|
|
87
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
88
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
89
|
+
* title: "expires_after_2019_12_31",
|
|
90
|
+
* },
|
|
91
|
+
* folder: "folders/1234567",
|
|
92
|
+
* members: ["user:jane@example.com"],
|
|
93
|
+
* role: "roles/container.admin",
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* ## google\_folder\_iam\_member
|
|
98
|
+
*
|
|
99
|
+
* ```typescript
|
|
100
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
101
|
+
* import * as gcp from "@pulumi/gcp";
|
|
102
|
+
*
|
|
103
|
+
* const folder = new gcp.folder.IAMMember("folder", {
|
|
104
|
+
* folder: "folders/1234567",
|
|
105
|
+
* member: "user:jane@example.com",
|
|
106
|
+
* role: "roles/editor",
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* With IAM Conditions:
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
114
|
+
* import * as gcp from "@pulumi/gcp";
|
|
115
|
+
*
|
|
116
|
+
* const folder = new gcp.folder.IAMMember("folder", {
|
|
117
|
+
* condition: {
|
|
118
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
119
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
120
|
+
* title: "expires_after_2019_12_31",
|
|
121
|
+
* },
|
|
122
|
+
* folder: "folders/1234567",
|
|
123
|
+
* member: "user:jane@example.com",
|
|
124
|
+
* role: "roles/firebase.admin",
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*
|
|
128
|
+
* ## google\_folder\_iam\_audit\_config
|
|
129
|
+
*
|
|
130
|
+
* ```typescript
|
|
131
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
132
|
+
* import * as gcp from "@pulumi/gcp";
|
|
133
|
+
*
|
|
134
|
+
* const folder = new gcp.folder.IamAuditConfig("folder", {
|
|
135
|
+
* auditLogConfigs: [
|
|
136
|
+
* {
|
|
137
|
+
* logType: "ADMIN_READ",
|
|
138
|
+
* },
|
|
139
|
+
* {
|
|
140
|
+
* exemptedMembers: ["user:joebloggs@hashicorp.com"],
|
|
141
|
+
* logType: "DATA_READ",
|
|
142
|
+
* },
|
|
143
|
+
* ],
|
|
144
|
+
* folder: "folders/1234567",
|
|
145
|
+
* service: "allServices",
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* ## Import
|
|
150
|
+
*
|
|
151
|
+
* IAM member imports use space-delimited identifiers; the resource in question, the role, and the account.
|
|
152
|
+
*
|
|
153
|
+
* This member resource can be imported using the `folder`, role, and member e.g.
|
|
154
|
+
*
|
|
155
|
+
* ```sh
|
|
156
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder roles/viewer user:foo@example.com"
|
|
157
|
+
* ```
|
|
158
|
+
*
|
|
159
|
+
* IAM binding imports use space-delimited identifiers; the resource in question and the role.
|
|
160
|
+
*
|
|
161
|
+
* This binding resource can be imported using the `folder` and role, e.g.
|
|
162
|
+
*
|
|
163
|
+
* ```sh
|
|
164
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder roles/viewer"
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* IAM policy imports use the identifier of the resource in question.
|
|
168
|
+
*
|
|
169
|
+
* This policy resource can be imported using the `folder`.
|
|
170
|
+
*
|
|
171
|
+
* ```sh
|
|
172
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder folder
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* IAM audit config imports use the identifier of the resource in question and the service, e.g.
|
|
176
|
+
*
|
|
177
|
+
* ```sh
|
|
178
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder foo.googleapis.com"
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
182
|
+
*
|
|
183
|
+
* full name of the custom role, e.g. `organizations/{{org_id}}/roles/{{role_id}}`.
|
|
184
|
+
*/
|
|
2
185
|
export declare class IAMPolicy extends pulumi.CustomResource {
|
|
3
186
|
/**
|
|
4
187
|
* Get an existing IAMPolicy resource's state with the given name, ID, and optional extra
|
|
@@ -15,8 +198,19 @@ export declare class IAMPolicy extends pulumi.CustomResource {
|
|
|
15
198
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
199
|
*/
|
|
17
200
|
static isInstance(obj: any): obj is IAMPolicy;
|
|
201
|
+
/**
|
|
202
|
+
* (Computed) The etag of the folder's IAM policy.
|
|
203
|
+
*/
|
|
18
204
|
readonly etag: pulumi.Output<string>;
|
|
205
|
+
/**
|
|
206
|
+
* The resource name of the folder the policy is attached to. Its format is folders/{folder_id}.
|
|
207
|
+
*/
|
|
19
208
|
readonly folder: pulumi.Output<string>;
|
|
209
|
+
/**
|
|
210
|
+
* The `gcp.organizations.getIAMPolicy` data source that represents
|
|
211
|
+
* the IAM policy that will be applied to the folder. The policy will be
|
|
212
|
+
* merged with any existing policy applied to the folder.
|
|
213
|
+
*/
|
|
20
214
|
readonly policyData: pulumi.Output<string>;
|
|
21
215
|
/**
|
|
22
216
|
* Create a IAMPolicy resource with the given unique name, arguments, and options.
|
|
@@ -31,14 +225,33 @@ export declare class IAMPolicy extends pulumi.CustomResource {
|
|
|
31
225
|
* Input properties used for looking up and filtering IAMPolicy resources.
|
|
32
226
|
*/
|
|
33
227
|
export interface IAMPolicyState {
|
|
228
|
+
/**
|
|
229
|
+
* (Computed) The etag of the folder's IAM policy.
|
|
230
|
+
*/
|
|
34
231
|
etag?: pulumi.Input<string>;
|
|
232
|
+
/**
|
|
233
|
+
* The resource name of the folder the policy is attached to. Its format is folders/{folder_id}.
|
|
234
|
+
*/
|
|
35
235
|
folder?: pulumi.Input<string>;
|
|
236
|
+
/**
|
|
237
|
+
* The `gcp.organizations.getIAMPolicy` data source that represents
|
|
238
|
+
* the IAM policy that will be applied to the folder. The policy will be
|
|
239
|
+
* merged with any existing policy applied to the folder.
|
|
240
|
+
*/
|
|
36
241
|
policyData?: pulumi.Input<string>;
|
|
37
242
|
}
|
|
38
243
|
/**
|
|
39
244
|
* The set of arguments for constructing a IAMPolicy resource.
|
|
40
245
|
*/
|
|
41
246
|
export interface IAMPolicyArgs {
|
|
247
|
+
/**
|
|
248
|
+
* The resource name of the folder the policy is attached to. Its format is folders/{folder_id}.
|
|
249
|
+
*/
|
|
42
250
|
folder: pulumi.Input<string>;
|
|
251
|
+
/**
|
|
252
|
+
* The `gcp.organizations.getIAMPolicy` data source that represents
|
|
253
|
+
* the IAM policy that will be applied to the folder. The policy will be
|
|
254
|
+
* merged with any existing policy applied to the folder.
|
|
255
|
+
*/
|
|
43
256
|
policyData: pulumi.Input<string>;
|
|
44
257
|
}
|
package/folder/iampolicy.js
CHANGED
|
@@ -5,6 +5,189 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.IAMPolicy = 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 folder. Each of these resources serves a different use case:
|
|
10
|
+
*
|
|
11
|
+
* * `gcp.folder.IAMPolicy`: Authoritative. Sets the IAM policy for the folder and replaces any existing policy already attached.
|
|
12
|
+
* * `gcp.folder.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 folder are preserved.
|
|
13
|
+
* * `gcp.folder.IAMMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the folder are preserved.
|
|
14
|
+
* * `gcp.folder.IamAuditConfig`: Authoritative for a given service. Updates the IAM policy to enable audit logging for the given service.
|
|
15
|
+
*
|
|
16
|
+
* > **Note:** `gcp.folder.IAMPolicy` **cannot** be used in conjunction with `gcp.folder.IAMBinding`, `gcp.folder.IAMMember`, or `gcp.folder.IamAuditConfig` or they will fight over what your policy should be.
|
|
17
|
+
*
|
|
18
|
+
* > **Note:** `gcp.folder.IAMBinding` resources **can be** used in conjunction with `gcp.folder.IAMMember` resources **only if** they do not grant privilege to the same role.
|
|
19
|
+
*
|
|
20
|
+
* > **Note:** The underlying API method `projects.setIamPolicy` has constraints which are documented [here](https://cloud.google.com/resource-manager/reference/rest/v1/projects/setIamPolicy). In addition to these constraints,
|
|
21
|
+
* IAM Conditions cannot be used with Basic Roles such as Owner. Violating these constraints will result in the API returning a 400 error code so please review these if you encounter errors with this resource.
|
|
22
|
+
*
|
|
23
|
+
* ## google\_folder\_iam\_policy
|
|
24
|
+
*
|
|
25
|
+
* !> **Be careful!** You can accidentally lock yourself out of your folder
|
|
26
|
+
* using this resource. Deleting a `gcp.folder.IAMPolicy` removes access
|
|
27
|
+
* from anyone without permissions on its parent folder/organization. Proceed with caution.
|
|
28
|
+
* It's not recommended to use `gcp.folder.IAMPolicy` with your provider folder
|
|
29
|
+
* to avoid locking yourself out, and it should generally only be used with folders
|
|
30
|
+
* fully managed by this provider. If you do use this resource, it is recommended to **import** the policy before
|
|
31
|
+
* applying the change.
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as gcp from "@pulumi/gcp";
|
|
36
|
+
*
|
|
37
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
38
|
+
* bindings: [{
|
|
39
|
+
* role: "roles/editor",
|
|
40
|
+
* members: ["user:jane@example.com"],
|
|
41
|
+
* }],
|
|
42
|
+
* });
|
|
43
|
+
* const folder = new gcp.folder.IAMPolicy("folder", {
|
|
44
|
+
* folder: "folders/1234567",
|
|
45
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* With IAM Conditions:
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as gcp from "@pulumi/gcp";
|
|
54
|
+
*
|
|
55
|
+
* const admin = pulumi.output(gcp.organizations.getIAMPolicy({
|
|
56
|
+
* bindings: [{
|
|
57
|
+
* condition: {
|
|
58
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
59
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
60
|
+
* title: "expires_after_2019_12_31",
|
|
61
|
+
* },
|
|
62
|
+
* members: ["user:jane@example.com"],
|
|
63
|
+
* role: "roles/compute.admin",
|
|
64
|
+
* }],
|
|
65
|
+
* }));
|
|
66
|
+
* const folder = new gcp.folder.IAMPolicy("folder", {
|
|
67
|
+
* folder: "folders/1234567",
|
|
68
|
+
* policyData: admin.policyData,
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ## google\_folder\_iam\_binding
|
|
73
|
+
*
|
|
74
|
+
* ```typescript
|
|
75
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
76
|
+
* import * as gcp from "@pulumi/gcp";
|
|
77
|
+
*
|
|
78
|
+
* const folder = new gcp.folder.IAMBinding("folder", {
|
|
79
|
+
* folder: "folders/1234567",
|
|
80
|
+
* members: ["user:jane@example.com"],
|
|
81
|
+
* role: "roles/editor",
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*
|
|
85
|
+
* With IAM Conditions:
|
|
86
|
+
*
|
|
87
|
+
* ```typescript
|
|
88
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
89
|
+
* import * as gcp from "@pulumi/gcp";
|
|
90
|
+
*
|
|
91
|
+
* const folder = new gcp.folder.IAMBinding("folder", {
|
|
92
|
+
* condition: {
|
|
93
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
94
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
95
|
+
* title: "expires_after_2019_12_31",
|
|
96
|
+
* },
|
|
97
|
+
* folder: "folders/1234567",
|
|
98
|
+
* members: ["user:jane@example.com"],
|
|
99
|
+
* role: "roles/container.admin",
|
|
100
|
+
* });
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* ## google\_folder\_iam\_member
|
|
104
|
+
*
|
|
105
|
+
* ```typescript
|
|
106
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
107
|
+
* import * as gcp from "@pulumi/gcp";
|
|
108
|
+
*
|
|
109
|
+
* const folder = new gcp.folder.IAMMember("folder", {
|
|
110
|
+
* folder: "folders/1234567",
|
|
111
|
+
* member: "user:jane@example.com",
|
|
112
|
+
* role: "roles/editor",
|
|
113
|
+
* });
|
|
114
|
+
* ```
|
|
115
|
+
*
|
|
116
|
+
* With IAM Conditions:
|
|
117
|
+
*
|
|
118
|
+
* ```typescript
|
|
119
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
120
|
+
* import * as gcp from "@pulumi/gcp";
|
|
121
|
+
*
|
|
122
|
+
* const folder = new gcp.folder.IAMMember("folder", {
|
|
123
|
+
* condition: {
|
|
124
|
+
* description: "Expiring at midnight of 2019-12-31",
|
|
125
|
+
* expression: "request.time < timestamp(\"2020-01-01T00:00:00Z\")",
|
|
126
|
+
* title: "expires_after_2019_12_31",
|
|
127
|
+
* },
|
|
128
|
+
* folder: "folders/1234567",
|
|
129
|
+
* member: "user:jane@example.com",
|
|
130
|
+
* role: "roles/firebase.admin",
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
133
|
+
*
|
|
134
|
+
* ## google\_folder\_iam\_audit\_config
|
|
135
|
+
*
|
|
136
|
+
* ```typescript
|
|
137
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
138
|
+
* import * as gcp from "@pulumi/gcp";
|
|
139
|
+
*
|
|
140
|
+
* const folder = new gcp.folder.IamAuditConfig("folder", {
|
|
141
|
+
* auditLogConfigs: [
|
|
142
|
+
* {
|
|
143
|
+
* logType: "ADMIN_READ",
|
|
144
|
+
* },
|
|
145
|
+
* {
|
|
146
|
+
* exemptedMembers: ["user:joebloggs@hashicorp.com"],
|
|
147
|
+
* logType: "DATA_READ",
|
|
148
|
+
* },
|
|
149
|
+
* ],
|
|
150
|
+
* folder: "folders/1234567",
|
|
151
|
+
* service: "allServices",
|
|
152
|
+
* });
|
|
153
|
+
* ```
|
|
154
|
+
*
|
|
155
|
+
* ## Import
|
|
156
|
+
*
|
|
157
|
+
* IAM member imports use space-delimited identifiers; the resource in question, the role, and the account.
|
|
158
|
+
*
|
|
159
|
+
* This member resource can be imported using the `folder`, role, and member e.g.
|
|
160
|
+
*
|
|
161
|
+
* ```sh
|
|
162
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder roles/viewer user:foo@example.com"
|
|
163
|
+
* ```
|
|
164
|
+
*
|
|
165
|
+
* IAM binding imports use space-delimited identifiers; the resource in question and the role.
|
|
166
|
+
*
|
|
167
|
+
* This binding resource can be imported using the `folder` and role, e.g.
|
|
168
|
+
*
|
|
169
|
+
* ```sh
|
|
170
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder roles/viewer"
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* IAM policy imports use the identifier of the resource in question.
|
|
174
|
+
*
|
|
175
|
+
* This policy resource can be imported using the `folder`.
|
|
176
|
+
*
|
|
177
|
+
* ```sh
|
|
178
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder folder
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* IAM audit config imports use the identifier of the resource in question and the service, e.g.
|
|
182
|
+
*
|
|
183
|
+
* ```sh
|
|
184
|
+
* $ pulumi import gcp:folder/iAMPolicy:IAMPolicy my_folder "folder foo.googleapis.com"
|
|
185
|
+
* ```
|
|
186
|
+
*
|
|
187
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
188
|
+
*
|
|
189
|
+
* full name of the custom role, e.g. `organizations/{{org_id}}/roles/{{role_id}}`.
|
|
190
|
+
*/
|
|
8
191
|
class IAMPolicy extends pulumi.CustomResource {
|
|
9
192
|
constructor(name, argsOrState, opts) {
|
|
10
193
|
let resourceInputs = {};
|
package/folder/iampolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iampolicy.js","sourceRoot":"","sources":["../../folder/iampolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"iampolicy.js","sourceRoot":"","sources":["../../folder/iampolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsLG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAmDhD,YAAY,IAAY,EAAE,WAA4C,EAAE,IAA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