@pulumi/gcp 6.30.0 → 6.31.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 (95) hide show
  1. package/bigquery/connection.d.ts +14 -14
  2. package/bigquery/connection.js +14 -14
  3. package/bigquery/connectionIamBinding.d.ts +214 -0
  4. package/bigquery/connectionIamBinding.js +155 -0
  5. package/bigquery/connectionIamBinding.js.map +1 -0
  6. package/bigquery/connectionIamMember.d.ts +214 -0
  7. package/bigquery/connectionIamMember.js +155 -0
  8. package/bigquery/connectionIamMember.js.map +1 -0
  9. package/bigquery/connectionIamPolicy.d.ts +204 -0
  10. package/bigquery/connectionIamPolicy.js +148 -0
  11. package/bigquery/connectionIamPolicy.js.map +1 -0
  12. package/bigquery/index.d.ts +3 -0
  13. package/bigquery/index.js +15 -0
  14. package/bigquery/index.js.map +1 -1
  15. package/billing/budget.d.ts +46 -0
  16. package/billing/budget.js +46 -0
  17. package/billing/budget.js.map +1 -1
  18. package/certificateauthority/authority.d.ts +85 -23
  19. package/certificateauthority/authority.js +56 -17
  20. package/certificateauthority/authority.js.map +1 -1
  21. package/certificateauthority/certificate.d.ts +14 -5
  22. package/certificateauthority/certificate.js.map +1 -1
  23. package/certificateauthority/getAuthority.d.ts +2 -0
  24. package/certificateauthority/getAuthority.js.map +1 -1
  25. package/cloudfunctions/function.d.ts +4 -3
  26. package/cloudfunctions/function.js +1 -0
  27. package/cloudfunctions/function.js.map +1 -1
  28. package/cloudfunctionsv2/function.d.ts +6 -2
  29. package/cloudfunctionsv2/function.js +6 -2
  30. package/cloudfunctionsv2/function.js.map +1 -1
  31. package/cloudrun/service.d.ts +424 -0
  32. package/cloudrun/service.js +424 -0
  33. package/cloudrun/service.js.map +1 -1
  34. package/cloudtasks/index.d.ts +3 -0
  35. package/cloudtasks/index.js +15 -0
  36. package/cloudtasks/index.js.map +1 -1
  37. package/cloudtasks/queueIamBinding.d.ts +190 -0
  38. package/cloudtasks/queueIamBinding.js +149 -0
  39. package/cloudtasks/queueIamBinding.js.map +1 -0
  40. package/cloudtasks/queueIamMember.d.ts +190 -0
  41. package/cloudtasks/queueIamMember.js +149 -0
  42. package/cloudtasks/queueIamMember.js.map +1 -0
  43. package/cloudtasks/queueIamPolicy.d.ts +180 -0
  44. package/cloudtasks/queueIamPolicy.js +142 -0
  45. package/cloudtasks/queueIamPolicy.js.map +1 -0
  46. package/compute/globalForwardingRule.d.ts +17 -2
  47. package/compute/globalForwardingRule.js +17 -2
  48. package/compute/globalForwardingRule.js.map +1 -1
  49. package/compute/networkEndpointGroup.d.ts +6 -3
  50. package/compute/networkEndpointGroup.js.map +1 -1
  51. package/dataproc/autoscalingPolicyIamBinding.d.ts +208 -0
  52. package/dataproc/autoscalingPolicyIamBinding.js +155 -0
  53. package/dataproc/autoscalingPolicyIamBinding.js.map +1 -0
  54. package/dataproc/autoscalingPolicyIamMember.d.ts +208 -0
  55. package/dataproc/autoscalingPolicyIamMember.js +155 -0
  56. package/dataproc/autoscalingPolicyIamMember.js.map +1 -0
  57. package/dataproc/autoscalingPolicyIamPolicy.d.ts +198 -0
  58. package/dataproc/autoscalingPolicyIamPolicy.js +148 -0
  59. package/dataproc/autoscalingPolicyIamPolicy.js.map +1 -0
  60. package/dataproc/index.d.ts +6 -0
  61. package/dataproc/index.js +30 -0
  62. package/dataproc/index.js.map +1 -1
  63. package/dataproc/metastoreServiceIamBinding.d.ts +130 -0
  64. package/dataproc/metastoreServiceIamBinding.js +95 -0
  65. package/dataproc/metastoreServiceIamBinding.js.map +1 -0
  66. package/dataproc/metastoreServiceIamMember.d.ts +130 -0
  67. package/dataproc/metastoreServiceIamMember.js +95 -0
  68. package/dataproc/metastoreServiceIamMember.js.map +1 -0
  69. package/dataproc/metastoreServiceIamPolicy.d.ts +120 -0
  70. package/dataproc/metastoreServiceIamPolicy.js +88 -0
  71. package/dataproc/metastoreServiceIamPolicy.js.map +1 -0
  72. package/logging/projectSink.d.ts +80 -0
  73. package/logging/projectSink.js +80 -0
  74. package/logging/projectSink.js.map +1 -1
  75. package/monitoring/monitoredProject.d.ts +2 -6
  76. package/monitoring/monitoredProject.js +2 -6
  77. package/monitoring/monitoredProject.js.map +1 -1
  78. package/package.json +2 -2
  79. package/package.json.dev +2 -2
  80. package/projects/serviceIdentity.d.ts +4 -0
  81. package/projects/serviceIdentity.js +1 -1
  82. package/projects/serviceIdentity.js.map +1 -1
  83. package/redis/getInstance.d.ts +1 -0
  84. package/redis/getInstance.js.map +1 -1
  85. package/redis/instance.d.ts +42 -0
  86. package/redis/instance.js +29 -0
  87. package/redis/instance.js.map +1 -1
  88. package/spanner/database.d.ts +44 -12
  89. package/spanner/database.js +13 -0
  90. package/spanner/database.js.map +1 -1
  91. package/sql/getBackupRun.d.ts +11 -0
  92. package/sql/getBackupRun.js +1 -0
  93. package/sql/getBackupRun.js.map +1 -1
  94. package/types/input.d.ts +144 -7
  95. package/types/output.d.ts +162 -11
