@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionIamMember.js","sourceRoot":"","sources":["../../cloudfunctions/functionIamMember.ts"],"names":[],"mappings":";AAAA,wFAAw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YAC1D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAhGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAkGC;AApFG,gBAAgB;AACO,8BAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -1,4 +1,89 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:
|
|
4
|
+
*
|
|
5
|
+
* * `gcp.cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached.
|
|
6
|
+
* * `gcp.cloudfunctions.FunctionIamBinding`: 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 cloudfunction are preserved.
|
|
7
|
+
* * `gcp.cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.
|
|
8
|
+
*
|
|
9
|
+
* > **Note:** `gcp.cloudfunctions.FunctionIamPolicy` **cannot** be used in conjunction with `gcp.cloudfunctions.FunctionIamBinding` and `gcp.cloudfunctions.FunctionIamMember` or they will fight over what your policy should be.
|
|
10
|
+
*
|
|
11
|
+
* > **Note:** `gcp.cloudfunctions.FunctionIamBinding` resources **can be** used in conjunction with `gcp.cloudfunctions.FunctionIamMember` resources **only if** they do not grant privilege to the same role.
|
|
12
|
+
*
|
|
13
|
+
* ## google\_cloudfunctions\_function\_iam\_policy
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as gcp from "@pulumi/gcp";
|
|
18
|
+
*
|
|
19
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
20
|
+
* bindings: [{
|
|
21
|
+
* role: "roles/viewer",
|
|
22
|
+
* members: ["user:jane@example.com"],
|
|
23
|
+
* }],
|
|
24
|
+
* });
|
|
25
|
+
* const policy = new gcp.cloudfunctions.FunctionIamPolicy("policy", {
|
|
26
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
27
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
28
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
29
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## google\_cloudfunctions\_function\_iam\_binding
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as gcp from "@pulumi/gcp";
|
|
38
|
+
*
|
|
39
|
+
* const binding = new gcp.cloudfunctions.FunctionIamBinding("binding", {
|
|
40
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
41
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
42
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
43
|
+
* role: "roles/viewer",
|
|
44
|
+
* members: ["user:jane@example.com"],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ## google\_cloudfunctions\_function\_iam\_member
|
|
49
|
+
*
|
|
50
|
+
* ```typescript
|
|
51
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
52
|
+
* import * as gcp from "@pulumi/gcp";
|
|
53
|
+
*
|
|
54
|
+
* const member = new gcp.cloudfunctions.FunctionIamMember("member", {
|
|
55
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
56
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
57
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
58
|
+
* role: "roles/viewer",
|
|
59
|
+
* member: "user:jane@example.com",
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ## Import
|
|
64
|
+
*
|
|
65
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
66
|
+
*
|
|
67
|
+
* ```sh
|
|
68
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
72
|
+
*
|
|
73
|
+
* ```sh
|
|
74
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
78
|
+
*
|
|
79
|
+
* ```sh
|
|
80
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor projects/{{project}}/locations/{{region}}/functions/{{cloud_function}}
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
84
|
+
*
|
|
85
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
86
|
+
*/
|
|
2
87
|
export declare class FunctionIamPolicy extends pulumi.CustomResource {
|
|
3
88
|
/**
|
|
4
89
|
* Get an existing FunctionIamPolicy resource's state with the given name, ID, and optional extra
|
|
@@ -15,10 +100,29 @@ export declare class FunctionIamPolicy extends pulumi.CustomResource {
|
|
|
15
100
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
101
|
*/
|
|
17
102
|
static isInstance(obj: any): obj is FunctionIamPolicy;
|
|
103
|
+
/**
|
|
104
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
105
|
+
*/
|
|
18
106
|
readonly cloudFunction: pulumi.Output<string>;
|
|
107
|
+
/**
|
|
108
|
+
* (Computed) The etag of the IAM policy.
|
|
109
|
+
*/
|
|
19
110
|
readonly etag: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* The policy data generated by
|
|
113
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
114
|
+
*/
|
|
20
115
|
readonly policyData: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The ID of the project in which the resource belongs.
|
|
118
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
119
|
+
*/
|
|
21
120
|
readonly project: pulumi.Output<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
123
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
124
|
+
* region is specified, it is taken from the provider configuration.
|
|
125
|
+
*/
|
|
22
126
|
readonly region: pulumi.Output<string>;
|
|
23
127
|
/**
|
|
24
128
|
* Create a FunctionIamPolicy resource with the given unique name, arguments, and options.
|
|
@@ -33,18 +137,53 @@ export declare class FunctionIamPolicy extends pulumi.CustomResource {
|
|
|
33
137
|
* Input properties used for looking up and filtering FunctionIamPolicy resources.
|
|
34
138
|
*/
|
|
35
139
|
export interface FunctionIamPolicyState {
|
|
140
|
+
/**
|
|
141
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
142
|
+
*/
|
|
36
143
|
cloudFunction?: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* (Computed) The etag of the IAM policy.
|
|
146
|
+
*/
|
|
37
147
|
etag?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The policy data generated by
|
|
150
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
151
|
+
*/
|
|
38
152
|
policyData?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* The ID of the project in which the resource belongs.
|
|
155
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
156
|
+
*/
|
|
39
157
|
project?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
160
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
161
|
+
* region is specified, it is taken from the provider configuration.
|
|
162
|
+
*/
|
|
40
163
|
region?: pulumi.Input<string>;
|
|
41
164
|
}
|
|
42
165
|
/**
|
|
43
166
|
* The set of arguments for constructing a FunctionIamPolicy resource.
|
|
44
167
|
*/
|
|
45
168
|
export interface FunctionIamPolicyArgs {
|
|
169
|
+
/**
|
|
170
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
171
|
+
*/
|
|
46
172
|
cloudFunction: pulumi.Input<string>;
|
|
173
|
+
/**
|
|
174
|
+
* The policy data generated by
|
|
175
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
176
|
+
*/
|
|
47
177
|
policyData: pulumi.Input<string>;
|
|
178
|
+
/**
|
|
179
|
+
* The ID of the project in which the resource belongs.
|
|
180
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
181
|
+
*/
|
|
48
182
|
project?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The location of this cloud function. Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
185
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
186
|
+
* region is specified, it is taken from the provider configuration.
|
|
187
|
+
*/
|
|
49
188
|
region?: pulumi.Input<string>;
|
|
50
189
|
}
|
|
@@ -5,6 +5,91 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.FunctionIamPolicy = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Three different resources help you manage your IAM policy for Cloud Functions CloudFunction. Each of these resources serves a different use case:
|
|
10
|
+
*
|
|
11
|
+
* * `gcp.cloudfunctions.FunctionIamPolicy`: Authoritative. Sets the IAM policy for the cloudfunction and replaces any existing policy already attached.
|
|
12
|
+
* * `gcp.cloudfunctions.FunctionIamBinding`: 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 cloudfunction are preserved.
|
|
13
|
+
* * `gcp.cloudfunctions.FunctionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the cloudfunction are preserved.
|
|
14
|
+
*
|
|
15
|
+
* > **Note:** `gcp.cloudfunctions.FunctionIamPolicy` **cannot** be used in conjunction with `gcp.cloudfunctions.FunctionIamBinding` and `gcp.cloudfunctions.FunctionIamMember` or they will fight over what your policy should be.
|
|
16
|
+
*
|
|
17
|
+
* > **Note:** `gcp.cloudfunctions.FunctionIamBinding` resources **can be** used in conjunction with `gcp.cloudfunctions.FunctionIamMember` resources **only if** they do not grant privilege to the same role.
|
|
18
|
+
*
|
|
19
|
+
* ## google\_cloudfunctions\_function\_iam\_policy
|
|
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.cloudfunctions.FunctionIamPolicy("policy", {
|
|
32
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
33
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
34
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
35
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ## google\_cloudfunctions\_function\_iam\_binding
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as gcp from "@pulumi/gcp";
|
|
44
|
+
*
|
|
45
|
+
* const binding = new gcp.cloudfunctions.FunctionIamBinding("binding", {
|
|
46
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
47
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
48
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
49
|
+
* role: "roles/viewer",
|
|
50
|
+
* members: ["user:jane@example.com"],
|
|
51
|
+
* });
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* ## google\_cloudfunctions\_function\_iam\_member
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
58
|
+
* import * as gcp from "@pulumi/gcp";
|
|
59
|
+
*
|
|
60
|
+
* const member = new gcp.cloudfunctions.FunctionIamMember("member", {
|
|
61
|
+
* project: google_cloudfunctions_function["function"].project,
|
|
62
|
+
* region: google_cloudfunctions_function["function"].region,
|
|
63
|
+
* cloudFunction: google_cloudfunctions_function["function"].name,
|
|
64
|
+
* role: "roles/viewer",
|
|
65
|
+
* member: "user:jane@example.com",
|
|
66
|
+
* });
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
69
|
+
* ## Import
|
|
70
|
+
*
|
|
71
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} * {{project}}/{{region}}/{{cloud_function}} * {{region}}/{{cloud_function}} * {{cloud_function}} Any variables not passed in the import command will be taken from the provider configuration. Cloud Functions cloudfunction IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
72
|
+
*
|
|
73
|
+
* ```sh
|
|
74
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer user:jane@example.com"
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
78
|
+
*
|
|
79
|
+
* ```sh
|
|
80
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor "projects/{{project}}/locations/{{region}}/functions/{{cloud_function}} roles/viewer"
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
84
|
+
*
|
|
85
|
+
* ```sh
|
|
86
|
+
* $ pulumi import gcp:cloudfunctions/functionIamPolicy:FunctionIamPolicy editor projects/{{project}}/locations/{{region}}/functions/{{cloud_function}}
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
90
|
+
*
|
|
91
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
92
|
+
*/
|
|
8
93
|
class FunctionIamPolicy extends pulumi.CustomResource {
|
|
9
94
|
constructor(name, argsOrState, opts) {
|
|
10
95
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionIamPolicy.js","sourceRoot":"","sources":["../../cloudfunctions/functionIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"functionIamPolicy.js","sourceRoot":"","sources":["../../cloudfunctions/functionIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA6DxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,MAAM,C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1D,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;IAtFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAwFC;AA1EG,gBAAgB;AACO,8BAAY,GAAG,wDAAwD,CAAC"}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/global/backendServices/{{name}} * {{project}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine backendservice IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin user:jane@example.com"
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
13
|
+
*
|
|
14
|
+
* ```sh
|
|
15
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin"
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor projects/{{project}}/global/backendServices/{{backend_service}}
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
25
|
+
*
|
|
26
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
27
|
+
*/
|
|
3
28
|
export declare class BackendServiceIamBinding extends pulumi.CustomResource {
|
|
4
29
|
/**
|
|
5
30
|
* Get an existing BackendServiceIamBinding resource's state with the given name, ID, and optional extra
|
|
@@ -16,11 +41,30 @@ export declare class BackendServiceIamBinding extends pulumi.CustomResource {
|
|
|
16
41
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
42
|
*/
|
|
18
43
|
static isInstance(obj: any): obj is BackendServiceIamBinding;
|
|
44
|
+
/**
|
|
45
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
46
|
+
* Structure is documented below.
|
|
47
|
+
*/
|
|
19
48
|
readonly condition: pulumi.Output<outputs.compute.BackendServiceIamBindingCondition | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* (Computed) The etag of the IAM policy.
|
|
51
|
+
*/
|
|
20
52
|
readonly etag: pulumi.Output<string>;
|
|
21
53
|
readonly members: pulumi.Output<string[]>;
|
|
54
|
+
/**
|
|
55
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
56
|
+
*/
|
|
22
57
|
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The ID of the project in which the resource belongs.
|
|
60
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
61
|
+
*/
|
|
23
62
|
readonly project: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The role that should be applied. Only one
|
|
65
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
66
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
67
|
+
*/
|
|
24
68
|
readonly role: pulumi.Output<string>;
|
|
25
69
|
/**
|
|
26
70
|
* Create a BackendServiceIamBinding resource with the given unique name, arguments, and options.
|
|
@@ -35,20 +79,55 @@ export declare class BackendServiceIamBinding extends pulumi.CustomResource {
|
|
|
35
79
|
* Input properties used for looking up and filtering BackendServiceIamBinding resources.
|
|
36
80
|
*/
|
|
37
81
|
export interface BackendServiceIamBindingState {
|
|
82
|
+
/**
|
|
83
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
84
|
+
* Structure is documented below.
|
|
85
|
+
*/
|
|
38
86
|
condition?: pulumi.Input<inputs.compute.BackendServiceIamBindingCondition>;
|
|
87
|
+
/**
|
|
88
|
+
* (Computed) The etag of the IAM policy.
|
|
89
|
+
*/
|
|
39
90
|
etag?: pulumi.Input<string>;
|
|
40
91
|
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
94
|
+
*/
|
|
41
95
|
name?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the project in which the resource belongs.
|
|
98
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
99
|
+
*/
|
|
42
100
|
project?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The role that should be applied. Only one
|
|
103
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
104
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
105
|
+
*/
|
|
43
106
|
role?: pulumi.Input<string>;
|
|
44
107
|
}
|
|
45
108
|
/**
|
|
46
109
|
* The set of arguments for constructing a BackendServiceIamBinding resource.
|
|
47
110
|
*/
|
|
48
111
|
export interface BackendServiceIamBindingArgs {
|
|
112
|
+
/**
|
|
113
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
114
|
+
* Structure is documented below.
|
|
115
|
+
*/
|
|
49
116
|
condition?: pulumi.Input<inputs.compute.BackendServiceIamBindingCondition>;
|
|
50
117
|
members: pulumi.Input<pulumi.Input<string>[]>;
|
|
118
|
+
/**
|
|
119
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
120
|
+
*/
|
|
51
121
|
name?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The ID of the project in which the resource belongs.
|
|
124
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
125
|
+
*/
|
|
52
126
|
project?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The role that should be applied. Only one
|
|
129
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
130
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
131
|
+
*/
|
|
53
132
|
role: pulumi.Input<string>;
|
|
54
133
|
}
|
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.BackendServiceIamBinding = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/global/backendServices/{{name}} * {{project}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine backendservice IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin user:jane@example.com"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import gcp:compute/backendServiceIamBinding:BackendServiceIamBinding editor projects/{{project}}/global/backendServices/{{backend_service}}
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
30
|
+
*
|
|
31
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
32
|
+
*/
|
|
8
33
|
class BackendServiceIamBinding extends pulumi.CustomResource {
|
|
9
34
|
constructor(name, argsOrState, opts) {
|
|
10
35
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backendServiceIamBinding.js","sourceRoot":"","sources":["../../compute/backendServiceIamBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;A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AAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC/E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,wBAAwB,CAAC,YAAY,CAAC;IACzE,CAAC;;AA1BL,4DA2FC;AA7EG,gBAAgB;AACO,qCAAY,GAAG,+DAA+D,CAAC"}
|
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* ## Import
|
|
5
|
+
*
|
|
6
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/global/backendServices/{{name}} * {{project}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine backendservice IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
7
|
+
*
|
|
8
|
+
* ```sh
|
|
9
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin user:jane@example.com"
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
13
|
+
*
|
|
14
|
+
* ```sh
|
|
15
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin"
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
19
|
+
*
|
|
20
|
+
* ```sh
|
|
21
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor projects/{{project}}/global/backendServices/{{backend_service}}
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
25
|
+
*
|
|
26
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
27
|
+
*/
|
|
3
28
|
export declare class BackendServiceIamMember extends pulumi.CustomResource {
|
|
4
29
|
/**
|
|
5
30
|
* Get an existing BackendServiceIamMember resource's state with the given name, ID, and optional extra
|
|
@@ -16,11 +41,30 @@ export declare class BackendServiceIamMember extends pulumi.CustomResource {
|
|
|
16
41
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
17
42
|
*/
|
|
18
43
|
static isInstance(obj: any): obj is BackendServiceIamMember;
|
|
44
|
+
/**
|
|
45
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
46
|
+
* Structure is documented below.
|
|
47
|
+
*/
|
|
19
48
|
readonly condition: pulumi.Output<outputs.compute.BackendServiceIamMemberCondition | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* (Computed) The etag of the IAM policy.
|
|
51
|
+
*/
|
|
20
52
|
readonly etag: pulumi.Output<string>;
|
|
21
53
|
readonly member: pulumi.Output<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
56
|
+
*/
|
|
22
57
|
readonly name: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The ID of the project in which the resource belongs.
|
|
60
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
61
|
+
*/
|
|
23
62
|
readonly project: pulumi.Output<string>;
|
|
63
|
+
/**
|
|
64
|
+
* The role that should be applied. Only one
|
|
65
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
66
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
67
|
+
*/
|
|
24
68
|
readonly role: pulumi.Output<string>;
|
|
25
69
|
/**
|
|
26
70
|
* Create a BackendServiceIamMember resource with the given unique name, arguments, and options.
|
|
@@ -35,20 +79,55 @@ export declare class BackendServiceIamMember extends pulumi.CustomResource {
|
|
|
35
79
|
* Input properties used for looking up and filtering BackendServiceIamMember resources.
|
|
36
80
|
*/
|
|
37
81
|
export interface BackendServiceIamMemberState {
|
|
82
|
+
/**
|
|
83
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
84
|
+
* Structure is documented below.
|
|
85
|
+
*/
|
|
38
86
|
condition?: pulumi.Input<inputs.compute.BackendServiceIamMemberCondition>;
|
|
87
|
+
/**
|
|
88
|
+
* (Computed) The etag of the IAM policy.
|
|
89
|
+
*/
|
|
39
90
|
etag?: pulumi.Input<string>;
|
|
40
91
|
member?: pulumi.Input<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
94
|
+
*/
|
|
41
95
|
name?: pulumi.Input<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the project in which the resource belongs.
|
|
98
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
99
|
+
*/
|
|
42
100
|
project?: pulumi.Input<string>;
|
|
101
|
+
/**
|
|
102
|
+
* The role that should be applied. Only one
|
|
103
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
104
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
105
|
+
*/
|
|
43
106
|
role?: pulumi.Input<string>;
|
|
44
107
|
}
|
|
45
108
|
/**
|
|
46
109
|
* The set of arguments for constructing a BackendServiceIamMember resource.
|
|
47
110
|
*/
|
|
48
111
|
export interface BackendServiceIamMemberArgs {
|
|
112
|
+
/**
|
|
113
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
114
|
+
* Structure is documented below.
|
|
115
|
+
*/
|
|
49
116
|
condition?: pulumi.Input<inputs.compute.BackendServiceIamMemberCondition>;
|
|
50
117
|
member: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
120
|
+
*/
|
|
51
121
|
name?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The ID of the project in which the resource belongs.
|
|
124
|
+
* If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
|
|
125
|
+
*/
|
|
52
126
|
project?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The role that should be applied. Only one
|
|
129
|
+
* `gcp.compute.BackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
130
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
131
|
+
*/
|
|
53
132
|
role: pulumi.Input<string>;
|
|
54
133
|
}
|
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.BackendServiceIamMember = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Import
|
|
10
|
+
*
|
|
11
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/global/backendServices/{{name}} * {{project}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine backendservice IAM resources can be imported using the resource identifiers, role, and member. IAM member imports use space-delimited identifiersthe resource in question, the role, and the member identity, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin user:jane@example.com"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor "projects/{{project}}/global/backendServices/{{backend_service}} roles/compute.admin"
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
24
|
+
*
|
|
25
|
+
* ```sh
|
|
26
|
+
* $ pulumi import gcp:compute/backendServiceIamMember:BackendServiceIamMember editor projects/{{project}}/global/backendServices/{{backend_service}}
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
30
|
+
*
|
|
31
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
32
|
+
*/
|
|
8
33
|
class BackendServiceIamMember extends pulumi.CustomResource {
|
|
9
34
|
constructor(name, argsOrState, opts) {
|
|
10
35
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backendServiceIamMember.js","sourceRoot":"","sources":["../../compute/backendServiceIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"backendServiceIamMember.js","sourceRoot":"","sources":["../../compute/backendServiceIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IA8D9D,YAAY,IAAY,EAAE,WAAwE,EAAE,IAAmC;QACnI,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,M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