@pulumi/gcp 6.4.0 → 6.6.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.
Files changed (107) hide show
  1. package/apigee/environmentIamBinding.d.ts +166 -0
  2. package/apigee/environmentIamBinding.js +155 -0
  3. package/apigee/environmentIamBinding.js.map +1 -0
  4. package/apigee/environmentIamMember.d.ts +166 -0
  5. package/apigee/environmentIamMember.js +155 -0
  6. package/apigee/environmentIamMember.js.map +1 -0
  7. package/apigee/environmentIamPolicy.d.ts +156 -0
  8. package/apigee/environmentIamPolicy.js +148 -0
  9. package/apigee/environmentIamPolicy.js.map +1 -0
  10. package/apigee/index.d.ts +3 -0
  11. package/apigee/index.js +15 -0
  12. package/apigee/index.js.map +1 -1
  13. package/bigquery/dataTransferConfig.d.ts +3 -3
  14. package/bigquery/routine.d.ts +24 -3
  15. package/bigquery/routine.js +2 -0
  16. package/bigquery/routine.js.map +1 -1
  17. package/certificateauthority/authority.d.ts +2 -1
  18. package/certificateauthority/authority.js +2 -1
  19. package/certificateauthority/authority.js.map +1 -1
  20. package/certificateauthority/certificate.d.ts +2 -0
  21. package/certificateauthority/certificate.js +2 -0
  22. package/certificateauthority/certificate.js.map +1 -1
  23. package/certificateauthority/certificateTemplate.d.ts +3 -0
  24. package/certificateauthority/certificateTemplate.js +3 -0
  25. package/certificateauthority/certificateTemplate.js.map +1 -1
  26. package/cloudbuild/trigger.d.ts +7 -0
  27. package/cloudbuild/trigger.js +7 -0
  28. package/cloudbuild/trigger.js.map +1 -1
  29. package/cloudbuild/workerPool.d.ts +60 -0
  30. package/cloudbuild/workerPool.js +60 -0
  31. package/cloudbuild/workerPool.js.map +1 -1
  32. package/cloudfunctions/function.d.ts +12 -0
  33. package/cloudfunctions/function.js +2 -0
  34. package/cloudfunctions/function.js.map +1 -1
  35. package/cloudfunctions/getFunction.d.ts +1 -0
  36. package/cloudfunctions/getFunction.js.map +1 -1
  37. package/compute/forwardingRule.d.ts +199 -10
  38. package/compute/forwardingRule.js +190 -4
  39. package/compute/forwardingRule.js.map +1 -1
  40. package/compute/networkPeering.d.ts +5 -5
  41. package/compute/networkPeering.js +5 -5
  42. package/compute/packetMirroring.d.ts +1 -1
  43. package/compute/packetMirroring.js +1 -1
  44. package/compute/regionBackendService.d.ts +6 -6
  45. package/compute/subnetwork.d.ts +9 -15
  46. package/compute/subnetwork.js.map +1 -1
  47. package/config/vars.d.ts +3 -0
  48. package/config/vars.js +18 -0
  49. package/config/vars.js.map +1 -1
  50. package/container/awsCluster.d.ts +326 -0
  51. package/container/awsCluster.js +198 -0
  52. package/container/awsCluster.js.map +1 -0
  53. package/container/awsNodePool.d.ts +355 -0
  54. package/container/awsNodePool.js +242 -0
  55. package/container/awsNodePool.js.map +1 -0
  56. package/container/azureClient.d.ts +156 -0
  57. package/container/azureClient.js +110 -0
  58. package/container/azureClient.js.map +1 -0
  59. package/container/azureCluster.d.ts +322 -0
  60. package/container/azureCluster.js +180 -0
  61. package/container/azureCluster.js.map +1 -0
  62. package/container/azureNodePool.d.ts +323 -0
  63. package/container/azureNodePool.js +200 -0
  64. package/container/azureNodePool.js.map +1 -0
  65. package/container/getAwsVersions.d.ts +66 -0
  66. package/container/getAwsVersions.js +42 -0
  67. package/container/getAwsVersions.js.map +1 -0
  68. package/container/getAzureVersions.d.ts +66 -0
  69. package/container/getAzureVersions.js +42 -0
  70. package/container/getAzureVersions.js.map +1 -0
  71. package/container/index.d.ts +7 -0
  72. package/container/index.js +27 -0
  73. package/container/index.js.map +1 -1
  74. package/filestore/instance.d.ts +33 -13
  75. package/filestore/instance.js +7 -12
  76. package/filestore/instance.js.map +1 -1
  77. package/notebooks/index.d.ts +3 -0
  78. package/notebooks/index.js +15 -0
  79. package/notebooks/index.js.map +1 -1
  80. package/notebooks/runtimeIamBinding.d.ts +193 -0
  81. package/notebooks/runtimeIamBinding.js +157 -0
  82. package/notebooks/runtimeIamBinding.js.map +1 -0
  83. package/notebooks/runtimeIamMember.d.ts +193 -0
  84. package/notebooks/runtimeIamMember.js +157 -0
  85. package/notebooks/runtimeIamMember.js.map +1 -0
  86. package/notebooks/runtimeIamPolicy.d.ts +183 -0
  87. package/notebooks/runtimeIamPolicy.js +150 -0
  88. package/notebooks/runtimeIamPolicy.js.map +1 -0
  89. package/osconfig/index.d.ts +1 -0
  90. package/osconfig/index.js +5 -0
  91. package/osconfig/index.js.map +1 -1
  92. package/osconfig/osPolicyAssignment.d.ts +672 -0
  93. package/osconfig/osPolicyAssignment.js +568 -0
  94. package/osconfig/osPolicyAssignment.js.map +1 -0
  95. package/package.json +2 -2
  96. package/package.json.dev +1 -1
  97. package/provider.d.ts +6 -0
  98. package/provider.js +3 -0
  99. package/provider.js.map +1 -1
  100. package/storage/bucket.d.ts +12 -0
  101. package/storage/bucket.js +2 -0
  102. package/storage/bucket.js.map +1 -1
  103. package/storage/getBucket.d.ts +1 -0
  104. package/storage/getBucket.js.map +1 -1
  105. package/types/input.d.ts +7380 -6218
  106. package/types/output.d.ts +6360 -5196
  107. package/vertex/aiMetadataStore.d.ts +3 -3
