@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.
- package/accesscontextmanager/index.d.ts +6 -0
- package/accesscontextmanager/index.js +11 -1
- package/accesscontextmanager/index.js.map +1 -1
- package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.d.ts +112 -0
- package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js +76 -0
- package/accesscontextmanager/servicePerimeterDryRunEgressPolicy.js.map +1 -0
- package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.d.ts +116 -0
- package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js +77 -0
- package/accesscontextmanager/servicePerimeterDryRunIngressPolicy.js.map +1 -0
- package/accesscontextmanager/servicePerimeterEgressPolicy.d.ts +1 -12
- package/accesscontextmanager/servicePerimeterEgressPolicy.js +1 -12
- package/accesscontextmanager/servicePerimeterEgressPolicy.js.map +1 -1
- package/accesscontextmanager/servicePerimeterIngressPolicy.d.ts +1 -12
- package/accesscontextmanager/servicePerimeterIngressPolicy.js +1 -12
- package/accesscontextmanager/servicePerimeterIngressPolicy.js.map +1 -1
- package/applicationintegration/client.d.ts +1 -1
- package/applicationintegration/client.js +1 -1
- package/compute/regionTargetHttpsProxy.d.ts +12 -0
- package/compute/regionTargetHttpsProxy.js.map +1 -1
- package/dataform/repository.d.ts +31 -0
- package/dataform/repository.js +18 -0
- package/dataform/repository.js.map +1 -1
- package/discoveryengine/dataStore.d.ts +31 -0
- package/discoveryengine/dataStore.js +3 -0
- package/discoveryengine/dataStore.js.map +1 -1
- package/logging/getLogViewIamPolicy.d.ts +34 -0
- package/logging/getLogViewIamPolicy.js +34 -0
- package/logging/getLogViewIamPolicy.js.map +1 -1
- package/logging/logViewIamBinding.d.ts +276 -0
- package/logging/logViewIamBinding.js +276 -0
- package/logging/logViewIamBinding.js.map +1 -1
- package/logging/logViewIamMember.d.ts +276 -0
- package/logging/logViewIamMember.js +276 -0
- package/logging/logViewIamMember.js.map +1 -1
- package/logging/logViewIamPolicy.d.ts +276 -0
- package/logging/logViewIamPolicy.js +276 -0
- package/logging/logViewIamPolicy.js.map +1 -1
- package/networkconnectivity/regionalEndpoint.d.ts +3 -3
- package/networkconnectivity/regionalEndpoint.js +3 -3
- package/organizations/getProject.d.ts +1 -0
- package/organizations/getProject.js.map +1 -1
- package/organizations/project.d.ts +21 -9
- package/organizations/project.js +2 -0
- package/organizations/project.js.map +1 -1
- package/package.json +2 -2
- package/securitycenter/getV2OrganizationSourceIamPolicy.d.ts +71 -0
- package/securitycenter/getV2OrganizationSourceIamPolicy.js +48 -0
- package/securitycenter/getV2OrganizationSourceIamPolicy.js.map +1 -0
- package/securitycenter/index.d.ts +24 -0
- package/securitycenter/index.js +39 -1
- package/securitycenter/index.js.map +1 -1
- package/securitycenter/v2folderMuteConfig.d.ts +230 -0
- package/securitycenter/v2folderMuteConfig.js +129 -0
- package/securitycenter/v2folderMuteConfig.js.map +1 -0
- package/securitycenter/v2organizationSource.d.ts +151 -0
- package/securitycenter/v2organizationSource.js +106 -0
- package/securitycenter/v2organizationSource.js.map +1 -0
- package/securitycenter/v2organizationSourceIamBinding.d.ts +283 -0
- package/securitycenter/v2organizationSourceIamBinding.js +230 -0
- package/securitycenter/v2organizationSourceIamBinding.js.map +1 -0
- package/securitycenter/v2organizationSourceIamMember.d.ts +283 -0
- package/securitycenter/v2organizationSourceIamMember.js +230 -0
- package/securitycenter/v2organizationSourceIamMember.js.map +1 -0
- package/securitycenter/v2organizationSourceIamPolicy.d.ts +233 -0
- package/securitycenter/v2organizationSourceIamPolicy.js +223 -0
- package/securitycenter/v2organizationSourceIamPolicy.js.map +1 -0
- package/securitycenter/v2projectMuteConfig.d.ts +232 -0
- package/securitycenter/v2projectMuteConfig.js +128 -0
- package/securitycenter/v2projectMuteConfig.js.map +1 -0
- package/securitycenter/v2projectNotificationConfig.d.ts +184 -0
- package/securitycenter/v2projectNotificationConfig.js +129 -0
- package/securitycenter/v2projectNotificationConfig.js.map +1 -0
- package/spanner/instance.d.ts +0 -3
- package/spanner/instance.js.map +1 -1
- package/storage/bucketObject.d.ts +8 -0
- package/storage/bucketObject.js +2 -0
- package/storage/bucketObject.js.map +1 -1
- package/storage/getBucketObject.d.ts +4 -0
- package/storage/getBucketObject.js.map +1 -1
- package/storage/getBucketObjectContent.d.ts +1 -0
- package/storage/getBucketObjectContent.js.map +1 -1
- package/storage/managedFolder.d.ts +22 -0
- package/storage/managedFolder.js +3 -0
- package/storage/managedFolder.js.map +1 -1
- package/types/input.d.ts +242 -3
- package/types/output.d.ts +256 -5
- package/vmwareengine/networkPolicy.d.ts +3 -3
- 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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 V2OrganizationSourceIamMember extends pulumi.CustomResource {
|
|
164
|
+
/**
|
|
165
|
+
* Get an existing V2OrganizationSourceIamMember 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?: V2OrganizationSourceIamMemberState, opts?: pulumi.CustomResourceOptions): V2OrganizationSourceIamMember;
|
|
174
|
+
/**
|
|
175
|
+
* Returns true if the given object is an instance of V2OrganizationSourceIamMember. 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 V2OrganizationSourceIamMember;
|
|
179
|
+
readonly condition: pulumi.Output<outputs.securitycenter.V2OrganizationSourceIamMemberCondition | 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 member: 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 V2OrganizationSourceIamMember 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: V2OrganizationSourceIamMemberArgs, opts?: pulumi.CustomResourceOptions);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Input properties used for looking up and filtering V2OrganizationSourceIamMember resources.
|
|
220
|
+
*/
|
|
221
|
+
export interface V2OrganizationSourceIamMemberState {
|
|
222
|
+
condition?: pulumi.Input<inputs.securitycenter.V2OrganizationSourceIamMemberCondition>;
|
|
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
|
+
member?: 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 V2OrganizationSourceIamMember resource.
|
|
255
|
+
*/
|
|
256
|
+
export interface V2OrganizationSourceIamMemberArgs {
|
|
257
|
+
condition?: pulumi.Input<inputs.securitycenter.V2OrganizationSourceIamMemberCondition>;
|
|
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
|
+
member: 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.V2OrganizationSourceIamMember = 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember 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 V2OrganizationSourceIamMember extends pulumi.CustomResource {
|
|
168
|
+
/**
|
|
169
|
+
* Get an existing V2OrganizationSourceIamMember 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 V2OrganizationSourceIamMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Returns true if the given object is an instance of V2OrganizationSourceIamMember. 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'] === V2OrganizationSourceIamMember.__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["member"] = state ? state.member : 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.member === undefined) && !opts.urn) {
|
|
205
|
+
throw new Error("Missing required property 'member'");
|
|
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["member"] = args ? args.member : 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(V2OrganizationSourceIamMember.__pulumiType, name, resourceInputs, opts);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.V2OrganizationSourceIamMember = V2OrganizationSourceIamMember;
|
|
228
|
+
/** @internal */
|
|
229
|
+
V2OrganizationSourceIamMember.__pulumiType = 'gcp:securitycenter/v2OrganizationSourceIamMember:V2OrganizationSourceIamMember';
|
|
230
|
+
//# sourceMappingURL=v2organizationSourceIamMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v2organizationSourceIamMember.js","sourceRoot":"","sources":["../../securitycenter/v2organizationSourceIamMember.ts"],"names":[],"mappings":"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"}
|