@@ -0,0 +1,208 @@
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 Dataproc AutoscalingPolicy. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.dataproc.AutoscalingPolicyIamPolicy`: Authoritative. Sets the IAM policy for the autoscalingpolicy and replaces any existing policy already attached.
7
+ * * `gcp.dataproc.AutoscalingPolicyIamBinding`: 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 autoscalingpolicy are preserved.
8
+ * * `gcp.dataproc.AutoscalingPolicyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the autoscalingpolicy are preserved.
9
+ *
10
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamPolicy` **cannot** be used in conjunction with `gcp.dataproc.AutoscalingPolicyIamBinding` and `gcp.dataproc.AutoscalingPolicyIamMember` or they will fight over what your policy should be.
11
+ *
12
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamBinding` resources **can be** used in conjunction with `gcp.dataproc.AutoscalingPolicyIamMember` resources **only if** they do not grant privilege to the same role.
13
+ *
14
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamPolicy("policy", {
27
+ * project: google_dataproc_autoscaling_policy.basic.project,
28
+ * location: google_dataproc_autoscaling_policy.basic.location,
29
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
30
+ * policyData: admin.then(admin => admin.policyData),
31
+ * });
32
+ * ```
33
+ *
34
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamBinding("binding", {
41
+ * project: google_dataproc_autoscaling_policy.basic.project,
42
+ * location: google_dataproc_autoscaling_policy.basic.location,
43
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
44
+ * role: "roles/viewer",
45
+ * members: ["user:jane@example.com"],
46
+ * });
47
+ * ```
48
+ *
49
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamMember("member", {
56
+ * project: google_dataproc_autoscaling_policy.basic.project,
57
+ * location: google_dataproc_autoscaling_policy.basic.location,
58
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
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}}/autoscalingPolicies/{{policy_id}} * {{project}}/{{location}}/{{policy_id}} * {{location}}/{{policy_id}} * {{policy_id}} Any variables not passed in the import command will be taken from the provider configuration. Dataproc autoscalingpolicy 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}}
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 AutoscalingPolicyIamBinding extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing AutoscalingPolicyIamBinding 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?: AutoscalingPolicyIamBindingState, opts?: pulumi.CustomResourceOptions): AutoscalingPolicyIamBinding;
99
+ /**
100
+ * Returns true if the given object is an instance of AutoscalingPolicyIamBinding. 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 AutoscalingPolicyIamBinding;
104
+ readonly condition: pulumi.Output<outputs.dataproc.AutoscalingPolicyIamBindingCondition | undefined>;
105
+ /**
106
+ * (Computed) The etag of the IAM policy.
107
+ */
108
+ readonly etag: pulumi.Output<string>;
109
+ /**
110
+ * The location where the autoscaling policy should reside.
111
+ * The default value is `global`.
112
+ * Used to find the parent resource to bind the IAM policy to
113
+ */
114
+ readonly location: pulumi.Output<string>;
115
+ readonly members: pulumi.Output<string[]>;
116
+ /**
117
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
118
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
119
+ * 3 and 50 characters.
120
+ * Used to find the parent resource to bind the IAM policy to
121
+ */
122
+ readonly policyId: pulumi.Output<string>;
123
+ /**
124
+ * The ID of the project in which the resource belongs.
125
+ * 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.
126
+ */
127
+ readonly project: pulumi.Output<string>;
128
+ /**
129
+ * The role that should be applied. Only one
130
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
131
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
132
+ */
133
+ readonly role: pulumi.Output<string>;
134
+ /**
135
+ * Create a AutoscalingPolicyIamBinding resource with the given unique name, arguments, and options.
136
+ *
137
+ * @param name The _unique_ name of the resource.
138
+ * @param args The arguments to use to populate this resource's properties.
139
+ * @param opts A bag of options that control this resource's behavior.
140
+ */
141
+ constructor(name: string, args: AutoscalingPolicyIamBindingArgs, opts?: pulumi.CustomResourceOptions);
142
+ }
143
+ /**
144
+ * Input properties used for looking up and filtering AutoscalingPolicyIamBinding resources.
145
+ */
146
+ export interface AutoscalingPolicyIamBindingState {
147
+ condition?: pulumi.Input<inputs.dataproc.AutoscalingPolicyIamBindingCondition>;
148
+ /**
149
+ * (Computed) The etag of the IAM policy.
150
+ */
151
+ etag?: pulumi.Input<string>;
152
+ /**
153
+ * The location where the autoscaling policy should reside.
154
+ * The default value is `global`.
155
+ * Used to find the parent resource to bind the IAM policy to
156
+ */
157
+ location?: pulumi.Input<string>;
158
+ members?: pulumi.Input<pulumi.Input<string>[]>;
159
+ /**
160
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
161
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
162
+ * 3 and 50 characters.
163
+ * Used to find the parent resource to bind the IAM policy to
164
+ */
165
+ policyId?: pulumi.Input<string>;
166
+ /**
167
+ * The ID of the project in which the resource belongs.
168
+ * 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.
169
+ */
170
+ project?: pulumi.Input<string>;
171
+ /**
172
+ * The role that should be applied. Only one
173
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
174
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
175
+ */
176
+ role?: pulumi.Input<string>;
177
+ }
178
+ /**
179
+ * The set of arguments for constructing a AutoscalingPolicyIamBinding resource.
180
+ */
181
+ export interface AutoscalingPolicyIamBindingArgs {
182
+ condition?: pulumi.Input<inputs.dataproc.AutoscalingPolicyIamBindingCondition>;
183
+ /**
184
+ * The location where the autoscaling policy should reside.
185
+ * The default value is `global`.
186
+ * Used to find the parent resource to bind the IAM policy to
187
+ */
188
+ location?: pulumi.Input<string>;
189
+ members: pulumi.Input<pulumi.Input<string>[]>;
190
+ /**
191
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
192
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
193
+ * 3 and 50 characters.
194
+ * Used to find the parent resource to bind the IAM policy to
195
+ */
196
+ policyId: pulumi.Input<string>;
197
+ /**
198
+ * The ID of the project in which the resource belongs.
199
+ * 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.
200
+ */
201
+ project?: pulumi.Input<string>;
202
+ /**
203
+ * The role that should be applied. Only one
204
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
205
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
206
+ */
207
+ role: pulumi.Input<string>;
208
+ }
@@ -0,0 +1,155 @@
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.AutoscalingPolicyIamBinding = 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 Dataproc AutoscalingPolicy. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.dataproc.AutoscalingPolicyIamPolicy`: Authoritative. Sets the IAM policy for the autoscalingpolicy and replaces any existing policy already attached.
12
+ * * `gcp.dataproc.AutoscalingPolicyIamBinding`: 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 autoscalingpolicy are preserved.
13
+ * * `gcp.dataproc.AutoscalingPolicyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the autoscalingpolicy are preserved.
14
+ *
15
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamPolicy` **cannot** be used in conjunction with `gcp.dataproc.AutoscalingPolicyIamBinding` and `gcp.dataproc.AutoscalingPolicyIamMember` or they will fight over what your policy should be.
16
+ *
17
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamBinding` resources **can be** used in conjunction with `gcp.dataproc.AutoscalingPolicyIamMember` resources **only if** they do not grant privilege to the same role.
18
+ *
19
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamPolicy("policy", {
32
+ * project: google_dataproc_autoscaling_policy.basic.project,
33
+ * location: google_dataproc_autoscaling_policy.basic.location,
34
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
35
+ * policyData: admin.then(admin => admin.policyData),
36
+ * });
37
+ * ```
38
+ *
39
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamBinding("binding", {
46
+ * project: google_dataproc_autoscaling_policy.basic.project,
47
+ * location: google_dataproc_autoscaling_policy.basic.location,
48
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
49
+ * role: "roles/viewer",
50
+ * members: ["user:jane@example.com"],
51
+ * });
52
+ * ```
53
+ *
54
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamMember("member", {
61
+ * project: google_dataproc_autoscaling_policy.basic.project,
62
+ * location: google_dataproc_autoscaling_policy.basic.location,
63
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
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}}/autoscalingPolicies/{{policy_id}} * {{project}}/{{location}}/{{policy_id}} * {{location}}/{{policy_id}} * {{policy_id}} Any variables not passed in the import command will be taken from the provider configuration. Dataproc autoscalingpolicy 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding editor projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}}
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 AutoscalingPolicyIamBinding extends pulumi.CustomResource {
94
+ constructor(name, argsOrState, opts) {
95
+ let resourceInputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ resourceInputs["condition"] = state ? state.condition : undefined;
100
+ resourceInputs["etag"] = state ? state.etag : undefined;
101
+ resourceInputs["location"] = state ? state.location : undefined;
102
+ resourceInputs["members"] = state ? state.members : undefined;
103
+ resourceInputs["policyId"] = state ? state.policyId : undefined;
104
+ resourceInputs["project"] = state ? state.project : undefined;
105
+ resourceInputs["role"] = state ? state.role : undefined;
106
+ }
107
+ else {
108
+ const args = argsOrState;
109
+ if ((!args || args.members === undefined) && !opts.urn) {
110
+ throw new Error("Missing required property 'members'");
111
+ }
112
+ if ((!args || args.policyId === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'policyId'");
114
+ }
115
+ if ((!args || args.role === undefined) && !opts.urn) {
116
+ throw new Error("Missing required property 'role'");
117
+ }
118
+ resourceInputs["condition"] = args ? args.condition : undefined;
119
+ resourceInputs["location"] = args ? args.location : undefined;
120
+ resourceInputs["members"] = args ? args.members : undefined;
121
+ resourceInputs["policyId"] = args ? args.policyId : undefined;
122
+ resourceInputs["project"] = args ? args.project : undefined;
123
+ resourceInputs["role"] = args ? args.role : undefined;
124
+ resourceInputs["etag"] = undefined /*out*/;
125
+ }
126
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
127
+ super(AutoscalingPolicyIamBinding.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ /**
130
+ * Get an existing AutoscalingPolicyIamBinding resource's state with the given name, ID, and optional extra
131
+ * properties used to qualify the lookup.
132
+ *
133
+ * @param name The _unique_ name of the resulting resource.
134
+ * @param id The _unique_ provider ID of the resource to lookup.
135
+ * @param state Any extra arguments used during the lookup.
136
+ * @param opts Optional settings to control the behavior of the CustomResource.
137
+ */
138
+ static get(name, id, state, opts) {
139
+ return new AutoscalingPolicyIamBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
140
+ }
141
+ /**
142
+ * Returns true if the given object is an instance of AutoscalingPolicyIamBinding. This is designed to work even
143
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
144
+ */
145
+ static isInstance(obj) {
146
+ if (obj === undefined || obj === null) {
147
+ return false;
148
+ }
149
+ return obj['__pulumiType'] === AutoscalingPolicyIamBinding.__pulumiType;
150
+ }
151
+ }
152
+ exports.AutoscalingPolicyIamBinding = AutoscalingPolicyIamBinding;
153
+ /** @internal */
154
+ AutoscalingPolicyIamBinding.__pulumiType = 'gcp:dataproc/autoscalingPolicyIamBinding:AutoscalingPolicyIamBinding';
155
+ //# sourceMappingURL=autoscalingPolicyIamBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"autoscalingPolicyIamBinding.js","sourceRoot":"","sources":["../../dataproc/autoscalingPolicyIamBinding.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,208 @@
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 Dataproc AutoscalingPolicy. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.dataproc.AutoscalingPolicyIamPolicy`: Authoritative. Sets the IAM policy for the autoscalingpolicy and replaces any existing policy already attached.
7
+ * * `gcp.dataproc.AutoscalingPolicyIamBinding`: 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 autoscalingpolicy are preserved.
8
+ * * `gcp.dataproc.AutoscalingPolicyIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the autoscalingpolicy are preserved.
9
+ *
10
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamPolicy` **cannot** be used in conjunction with `gcp.dataproc.AutoscalingPolicyIamBinding` and `gcp.dataproc.AutoscalingPolicyIamMember` or they will fight over what your policy should be.
11
+ *
12
+ * > **Note:** `gcp.dataproc.AutoscalingPolicyIamBinding` resources **can be** used in conjunction with `gcp.dataproc.AutoscalingPolicyIamMember` resources **only if** they do not grant privilege to the same role.
13
+ *
14
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamPolicy("policy", {
27
+ * project: google_dataproc_autoscaling_policy.basic.project,
28
+ * location: google_dataproc_autoscaling_policy.basic.location,
29
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
30
+ * policyData: admin.then(admin => admin.policyData),
31
+ * });
32
+ * ```
33
+ *
34
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamBinding("binding", {
41
+ * project: google_dataproc_autoscaling_policy.basic.project,
42
+ * location: google_dataproc_autoscaling_policy.basic.location,
43
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
44
+ * role: "roles/viewer",
45
+ * members: ["user:jane@example.com"],
46
+ * });
47
+ * ```
48
+ *
49
+ * ## google\_dataproc\_autoscaling\_policy\_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.dataproc.AutoscalingPolicyIamMember("member", {
56
+ * project: google_dataproc_autoscaling_policy.basic.project,
57
+ * location: google_dataproc_autoscaling_policy.basic.location,
58
+ * policyId: google_dataproc_autoscaling_policy.basic.policy_id,
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}}/autoscalingPolicies/{{policy_id}} * {{project}}/{{location}}/{{policy_id}} * {{location}}/{{policy_id}} * {{policy_id}} Any variables not passed in the import command will be taken from the provider configuration. Dataproc autoscalingpolicy 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:dataproc/autoscalingPolicyIamMember:AutoscalingPolicyIamMember editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamMember:AutoscalingPolicyIamMember editor "projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}} 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:dataproc/autoscalingPolicyIamMember:AutoscalingPolicyIamMember editor projects/{{project}}/locations/{{location}}/autoscalingPolicies/{{policy_id}}
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 AutoscalingPolicyIamMember extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing AutoscalingPolicyIamMember 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?: AutoscalingPolicyIamMemberState, opts?: pulumi.CustomResourceOptions): AutoscalingPolicyIamMember;
99
+ /**
100
+ * Returns true if the given object is an instance of AutoscalingPolicyIamMember. 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 AutoscalingPolicyIamMember;
104
+ readonly condition: pulumi.Output<outputs.dataproc.AutoscalingPolicyIamMemberCondition | undefined>;
105
+ /**
106
+ * (Computed) The etag of the IAM policy.
107
+ */
108
+ readonly etag: pulumi.Output<string>;
109
+ /**
110
+ * The location where the autoscaling policy should reside.
111
+ * The default value is `global`.
112
+ * Used to find the parent resource to bind the IAM policy to
113
+ */
114
+ readonly location: pulumi.Output<string>;
115
+ readonly member: pulumi.Output<string>;
116
+ /**
117
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
118
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
119
+ * 3 and 50 characters.
120
+ * Used to find the parent resource to bind the IAM policy to
121
+ */
122
+ readonly policyId: pulumi.Output<string>;
123
+ /**
124
+ * The ID of the project in which the resource belongs.
125
+ * 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.
126
+ */
127
+ readonly project: pulumi.Output<string>;
128
+ /**
129
+ * The role that should be applied. Only one
130
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
131
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
132
+ */
133
+ readonly role: pulumi.Output<string>;
134
+ /**
135
+ * Create a AutoscalingPolicyIamMember resource with the given unique name, arguments, and options.
136
+ *
137
+ * @param name The _unique_ name of the resource.
138
+ * @param args The arguments to use to populate this resource's properties.
139
+ * @param opts A bag of options that control this resource's behavior.
140
+ */
141
+ constructor(name: string, args: AutoscalingPolicyIamMemberArgs, opts?: pulumi.CustomResourceOptions);
142
+ }
143
+ /**
144
+ * Input properties used for looking up and filtering AutoscalingPolicyIamMember resources.
145
+ */
146
+ export interface AutoscalingPolicyIamMemberState {
147
+ condition?: pulumi.Input<inputs.dataproc.AutoscalingPolicyIamMemberCondition>;
148
+ /**
149
+ * (Computed) The etag of the IAM policy.
150
+ */
151
+ etag?: pulumi.Input<string>;
152
+ /**
153
+ * The location where the autoscaling policy should reside.
154
+ * The default value is `global`.
155
+ * Used to find the parent resource to bind the IAM policy to
156
+ */
157
+ location?: pulumi.Input<string>;
158
+ member?: pulumi.Input<string>;
159
+ /**
160
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
161
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
162
+ * 3 and 50 characters.
163
+ * Used to find the parent resource to bind the IAM policy to
164
+ */
165
+ policyId?: pulumi.Input<string>;
166
+ /**
167
+ * The ID of the project in which the resource belongs.
168
+ * 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.
169
+ */
170
+ project?: pulumi.Input<string>;
171
+ /**
172
+ * The role that should be applied. Only one
173
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
174
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
175
+ */
176
+ role?: pulumi.Input<string>;
177
+ }
178
+ /**
179
+ * The set of arguments for constructing a AutoscalingPolicyIamMember resource.
180
+ */
181
+ export interface AutoscalingPolicyIamMemberArgs {
182
+ condition?: pulumi.Input<inputs.dataproc.AutoscalingPolicyIamMemberCondition>;
183
+ /**
184
+ * The location where the autoscaling policy should reside.
185
+ * The default value is `global`.
186
+ * Used to find the parent resource to bind the IAM policy to
187
+ */
188
+ location?: pulumi.Input<string>;
189
+ member: pulumi.Input<string>;
190
+ /**
191
+ * The policy id. The id must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
192
+ * and hyphens (-). Cannot begin or end with underscore or hyphen. Must consist of between
193
+ * 3 and 50 characters.
194
+ * Used to find the parent resource to bind the IAM policy to
195
+ */
196
+ policyId: pulumi.Input<string>;
197
+ /**
198
+ * The ID of the project in which the resource belongs.
199
+ * 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.
200
+ */
201
+ project?: pulumi.Input<string>;
202
+ /**
203
+ * The role that should be applied. Only one
204
+ * `gcp.dataproc.AutoscalingPolicyIamBinding` can be used per role. Note that custom roles must be of the format
205
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
206
+ */
207
+ role: pulumi.Input<string>;
208
+ }