@@ -0,0 +1,193 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "../types";
3
+ /**
4
+ * Three different resources help you manage your IAM policy for Cloud AI Notebooks Runtime. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.notebooks.RuntimeIamPolicy`: Authoritative. Sets the IAM policy for the runtime and replaces any existing policy already attached.
7
+ * * `gcp.notebooks.RuntimeIamBinding`: 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 runtime are preserved.
8
+ * * `gcp.notebooks.RuntimeIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the runtime are preserved.
9
+ *
10
+ * > **Note:** `gcp.notebooks.RuntimeIamPolicy` **cannot** be used in conjunction with `gcp.notebooks.RuntimeIamBinding` and `gcp.notebooks.RuntimeIamMember` or they will fight over what your policy should be.
11
+ *
12
+ * > **Note:** `gcp.notebooks.RuntimeIamBinding` resources **can be** used in conjunction with `gcp.notebooks.RuntimeIamMember` resources **only if** they do not grant privilege to the same role.
13
+ *
14
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamPolicy("policy", {
27
+ * project: google_notebooks_runtime.runtime.project,
28
+ * location: google_notebooks_runtime.runtime.location,
29
+ * runtimeName: google_notebooks_runtime.runtime.name,
30
+ * policyData: admin.then(admin => admin.policyData),
31
+ * });
32
+ * ```
33
+ *
34
+ * ## google\_notebooks\_runtime\_iam\_binding
35
+ *
36
+ * ```typescript
37
+ * import * as pulumi from "@pulumi/pulumi";
38
+ * import * as gcp from "@pulumi/gcp";
39
+ *
40
+ * const binding = new gcp.notebooks.RuntimeIamBinding("binding", {
41
+ * project: google_notebooks_runtime.runtime.project,
42
+ * location: google_notebooks_runtime.runtime.location,
43
+ * runtimeName: google_notebooks_runtime.runtime.name,
44
+ * role: "roles/viewer",
45
+ * members: ["user:jane@example.com"],
46
+ * });
47
+ * ```
48
+ *
49
+ * ## google\_notebooks\_runtime\_iam\_member
50
+ *
51
+ * ```typescript
52
+ * import * as pulumi from "@pulumi/pulumi";
53
+ * import * as gcp from "@pulumi/gcp";
54
+ *
55
+ * const member = new gcp.notebooks.RuntimeIamMember("member", {
56
+ * project: google_notebooks_runtime.runtime.project,
57
+ * location: google_notebooks_runtime.runtime.location,
58
+ * runtimeName: google_notebooks_runtime.runtime.name,
59
+ * role: "roles/viewer",
60
+ * member: "user:jane@example.com",
61
+ * });
62
+ * ```
63
+ *
64
+ * ## Import
65
+ *
66
+ * For all import syntaxes, the "resource in question" can take any of the following forms* projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} * {{project}}/{{location}}/{{runtime_name}} * {{location}}/{{runtime_name}} * {{runtime_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks runtime 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.
67
+ *
68
+ * ```sh
69
+ * $ pulumi import gcp:notebooks/runtimeIamMember:RuntimeIamMember editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} roles/viewer user:jane@example.com"
70
+ * ```
71
+ *
72
+ * IAM binding imports use space-delimited identifiersthe resource in question and the role, e.g.
73
+ *
74
+ * ```sh
75
+ * $ pulumi import gcp:notebooks/runtimeIamMember:RuntimeIamMember editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} roles/viewer"
76
+ * ```
77
+ *
78
+ * IAM policy imports use the identifier of the resource in question, e.g.
79
+ *
80
+ * ```sh
81
+ * $ pulumi import gcp:notebooks/runtimeIamMember:RuntimeIamMember editor projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}}
82
+ * ```
83
+ *
84
+ * -> **Custom Roles**If you're importing a IAM resource with a custom role, make sure to use the
85
+ *
86
+ * full name of the custom role, e.g. `[projects/my-project|organizations/my-org]/roles/my-custom-role`.
87
+ */
88
+ export declare class RuntimeIamMember extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing RuntimeIamMember resource's state with the given name, ID, and optional extra
91
+ * properties used to qualify the lookup.
92
+ *
93
+ * @param name The _unique_ name of the resulting resource.
94
+ * @param id The _unique_ provider ID of the resource to lookup.
95
+ * @param state Any extra arguments used during the lookup.
96
+ * @param opts Optional settings to control the behavior of the CustomResource.
97
+ */
98
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuntimeIamMemberState, opts?: pulumi.CustomResourceOptions): RuntimeIamMember;
99
+ /**
100
+ * Returns true if the given object is an instance of RuntimeIamMember. This is designed to work even
101
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
102
+ */
103
+ static isInstance(obj: any): obj is RuntimeIamMember;
104
+ readonly condition: pulumi.Output<outputs.notebooks.RuntimeIamMemberCondition | undefined>;
105
+ /**
106
+ * (Computed) The etag of the IAM policy.
107
+ */
108
+ readonly etag: pulumi.Output<string>;
109
+ /**
110
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
111
+ */
112
+ readonly location: pulumi.Output<string>;
113
+ readonly member: pulumi.Output<string>;
114
+ /**
115
+ * The ID of the project in which the resource belongs.
116
+ * 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.
117
+ */
118
+ readonly project: pulumi.Output<string>;
119
+ /**
120
+ * The role that should be applied. Only one
121
+ * `gcp.notebooks.RuntimeIamBinding` can be used per role. Note that custom roles must be of the format
122
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
123
+ */
124
+ readonly role: pulumi.Output<string>;
125
+ /**
126
+ * Used to find the parent resource to bind the IAM policy to
127
+ */
128
+ readonly runtimeName: pulumi.Output<string>;
129
+ /**
130
+ * Create a RuntimeIamMember resource with the given unique name, arguments, and options.
131
+ *
132
+ * @param name The _unique_ name of the resource.
133
+ * @param args The arguments to use to populate this resource's properties.
134
+ * @param opts A bag of options that control this resource's behavior.
135
+ */
136
+ constructor(name: string, args: RuntimeIamMemberArgs, opts?: pulumi.CustomResourceOptions);
137
+ }
138
+ /**
139
+ * Input properties used for looking up and filtering RuntimeIamMember resources.
140
+ */
141
+ export interface RuntimeIamMemberState {
142
+ condition?: pulumi.Input<inputs.notebooks.RuntimeIamMemberCondition>;
143
+ /**
144
+ * (Computed) The etag of the IAM policy.
145
+ */
146
+ etag?: pulumi.Input<string>;
147
+ /**
148
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
149
+ */
150
+ location?: pulumi.Input<string>;
151
+ member?: pulumi.Input<string>;
152
+ /**
153
+ * The ID of the project in which the resource belongs.
154
+ * 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.
155
+ */
156
+ project?: pulumi.Input<string>;
157
+ /**
158
+ * The role that should be applied. Only one
159
+ * `gcp.notebooks.RuntimeIamBinding` can be used per role. Note that custom roles must be of the format
160
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
161
+ */
162
+ role?: pulumi.Input<string>;
163
+ /**
164
+ * Used to find the parent resource to bind the IAM policy to
165
+ */
166
+ runtimeName?: pulumi.Input<string>;
167
+ }
168
+ /**
169
+ * The set of arguments for constructing a RuntimeIamMember resource.
170
+ */
171
+ export interface RuntimeIamMemberArgs {
172
+ condition?: pulumi.Input<inputs.notebooks.RuntimeIamMemberCondition>;
173
+ /**
174
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
175
+ */
176
+ location?: pulumi.Input<string>;
177
+ member: 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
+ */
182
+ project?: pulumi.Input<string>;
183
+ /**
184
+ * The role that should be applied. Only one
185
+ * `gcp.notebooks.RuntimeIamBinding` can be used per role. Note that custom roles must be of the format
186
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
187
+ */
188
+ role: pulumi.Input<string>;
189
+ /**
190
+ * Used to find the parent resource to bind the IAM policy to
191
+ */
192
+ runtimeName: pulumi.Input<string>;
193
+ }
@@ -0,0 +1,157 @@
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.RuntimeIamMember = 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 Cloud AI Notebooks Runtime. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.notebooks.RuntimeIamPolicy`: Authoritative. Sets the IAM policy for the runtime and replaces any existing policy already attached.
12
+ * * `gcp.notebooks.RuntimeIamBinding`: 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 runtime are preserved.
13
+ * * `gcp.notebooks.RuntimeIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the runtime are preserved.
14
+ *
15
+ * > **Note:** `gcp.notebooks.RuntimeIamPolicy` **cannot** be used in conjunction with `gcp.notebooks.RuntimeIamBinding` and `gcp.notebooks.RuntimeIamMember` or they will fight over what your policy should be.
16
+ *
17
+ * > **Note:** `gcp.notebooks.RuntimeIamBinding` resources **can be** used in conjunction with `gcp.notebooks.RuntimeIamMember` resources **only if** they do not grant privilege to the same role.
18
+ *
19
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamPolicy("policy", {
32
+ * project: google_notebooks_runtime.runtime.project,
33
+ * location: google_notebooks_runtime.runtime.location,
34
+ * runtimeName: google_notebooks_runtime.runtime.name,
35
+ * policyData: admin.then(admin => admin.policyData),
36
+ * });
37
+ * ```
38
+ *
39
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamBinding("binding", {
46
+ * project: google_notebooks_runtime.runtime.project,
47
+ * location: google_notebooks_runtime.runtime.location,
48
+ * runtimeName: google_notebooks_runtime.runtime.name,
49
+ * role: "roles/viewer",
50
+ * members: ["user:jane@example.com"],
51
+ * });
52
+ * ```
53
+ *
54
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamMember("member", {
61
+ * project: google_notebooks_runtime.runtime.project,
62
+ * location: google_notebooks_runtime.runtime.location,
63
+ * runtimeName: google_notebooks_runtime.runtime.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/{{location}}/runtimes/{{runtime_name}} * {{project}}/{{location}}/{{runtime_name}} * {{location}}/{{runtime_name}} * {{runtime_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks runtime 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:notebooks/runtimeIamMember:RuntimeIamMember editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} 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:notebooks/runtimeIamMember:RuntimeIamMember editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} 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:notebooks/runtimeIamMember:RuntimeIamMember editor projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}}
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
+ */
93
+ class RuntimeIamMember extends pulumi.CustomResource {
94
+ constructor(name, argsOrState, opts) {
95
+ let inputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ inputs["condition"] = state ? state.condition : undefined;
100
+ inputs["etag"] = state ? state.etag : undefined;
101
+ inputs["location"] = state ? state.location : undefined;
102
+ inputs["member"] = state ? state.member : undefined;
103
+ inputs["project"] = state ? state.project : undefined;
104
+ inputs["role"] = state ? state.role : undefined;
105
+ inputs["runtimeName"] = state ? state.runtimeName : undefined;
106
+ }
107
+ else {
108
+ const args = argsOrState;
109
+ if ((!args || args.member === undefined) && !opts.urn) {
110
+ throw new Error("Missing required property 'member'");
111
+ }
112
+ if ((!args || args.role === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'role'");
114
+ }
115
+ if ((!args || args.runtimeName === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'runtimeName'");
117
+ }
118
+ inputs["condition"] = args ? args.condition : undefined;
119
+ inputs["location"] = args ? args.location : undefined;
120
+ inputs["member"] = args ? args.member : undefined;
121
+ inputs["project"] = args ? args.project : undefined;
122
+ inputs["role"] = args ? args.role : undefined;
123
+ inputs["runtimeName"] = args ? args.runtimeName : undefined;
124
+ inputs["etag"] = undefined /*out*/;
125
+ }
126
+ if (!opts.version) {
127
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
128
+ }
129
+ super(RuntimeIamMember.__pulumiType, name, inputs, opts);
130
+ }
131
+ /**
132
+ * Get an existing RuntimeIamMember resource's state with the given name, ID, and optional extra
133
+ * properties used to qualify the lookup.
134
+ *
135
+ * @param name The _unique_ name of the resulting resource.
136
+ * @param id The _unique_ provider ID of the resource to lookup.
137
+ * @param state Any extra arguments used during the lookup.
138
+ * @param opts Optional settings to control the behavior of the CustomResource.
139
+ */
140
+ static get(name, id, state, opts) {
141
+ return new RuntimeIamMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
142
+ }
143
+ /**
144
+ * Returns true if the given object is an instance of RuntimeIamMember. This is designed to work even
145
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
146
+ */
147
+ static isInstance(obj) {
148
+ if (obj === undefined || obj === null) {
149
+ return false;
150
+ }
151
+ return obj['__pulumiType'] === RuntimeIamMember.__pulumiType;
152
+ }
153
+ }
154
+ exports.RuntimeIamMember = RuntimeIamMember;
155
+ /** @internal */
156
+ RuntimeIamMember.__pulumiType = 'gcp:notebooks/runtimeIamMember:RuntimeIamMember';
157
+ //# sourceMappingURL=runtimeIamMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtimeIamMember.js","sourceRoot":"","sources":["../../notebooks/runtimeIamMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IA8DvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAA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notebooks Runtime. Each of these resources serves a different use case:
4
+ *
5
+ * * `gcp.notebooks.RuntimeIamPolicy`: Authoritative. Sets the IAM policy for the runtime and replaces any existing policy already attached.
6
+ * * `gcp.notebooks.RuntimeIamBinding`: 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 runtime are preserved.
7
+ * * `gcp.notebooks.RuntimeIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the runtime are preserved.
8
+ *
9
+ * > **Note:** `gcp.notebooks.RuntimeIamPolicy` **cannot** be used in conjunction with `gcp.notebooks.RuntimeIamBinding` and `gcp.notebooks.RuntimeIamMember` or they will fight over what your policy should be.
10
+ *
11
+ * > **Note:** `gcp.notebooks.RuntimeIamBinding` resources **can be** used in conjunction with `gcp.notebooks.RuntimeIamMember` resources **only if** they do not grant privilege to the same role.
12
+ *
13
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamPolicy("policy", {
26
+ * project: google_notebooks_runtime.runtime.project,
27
+ * location: google_notebooks_runtime.runtime.location,
28
+ * runtimeName: google_notebooks_runtime.runtime.name,
29
+ * policyData: admin.then(admin => admin.policyData),
30
+ * });
31
+ * ```
32
+ *
33
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamBinding("binding", {
40
+ * project: google_notebooks_runtime.runtime.project,
41
+ * location: google_notebooks_runtime.runtime.location,
42
+ * runtimeName: google_notebooks_runtime.runtime.name,
43
+ * role: "roles/viewer",
44
+ * members: ["user:jane@example.com"],
45
+ * });
46
+ * ```
47
+ *
48
+ * ## google\_notebooks\_runtime\_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.notebooks.RuntimeIamMember("member", {
55
+ * project: google_notebooks_runtime.runtime.project,
56
+ * location: google_notebooks_runtime.runtime.location,
57
+ * runtimeName: google_notebooks_runtime.runtime.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/{{location}}/runtimes/{{runtime_name}} * {{project}}/{{location}}/{{runtime_name}} * {{location}}/{{runtime_name}} * {{runtime_name}} Any variables not passed in the import command will be taken from the provider configuration. Cloud AI Notebooks runtime 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:notebooks/runtimeIamPolicy:RuntimeIamPolicy editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} 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:notebooks/runtimeIamPolicy:RuntimeIamPolicy editor "projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}} 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:notebooks/runtimeIamPolicy:RuntimeIamPolicy editor projects/{{project}}/locations/{{location}}/runtimes/{{runtime_name}}
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
+ */
87
+ export declare class RuntimeIamPolicy extends pulumi.CustomResource {
88
+ /**
89
+ * Get an existing RuntimeIamPolicy resource's state with the given name, ID, and optional extra
90
+ * properties used to qualify the lookup.
91
+ *
92
+ * @param name The _unique_ name of the resulting resource.
93
+ * @param id The _unique_ provider ID of the resource to lookup.
94
+ * @param state Any extra arguments used during the lookup.
95
+ * @param opts Optional settings to control the behavior of the CustomResource.
96
+ */
97
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: RuntimeIamPolicyState, opts?: pulumi.CustomResourceOptions): RuntimeIamPolicy;
98
+ /**
99
+ * Returns true if the given object is an instance of RuntimeIamPolicy. This is designed to work even
100
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
101
+ */
102
+ static isInstance(obj: any): obj is RuntimeIamPolicy;
103
+ /**
104
+ * (Computed) The etag of the IAM policy.
105
+ */
106
+ readonly etag: pulumi.Output<string>;
107
+ /**
108
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
109
+ */
110
+ readonly location: pulumi.Output<string>;
111
+ /**
112
+ * The policy data generated by
113
+ * a `gcp.organizations.getIAMPolicy` data source.
114
+ */
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
+ */
120
+ readonly project: pulumi.Output<string>;
121
+ /**
122
+ * Used to find the parent resource to bind the IAM policy to
123
+ */
124
+ readonly runtimeName: pulumi.Output<string>;
125
+ /**
126
+ * Create a RuntimeIamPolicy resource with the given unique name, arguments, and options.
127
+ *
128
+ * @param name The _unique_ name of the resource.
129
+ * @param args The arguments to use to populate this resource's properties.
130
+ * @param opts A bag of options that control this resource's behavior.
131
+ */
132
+ constructor(name: string, args: RuntimeIamPolicyArgs, opts?: pulumi.CustomResourceOptions);
133
+ }
134
+ /**
135
+ * Input properties used for looking up and filtering RuntimeIamPolicy resources.
136
+ */
137
+ export interface RuntimeIamPolicyState {
138
+ /**
139
+ * (Computed) The etag of the IAM policy.
140
+ */
141
+ etag?: pulumi.Input<string>;
142
+ /**
143
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
144
+ */
145
+ location?: pulumi.Input<string>;
146
+ /**
147
+ * The policy data generated by
148
+ * a `gcp.organizations.getIAMPolicy` data source.
149
+ */
150
+ policyData?: pulumi.Input<string>;
151
+ /**
152
+ * The ID of the project in which the resource belongs.
153
+ * 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.
154
+ */
155
+ project?: pulumi.Input<string>;
156
+ /**
157
+ * Used to find the parent resource to bind the IAM policy to
158
+ */
159
+ runtimeName?: pulumi.Input<string>;
160
+ }
161
+ /**
162
+ * The set of arguments for constructing a RuntimeIamPolicy resource.
163
+ */
164
+ export interface RuntimeIamPolicyArgs {
165
+ /**
166
+ * A reference to the zone where the machine resides. Used to find the parent resource to bind the IAM policy to
167
+ */
168
+ location?: pulumi.Input<string>;
169
+ /**
170
+ * The policy data generated by
171
+ * a `gcp.organizations.getIAMPolicy` data source.
172
+ */
173
+ policyData: pulumi.Input<string>;
174
+ /**
175
+ * The ID of the project in which the resource belongs.
176
+ * 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.
177
+ */
178
+ project?: pulumi.Input<string>;
179
+ /**
180
+ * Used to find the parent resource to bind the IAM policy to
181
+ */
182
+ runtimeName: pulumi.Input<string>;
183
+ }