@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
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RegionBackendServiceIamBinding = 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}}/regions/{{region}}/backendServices/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine regionbackendservice 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/regionBackendServiceIamBinding:RegionBackendServiceIamBinding editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamBinding:RegionBackendServiceIamBinding editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamBinding:RegionBackendServiceIamBinding editor projects/{{project}}/regions/{{region}}/backendServices/{{region_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 RegionBackendServiceIamBinding extends pulumi.CustomResource {
|
|
9
34
|
constructor(name, argsOrState, opts) {
|
|
10
35
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regionBackendServiceIamBinding.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"regionBackendServiceIamBinding.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IAsErE,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,QAA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;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,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;IAnGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrF,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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;;AA1BL,wEAqGC;AAvFG,gBAAgB;AACO,2CAAY,GAAG,2EAA2E,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}}/regions/{{region}}/backendServices/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine regionbackendservice 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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor projects/{{project}}/regions/{{region}}/backendServices/{{region_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 RegionBackendServiceIamMember extends pulumi.CustomResource {
|
|
4
29
|
/**
|
|
5
30
|
* Get an existing RegionBackendServiceIamMember resource's state with the given name, ID, and optional extra
|
|
@@ -16,12 +41,38 @@ export declare class RegionBackendServiceIamMember 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 RegionBackendServiceIamMember;
|
|
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.RegionBackendServiceIamMemberCondition | 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 Region in which the created backend service should reside.
|
|
65
|
+
* If it is not provided, the provider region is used.
|
|
66
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
67
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
68
|
+
* region is specified, it is taken from the provider configuration.
|
|
69
|
+
*/
|
|
24
70
|
readonly region: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The role that should be applied. Only one
|
|
73
|
+
* `gcp.compute.RegionBackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
74
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
75
|
+
*/
|
|
25
76
|
readonly role: pulumi.Output<string>;
|
|
26
77
|
/**
|
|
27
78
|
* Create a RegionBackendServiceIamMember resource with the given unique name, arguments, and options.
|
|
@@ -36,22 +87,71 @@ export declare class RegionBackendServiceIamMember extends pulumi.CustomResource
|
|
|
36
87
|
* Input properties used for looking up and filtering RegionBackendServiceIamMember resources.
|
|
37
88
|
*/
|
|
38
89
|
export interface RegionBackendServiceIamMemberState {
|
|
90
|
+
/**
|
|
91
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
92
|
+
* Structure is documented below.
|
|
93
|
+
*/
|
|
39
94
|
condition?: pulumi.Input<inputs.compute.RegionBackendServiceIamMemberCondition>;
|
|
95
|
+
/**
|
|
96
|
+
* (Computed) The etag of the IAM policy.
|
|
97
|
+
*/
|
|
40
98
|
etag?: pulumi.Input<string>;
|
|
41
99
|
member?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
102
|
+
*/
|
|
42
103
|
name?: pulumi.Input<string>;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the project in which the resource belongs.
|
|
106
|
+
* 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.
|
|
107
|
+
*/
|
|
43
108
|
project?: pulumi.Input<string>;
|
|
109
|
+
/**
|
|
110
|
+
* The Region in which the created backend service should reside.
|
|
111
|
+
* If it is not provided, the provider region is used.
|
|
112
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
113
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
114
|
+
* region is specified, it is taken from the provider configuration.
|
|
115
|
+
*/
|
|
44
116
|
region?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The role that should be applied. Only one
|
|
119
|
+
* `gcp.compute.RegionBackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
120
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
121
|
+
*/
|
|
45
122
|
role?: pulumi.Input<string>;
|
|
46
123
|
}
|
|
47
124
|
/**
|
|
48
125
|
* The set of arguments for constructing a RegionBackendServiceIamMember resource.
|
|
49
126
|
*/
|
|
50
127
|
export interface RegionBackendServiceIamMemberArgs {
|
|
128
|
+
/**
|
|
129
|
+
* ) An [IAM Condition](https://cloud.google.com/iam/docs/conditions-overview) for a given binding.
|
|
130
|
+
* Structure is documented below.
|
|
131
|
+
*/
|
|
51
132
|
condition?: pulumi.Input<inputs.compute.RegionBackendServiceIamMemberCondition>;
|
|
52
133
|
member: pulumi.Input<string>;
|
|
134
|
+
/**
|
|
135
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
136
|
+
*/
|
|
53
137
|
name?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* The ID of the project in which the resource belongs.
|
|
140
|
+
* 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.
|
|
141
|
+
*/
|
|
54
142
|
project?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* The Region in which the created backend service should reside.
|
|
145
|
+
* If it is not provided, the provider region is used.
|
|
146
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
147
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
148
|
+
* region is specified, it is taken from the provider configuration.
|
|
149
|
+
*/
|
|
55
150
|
region?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* The role that should be applied. Only one
|
|
153
|
+
* `gcp.compute.RegionBackendServiceIamBinding` can be used per role. Note that custom roles must be of the format
|
|
154
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
155
|
+
*/
|
|
56
156
|
role: pulumi.Input<string>;
|
|
57
157
|
}
|
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RegionBackendServiceIamMember = 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}}/regions/{{region}}/backendServices/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine regionbackendservice 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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamMember:RegionBackendServiceIamMember editor projects/{{project}}/regions/{{region}}/backendServices/{{region_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 RegionBackendServiceIamMember extends pulumi.CustomResource {
|
|
9
34
|
constructor(name, argsOrState, opts) {
|
|
10
35
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regionBackendServiceIamMember.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"regionBackendServiceIamMember.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,6B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AE,EAAE,IAAG,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;;AA1BL,sEAqGC;AAvFG,gBAAgB;AACO,0CAAY,GAAG,yEAAyE,CAAC"}
|
|
@@ -1,4 +1,29 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* ## Import
|
|
4
|
+
*
|
|
5
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/regions/{{region}}/backendServices/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine regionbackendservice 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.
|
|
6
|
+
*
|
|
7
|
+
* ```sh
|
|
8
|
+
* $ pulumi import gcp:compute/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_backend_service}} roles/compute.admin user:jane@example.com"
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
12
|
+
*
|
|
13
|
+
* ```sh
|
|
14
|
+
* $ pulumi import gcp:compute/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_backend_service}} roles/compute.admin"
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
18
|
+
*
|
|
19
|
+
* ```sh
|
|
20
|
+
* $ pulumi import gcp:compute/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor projects/{{project}}/regions/{{region}}/backendServices/{{region_backend_service}}
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
24
|
+
*
|
|
25
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
26
|
+
*/
|
|
2
27
|
export declare class RegionBackendServiceIamPolicy extends pulumi.CustomResource {
|
|
3
28
|
/**
|
|
4
29
|
* Get an existing RegionBackendServiceIamPolicy resource's state with the given name, ID, and optional extra
|
|
@@ -15,10 +40,31 @@ export declare class RegionBackendServiceIamPolicy extends pulumi.CustomResource
|
|
|
15
40
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
16
41
|
*/
|
|
17
42
|
static isInstance(obj: any): obj is RegionBackendServiceIamPolicy;
|
|
43
|
+
/**
|
|
44
|
+
* (Computed) The etag of the IAM policy.
|
|
45
|
+
*/
|
|
18
46
|
readonly etag: pulumi.Output<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
49
|
+
*/
|
|
19
50
|
readonly name: pulumi.Output<string>;
|
|
51
|
+
/**
|
|
52
|
+
* The policy data generated by
|
|
53
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
54
|
+
*/
|
|
20
55
|
readonly policyData: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The ID of the project in which the resource belongs.
|
|
58
|
+
* 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.
|
|
59
|
+
*/
|
|
21
60
|
readonly project: pulumi.Output<string>;
|
|
61
|
+
/**
|
|
62
|
+
* The Region in which the created backend service should reside.
|
|
63
|
+
* If it is not provided, the provider region is used.
|
|
64
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
65
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
66
|
+
* region is specified, it is taken from the provider configuration.
|
|
67
|
+
*/
|
|
22
68
|
readonly region: pulumi.Output<string>;
|
|
23
69
|
/**
|
|
24
70
|
* Create a RegionBackendServiceIamPolicy resource with the given unique name, arguments, and options.
|
|
@@ -33,18 +79,57 @@ export declare class RegionBackendServiceIamPolicy extends pulumi.CustomResource
|
|
|
33
79
|
* Input properties used for looking up and filtering RegionBackendServiceIamPolicy resources.
|
|
34
80
|
*/
|
|
35
81
|
export interface RegionBackendServiceIamPolicyState {
|
|
82
|
+
/**
|
|
83
|
+
* (Computed) The etag of the IAM policy.
|
|
84
|
+
*/
|
|
36
85
|
etag?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
88
|
+
*/
|
|
37
89
|
name?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The policy data generated by
|
|
92
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
93
|
+
*/
|
|
38
94
|
policyData?: pulumi.Input<string>;
|
|
95
|
+
/**
|
|
96
|
+
* The ID of the project in which the resource belongs.
|
|
97
|
+
* 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.
|
|
98
|
+
*/
|
|
39
99
|
project?: pulumi.Input<string>;
|
|
100
|
+
/**
|
|
101
|
+
* The Region in which the created backend service should reside.
|
|
102
|
+
* If it is not provided, the provider region is used.
|
|
103
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
104
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
105
|
+
* region is specified, it is taken from the provider configuration.
|
|
106
|
+
*/
|
|
40
107
|
region?: pulumi.Input<string>;
|
|
41
108
|
}
|
|
42
109
|
/**
|
|
43
110
|
* The set of arguments for constructing a RegionBackendServiceIamPolicy resource.
|
|
44
111
|
*/
|
|
45
112
|
export interface RegionBackendServiceIamPolicyArgs {
|
|
113
|
+
/**
|
|
114
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
115
|
+
*/
|
|
46
116
|
name?: pulumi.Input<string>;
|
|
117
|
+
/**
|
|
118
|
+
* The policy data generated by
|
|
119
|
+
* a `gcp.organizations.getIAMPolicy` data source.
|
|
120
|
+
*/
|
|
47
121
|
policyData: 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
|
+
*/
|
|
48
126
|
project?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The Region in which the created backend service should reside.
|
|
129
|
+
* If it is not provided, the provider region is used.
|
|
130
|
+
* Used to find the parent resource to bind the IAM policy to. If not specified,
|
|
131
|
+
* the value will be parsed from the identifier of the parent resource. If no region is provided in the parent identifier and no
|
|
132
|
+
* region is specified, it is taken from the provider configuration.
|
|
133
|
+
*/
|
|
49
134
|
region?: pulumi.Input<string>;
|
|
50
135
|
}
|
|
@@ -5,6 +5,31 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.RegionBackendServiceIamPolicy = 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}}/regions/{{region}}/backendServices/{{name}} * {{project}}/{{region}}/{{name}} * {{region}}/{{name}} * {{name}} Any variables not passed in the import command will be taken from the provider configuration. Compute Engine regionbackendservice 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/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor "projects/{{project}}/regions/{{region}}/backendServices/{{region_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/regionBackendServiceIamPolicy:RegionBackendServiceIamPolicy editor projects/{{project}}/regions/{{region}}/backendServices/{{region_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 RegionBackendServiceIamPolicy extends pulumi.CustomResource {
|
|
9
34
|
constructor(name, argsOrState, opts) {
|
|
10
35
|
let resourceInputs = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regionBackendServiceIamPolicy.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C,MAAa,6BAA8B,SAAQ,MAAM,CAAC,cAAc;
|
|
1
|
+
{"version":3,"file":"regionBackendServiceIamPolicy.js","sourceRoot":"","sources":["../../compute/regionBackendServiceIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,6BAA8B,SAAQ,MAAM,C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AAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,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,6BAA6B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IArFD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0C,EAAE,IAAmC;QACxI,OAAO,IAAI,6BAA6B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpF,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,6BAA6B,CAAC,YAAY,CAAC;IAC9E,CAAC;;AA1BL,sEAuFC;AAzEG,gBAAgB;AACO,0CAAY,GAAG,yEAAyE,CAAC"}
|
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import { input as inputs, output as outputs } from "../types";
|
|
3
|
+
/**
|
|
4
|
+
* Three different resources help you manage your IAM policy for Data catalog TagTemplate. Each of these resources serves a different use case:
|
|
5
|
+
*
|
|
6
|
+
* * `gcp.datacatalog.TagTemplateIamPolicy`: Authoritative. Sets the IAM policy for the tagtemplate and replaces any existing policy already attached.
|
|
7
|
+
* * `gcp.datacatalog.TagTemplateIamBinding`: 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 tagtemplate are preserved.
|
|
8
|
+
* * `gcp.datacatalog.TagTemplateIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagtemplate are preserved.
|
|
9
|
+
*
|
|
10
|
+
* > **Note:** `gcp.datacatalog.TagTemplateIamPolicy` **cannot** be used in conjunction with `gcp.datacatalog.TagTemplateIamBinding` and `gcp.datacatalog.TagTemplateIamMember` or they will fight over what your policy should be.
|
|
11
|
+
*
|
|
12
|
+
* > **Note:** `gcp.datacatalog.TagTemplateIamBinding` resources **can be** used in conjunction with `gcp.datacatalog.TagTemplateIamMember` resources **only if** they do not grant privilege to the same role.
|
|
13
|
+
*
|
|
14
|
+
* ## google\_data\_catalog\_tag\_template\_iam\_policy
|
|
15
|
+
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as gcp from "@pulumi/gcp";
|
|
19
|
+
*
|
|
20
|
+
* const admin = gcp.organizations.getIAMPolicy({
|
|
21
|
+
* bindings: [{
|
|
22
|
+
* role: "roles/viewer",
|
|
23
|
+
* members: ["user:jane@example.com"],
|
|
24
|
+
* }],
|
|
25
|
+
* });
|
|
26
|
+
* const policy = new gcp.datacatalog.TagTemplateIamPolicy("policy", {
|
|
27
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.name,
|
|
28
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* ## google\_data\_catalog\_tag\_template\_iam\_binding
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as gcp from "@pulumi/gcp";
|
|
37
|
+
*
|
|
38
|
+
* const binding = new gcp.datacatalog.TagTemplateIamBinding("binding", {
|
|
39
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.name,
|
|
40
|
+
* role: "roles/viewer",
|
|
41
|
+
* members: ["user:jane@example.com"],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* ## google\_data\_catalog\_tag\_template\_iam\_member
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as gcp from "@pulumi/gcp";
|
|
50
|
+
*
|
|
51
|
+
* const member = new gcp.datacatalog.TagTemplateIamMember("member", {
|
|
52
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.name,
|
|
53
|
+
* role: "roles/viewer",
|
|
54
|
+
* member: "user:jane@example.com",
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ## Import
|
|
59
|
+
*
|
|
60
|
+
* For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}} * {{project}}/{{region}}/{{tag_template}} * {{region}}/{{tag_template}} * {{tag_template}} Any variables not passed in the import command will be taken from the provider configuration. Data catalog tagtemplate 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.
|
|
61
|
+
*
|
|
62
|
+
* ```sh
|
|
63
|
+
* $ pulumi import gcp:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor "projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}} roles/viewer user:jane@example.com"
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
|
|
67
|
+
*
|
|
68
|
+
* ```sh
|
|
69
|
+
* $ pulumi import gcp:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor "projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}} roles/viewer"
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* IAM policy imports use the identifier of the resource in question, e.g.
|
|
73
|
+
*
|
|
74
|
+
* ```sh
|
|
75
|
+
* $ pulumi import gcp:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}}
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
|
|
79
|
+
*
|
|
80
|
+
* full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
|
|
81
|
+
*/
|
|
3
82
|
export declare class TagTemplateIamBinding extends pulumi.CustomResource {
|
|
4
83
|
/**
|
|
5
84
|
* Get an existing TagTemplateIamBinding resource's state with the given name, ID, and optional extra
|
|
@@ -17,11 +96,26 @@ export declare class TagTemplateIamBinding extends pulumi.CustomResource {
|
|
|
17
96
|
*/
|
|
18
97
|
static isInstance(obj: any): obj is TagTemplateIamBinding;
|
|
19
98
|
readonly condition: pulumi.Output<outputs.datacatalog.TagTemplateIamBindingCondition | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* (Computed) The etag of the IAM policy.
|
|
101
|
+
*/
|
|
20
102
|
readonly etag: pulumi.Output<string>;
|
|
21
103
|
readonly members: pulumi.Output<string[]>;
|
|
104
|
+
/**
|
|
105
|
+
* The ID of the project in which the resource belongs.
|
|
106
|
+
* 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.
|
|
107
|
+
*/
|
|
22
108
|
readonly project: pulumi.Output<string>;
|
|
23
109
|
readonly region: pulumi.Output<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The role that should be applied. Only one
|
|
112
|
+
* `gcp.datacatalog.TagTemplateIamBinding` can be used per role. Note that custom roles must be of the format
|
|
113
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
114
|
+
*/
|
|
24
115
|
readonly role: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
118
|
+
*/
|
|
25
119
|
readonly tagTemplate: pulumi.Output<string>;
|
|
26
120
|
/**
|
|
27
121
|
* Create a TagTemplateIamBinding resource with the given unique name, arguments, and options.
|
|
@@ -37,11 +131,26 @@ export declare class TagTemplateIamBinding extends pulumi.CustomResource {
|
|
|
37
131
|
*/
|
|
38
132
|
export interface TagTemplateIamBindingState {
|
|
39
133
|
condition?: pulumi.Input<inputs.datacatalog.TagTemplateIamBindingCondition>;
|
|
134
|
+
/**
|
|
135
|
+
* (Computed) The etag of the IAM policy.
|
|
136
|
+
*/
|
|
40
137
|
etag?: pulumi.Input<string>;
|
|
41
138
|
members?: pulumi.Input<pulumi.Input<string>[]>;
|
|
139
|
+
/**
|
|
140
|
+
* The ID of the project in which the resource belongs.
|
|
141
|
+
* 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.
|
|
142
|
+
*/
|
|
42
143
|
project?: pulumi.Input<string>;
|
|
43
144
|
region?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* The role that should be applied. Only one
|
|
147
|
+
* `gcp.datacatalog.TagTemplateIamBinding` can be used per role. Note that custom roles must be of the format
|
|
148
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
149
|
+
*/
|
|
44
150
|
role?: pulumi.Input<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
153
|
+
*/
|
|
45
154
|
tagTemplate?: pulumi.Input<string>;
|
|
46
155
|
}
|
|
47
156
|
/**
|
|
@@ -50,8 +159,20 @@ export interface TagTemplateIamBindingState {
|
|
|
50
159
|
export interface TagTemplateIamBindingArgs {
|
|
51
160
|
condition?: pulumi.Input<inputs.datacatalog.TagTemplateIamBindingCondition>;
|
|
52
161
|
members: pulumi.Input<pulumi.Input<string>[]>;
|
|
162
|
+
/**
|
|
163
|
+
* The ID of the project in which the resource belongs.
|
|
164
|
+
* 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.
|
|
165
|
+
*/
|
|
53
166
|
project?: pulumi.Input<string>;
|
|
54
167
|
region?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The role that should be applied. Only one
|
|
170
|
+
* `gcp.datacatalog.TagTemplateIamBinding` can be used per role. Note that custom roles must be of the format
|
|
171
|
+
* `[projects|organizations]/{parent-name}/roles/{role-name}`.
|
|
172
|
+
*/
|
|
55
173
|
role: pulumi.Input<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Used to find the parent resource to bind the IAM policy to
|
|
176
|
+
*/
|
|
56
177
|
tagTemplate: pulumi.Input<string>;
|
|
57
178
|
}
|
|
@@ -5,6 +5,85 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.TagTemplateIamBinding = 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 Data catalog TagTemplate. Each of these resources serves a different use case:
|
|
10
|
+
*
|
|
11
|
+
* * `gcp.datacatalog.TagTemplateIamPolicy`: Authoritative. Sets the IAM policy for the tagtemplate and replaces any existing policy already attached.
|
|
12
|
+
* * `gcp.datacatalog.TagTemplateIamBinding`: 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 tagtemplate are preserved.
|
|
13
|
+
* * `gcp.datacatalog.TagTemplateIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the tagtemplate are preserved.
|
|
14
|
+
*
|
|
15
|
+
* > **Note:** `gcp.datacatalog.TagTemplateIamPolicy` **cannot** be used in conjunction with `gcp.datacatalog.TagTemplateIamBinding` and `gcp.datacatalog.TagTemplateIamMember` or they will fight over what your policy should be.
|
|
16
|
+
*
|
|
17
|
+
* > **Note:** `gcp.datacatalog.TagTemplateIamBinding` resources **can be** used in conjunction with `gcp.datacatalog.TagTemplateIamMember` resources **only if** they do not grant privilege to the same role.
|
|
18
|
+
*
|
|
19
|
+
* ## google\_data\_catalog\_tag\_template\_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.datacatalog.TagTemplateIamPolicy("policy", {
|
|
32
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.name,
|
|
33
|
+
* policyData: admin.then(admin => admin.policyData),
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* ## google\_data\_catalog\_tag\_template\_iam\_binding
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as gcp from "@pulumi/gcp";
|
|
42
|
+
*
|
|
43
|
+
* const binding = new gcp.datacatalog.TagTemplateIamBinding("binding", {
|
|
44
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.name,
|
|
45
|
+
* role: "roles/viewer",
|
|
46
|
+
* members: ["user:jane@example.com"],
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* ## google\_data\_catalog\_tag\_template\_iam\_member
|
|
51
|
+
*
|
|
52
|
+
* ```typescript
|
|
53
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
54
|
+
* import * as gcp from "@pulumi/gcp";
|
|
55
|
+
*
|
|
56
|
+
* const member = new gcp.datacatalog.TagTemplateIamMember("member", {
|
|
57
|
+
* tagTemplate: google_data_catalog_tag_template.basic_tag_template.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}}/tagTemplates/{{tag_template}} * {{project}}/{{region}}/{{tag_template}} * {{region}}/{{tag_template}} * {{tag_template}} Any variables not passed in the import command will be taken from the provider configuration. Data catalog tagtemplate 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:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor "projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}} 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:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor "projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}} 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:datacatalog/tagTemplateIamBinding:TagTemplateIamBinding editor projects/{{project}}/locations/{{region}}/tagTemplates/{{tag_template}}
|
|
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
|
+
*/
|
|
8
87
|
class TagTemplateIamBinding extends pulumi.CustomResource {
|
|
9
88
|
constructor(name, argsOrState, opts) {
|
|
10
89
|
let resourceInputs = {};
|