@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,233 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* 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:
|
|
4
|
+
*
|
|
5
|
+
* * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
|
6
|
+
* * `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.
|
|
7
|
+
* * `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.
|
|
8
|
+
*
|
|
9
|
+
* A data source can be used to retrieve policy data in advent you do not need creation
|
|
10
|
+
*
|
|
11
|
+
* * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
|
12
|
+
*
|
|
13
|
+
* > **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.
|
|
14
|
+
*
|
|
15
|
+
* > **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.
|
|
16
|
+
*
|
|
17
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamPolicy
|
|
18
|
+
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as gcp from "@pulumi/gcp";
|
|
22
|
+
*
|
|
23
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
24
|
+
* bindings: [{
|
|
25
|
+
* role: "roles/viewer",
|
|
26
|
+
* members: ["user:jane@example.com"],
|
|
27
|
+
* }],
|
|
28
|
+
* });
|
|
29
|
+
* const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
|
|
30
|
+
* source: customSource.name,
|
|
31
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamBinding
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as gcp from "@pulumi/gcp";
|
|
40
|
+
*
|
|
41
|
+
* const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
|
|
42
|
+
* source: customSource.name,
|
|
43
|
+
* role: "roles/viewer",
|
|
44
|
+
* members: ["user:jane@example.com"],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamMember
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as gcp from "@pulumi/gcp";
|
|
53
|
+
*
|
|
54
|
+
* const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
|
|
55
|
+
* source: customSource.name,
|
|
56
|
+
* role: "roles/viewer",
|
|
57
|
+
* member: "user:jane@example.com",
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ## > **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
|
62
|
+
*
|
|
63
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
64
|
+
* ---
|
|
65
|
+
*
|
|
66
|
+
* # IAM policy for Security Command Center (SCC)v2 API OrganizationSource
|
|
67
|
+
* 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:
|
|
68
|
+
*
|
|
69
|
+
* * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Authoritative. Sets the IAM policy for the organizationsource and replaces any existing policy already attached.
|
|
70
|
+
* * `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.
|
|
71
|
+
* * `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.
|
|
72
|
+
*
|
|
73
|
+
* A data source can be used to retrieve policy data in advent you do not need creation
|
|
74
|
+
*
|
|
75
|
+
* * `gcp.securitycenter.V2OrganizationSourceIamPolicy`: Retrieves the IAM policy for the organizationsource
|
|
76
|
+
*
|
|
77
|
+
* > **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.
|
|
78
|
+
*
|
|
79
|
+
* > **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.
|
|
80
|
+
*
|
|
81
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamPolicy
|
|
82
|
+
*
|
|
83
|
+
* ```typescript
|
|
84
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
85
|
+
* import * as gcp from "@pulumi/gcp";
|
|
86
|
+
*
|
|
87
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
88
|
+
* bindings: [{
|
|
89
|
+
* role: "roles/viewer",
|
|
90
|
+
* members: ["user:jane@example.com"],
|
|
91
|
+
* }],
|
|
92
|
+
* });
|
|
93
|
+
* const policy = new gcp.securitycenter.V2OrganizationSourceIamPolicy("policy", {
|
|
94
|
+
* source: customSource.name,
|
|
95
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamBinding
|
|
100
|
+
*
|
|
101
|
+
* ```typescript
|
|
102
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
103
|
+
* import * as gcp from "@pulumi/gcp";
|
|
104
|
+
*
|
|
105
|
+
* const binding = new gcp.securitycenter.V2OrganizationSourceIamBinding("binding", {
|
|
106
|
+
* source: customSource.name,
|
|
107
|
+
* role: "roles/viewer",
|
|
108
|
+
* members: ["user:jane@example.com"],
|
|
109
|
+
* });
|
|
110
|
+
* ```
|
|
111
|
+
*
|
|
112
|
+
* ## gcp.securitycenter.V2OrganizationSourceIamMember
|
|
113
|
+
*
|
|
114
|
+
* ```typescript
|
|
115
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
116
|
+
* import * as gcp from "@pulumi/gcp";
|
|
117
|
+
*
|
|
118
|
+
* const member = new gcp.securitycenter.V2OrganizationSourceIamMember("member", {
|
|
119
|
+
* source: customSource.name,
|
|
120
|
+
* role: "roles/viewer",
|
|
121
|
+
* member: "user:jane@example.com",
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* ## Import
|
|
126
|
+
*
|
|
127
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms:
|
|
128
|
+
*
|
|
129
|
+
* * organizations/{{organization}}/sources/{{source}}
|
|
130
|
+
*
|
|
131
|
+
* * {{organization}}/{{source}}
|
|
132
|
+
*
|
|
133
|
+
* * {{source}}
|
|
134
|
+
*
|
|
135
|
+
* Any variables not passed in the import command will be taken from the provider configuration.
|
|
136
|
+
*
|
|
137
|
+
* Security Command Center (SCC)v2 API organizationsource IAM resources can be imported using the resource identifiers, role, and member.
|
|
138
|
+
*
|
|
139
|
+
* IAM member imports use space-delimited identifiers: the resource in question, the role, and the member identity, e.g.
|
|
140
|
+
*
|
|
141
|
+
* ```sh
|
|
142
|
+
* $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer user:jane@example.com"
|
|
143
|
+
* ```
|
|
144
|
+
*
|
|
145
|
+
* IAM binding imports use space-delimited identifiers: the resource in question and the role, e.g.
|
|
146
|
+
*
|
|
147
|
+
* ```sh
|
|
148
|
+
* $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor "organizations/{{organization}}/sources/{{source}} roles/viewer"
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
152
|
+
*
|
|
153
|
+
* ```sh
|
|
154
|
+
* $ pulumi import gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy editor organizations/{{organization}}/sources/{{source}}
|
|
155
|
+
* ```
|
|
156
|
+
*
|
|
157
|
+
* -> **Custom Roles**: If you're importing a IAM resource with a custom role, make sure to use the
|
|
158
|
+
*
|
|
159
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
160
|
+
*/
|
|
161
|
+
export declare class V2OrganizationSourceIamPolicy extends pulumi.CustomResource {
|
|
162
|
+
/**
|
|
163
|
+
* Get an existing V2OrganizationSourceIamPolicy resource's state with the given name, ID, and optional extra
|
|
164
|
+
* properties used to qualify the lookup.
|
|
165
|
+
*
|
|
166
|
+
* @param name The _unique_ name of the resulting resource.
|
|
167
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
168
|
+
* @param state Any extra arguments used during the lookup.
|
|
169
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
170
|
+
*/
|
|
171
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: V2OrganizationSourceIamPolicyState, opts?: pulumi.CustomResourceOptions): V2OrganizationSourceIamPolicy;
|
|
172
|
+
/**
|
|
173
|
+
* Returns true if the given object is an instance of V2OrganizationSourceIamPolicy. This is designed to work even
|
|
174
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
175
|
+
*/
|
|
176
|
+
static isInstance(obj: any): obj is V2OrganizationSourceIamPolicy;
|
|
177
|
+
/**
|
|
178
|
+
* (Computed) The etag of the IAM policy.
|
|
179
|
+
*/
|
|
180
|
+
readonly etag: pulumi.Output<string>;
|
|
181
|
+
readonly organization: pulumi.Output<string>;
|
|
182
|
+
/**
|
|
183
|
+
* The policy data generated by
|
|
184
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
185
|
+
*/
|
|
186
|
+
readonly policyData: pulumi.Output<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
189
|
+
*/
|
|
190
|
+
readonly source: pulumi.Output<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Create a V2OrganizationSourceIamPolicy resource with the given unique name, arguments, and options.
|
|
193
|
+
*
|
|
194
|
+
* @param name The _unique_ name of the resource.
|
|
195
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
196
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
197
|
+
*/
|
|
198
|
+
constructor(name: string, args: V2OrganizationSourceIamPolicyArgs, opts?: pulumi.CustomResourceOptions);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Input properties used for looking up and filtering V2OrganizationSourceIamPolicy resources.
|
|
202
|
+
*/
|
|
203
|
+
export interface V2OrganizationSourceIamPolicyState {
|
|
204
|
+
/**
|
|
205
|
+
* (Computed) The etag of the IAM policy.
|
|
206
|
+
*/
|
|
207
|
+
etag?: pulumi.Input<string>;
|
|
208
|
+
organization?: pulumi.Input<string>;
|
|
209
|
+
/**
|
|
210
|
+
* The policy data generated by
|
|
211
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
212
|
+
*/
|
|
213
|
+
policyData?: pulumi.Input<string>;
|
|
214
|
+
/**
|
|
215
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
216
|
+
*/
|
|
217
|
+
source?: pulumi.Input<string>;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* The set of arguments for constructing a V2OrganizationSourceIamPolicy resource.
|
|
221
|
+
*/
|
|
222
|
+
export interface V2OrganizationSourceIamPolicyArgs {
|
|
223
|
+
organization: pulumi.Input<string>;
|
|
224
|
+
/**
|
|
225
|
+
* The policy data generated by
|
|
226
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
227
|
+
*/
|
|
228
|
+
policyData: pulumi.Input<string>;
|
|
229
|
+
/**
|
|
230
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
231
|
+
*/
|
|
232
|
+
source: pulumi.Input<string>;
|
|
233
|
+
}
|
|
@@ -0,0 +1,223 @@
|
|
|
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.V2OrganizationSourceIamPolicy = 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/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy 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/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy 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/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy 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 V2OrganizationSourceIamPolicy extends pulumi.CustomResource {
|
|
168
|
+
/**
|
|
169
|
+
* Get an existing V2OrganizationSourceIamPolicy 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 V2OrganizationSourceIamPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Returns true if the given object is an instance of V2OrganizationSourceIamPolicy. 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'] === V2OrganizationSourceIamPolicy.__pulumiType;
|
|
189
|
+
}
|
|
190
|
+
constructor(name, argsOrState, opts) {
|
|
191
|
+
let resourceInputs = {};
|
|
192
|
+
opts = opts || {};
|
|
193
|
+
if (opts.id) {
|
|
194
|
+
const state = argsOrState;
|
|
195
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
196
|
+
resourceInputs["organization"] = state ? state.organization : undefined;
|
|
197
|
+
resourceInputs["policyData"] = state ? state.policyData : undefined;
|
|
198
|
+
resourceInputs["source"] = state ? state.source : undefined;
|
|
199
|
+
}
|
|
200
|
+
else {
|
|
201
|
+
const args = argsOrState;
|
|
202
|
+
if ((!args || args.organization === undefined) && !opts.urn) {
|
|
203
|
+
throw new Error("Missing required property 'organization'");
|
|
204
|
+
}
|
|
205
|
+
if ((!args || args.policyData === undefined) && !opts.urn) {
|
|
206
|
+
throw new Error("Missing required property 'policyData'");
|
|
207
|
+
}
|
|
208
|
+
if ((!args || args.source === undefined) && !opts.urn) {
|
|
209
|
+
throw new Error("Missing required property 'source'");
|
|
210
|
+
}
|
|
211
|
+
resourceInputs["organization"] = args ? args.organization : undefined;
|
|
212
|
+
resourceInputs["policyData"] = args ? args.policyData : undefined;
|
|
213
|
+
resourceInputs["source"] = args ? args.source : undefined;
|
|
214
|
+
resourceInputs["etag"] = undefined /*out*/;
|
|
215
|
+
}
|
|
216
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
217
|
+
super(V2OrganizationSourceIamPolicy.__pulumiType, name, resourceInputs, opts);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
exports.V2OrganizationSourceIamPolicy = V2OrganizationSourceIamPolicy;
|
|
221
|
+
/** @internal */
|
|
222
|
+
V2OrganizationSourceIamPolicy.__pulumiType = 'gcp:securitycenter/v2OrganizationSourceIamPolicy:V2OrganizationSourceIamPolicy';
|
|
223
|
+
//# sourceMappingURL=v2organizationSourceIamPolicy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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