@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
@@ -2,6 +2,20 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "../types";
3
3
  /**
4
4
  * ## Example Usage
5
+ * ### Bigquery Connection Cloud Resource
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as gcp from "@pulumi/gcp";
10
+ *
11
+ * const connection = new gcp.bigquery.Connection("connection", {
12
+ * cloudResource: {},
13
+ * connectionId: "my-connection",
14
+ * description: "a riveting description",
15
+ * friendlyName: "👋",
16
+ * location: "US",
17
+ * });
18
+ * ```
5
19
  * ### Bigquery Connection Basic
6
20
  *
7
21
  * ```typescript
@@ -81,20 +95,6 @@ import { input as inputs, output as outputs } from "../types";
81
95
  * },
82
96
  * });
83
97
  * ```
84
- * ### Bigquery Connection Cloud Resource
85
- *
86
- * ```typescript
87
- * import * as pulumi from "@pulumi/pulumi";
88
- * import * as gcp from "@pulumi/gcp";
89
- *
90
- * const connection = new gcp.bigquery.Connection("connection", {
91
- * cloudResource: {},
92
- * connectionId: "my-connection",
93
- * description: "a riveting description",
94
- * friendlyName: "👋",
95
- * location: "US",
96
- * });
97
- * ```
98
98
  * ### Bigquery Connection Aws
99
99
  *
100
100
  * ```typescript
@@ -7,6 +7,20 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
9
  * ## Example Usage
10
+ * ### Bigquery Connection Cloud Resource
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as gcp from "@pulumi/gcp";
15
+ *
16
+ * const connection = new gcp.bigquery.Connection("connection", {
17
+ * cloudResource: {},
18
+ * connectionId: "my-connection",
19
+ * description: "a riveting description",
20
+ * friendlyName: "👋",
21
+ * location: "US",
22
+ * });
23
+ * ```
10
24
  * ### Bigquery Connection Basic
11
25
  *
12
26
  * ```typescript
@@ -86,20 +100,6 @@ const utilities = require("../utilities");
86
100
  * },
87
101
  * });
88
102
  * ```
89
- * ### Bigquery Connection Cloud Resource
90
- *
91
- * ```typescript
92
- * import * as pulumi from "@pulumi/pulumi";
93
- * import * as gcp from "@pulumi/gcp";
94
- *
95
- * const connection = new gcp.bigquery.Connection("connection", {
96
- * cloudResource: {},
97
- * connectionId: "my-connection",
98
- * description: "a riveting description",
99
- * friendlyName: "👋",
100
- * location: "US",
101
- * });
102
- * ```
103
103
  * ### Bigquery Connection Aws
104
104
  *
105
105
  * ```typescript
@@ -0,0 +1,214 @@
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 BigQuery Connection Connection. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.bigquery.ConnectionIamPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached.
7
+ * * `gcp.bigquery.ConnectionIamBinding`: 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 connection are preserved.
8
+ * * `gcp.bigquery.ConnectionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.
9
+ *
10
+ * > **Note:** `gcp.bigquery.ConnectionIamPolicy` **cannot** be used in conjunction with `gcp.bigquery.ConnectionIamBinding` and `gcp.bigquery.ConnectionIamMember` or they will fight over what your policy should be.
11
+ *
12
+ * > **Note:** `gcp.bigquery.ConnectionIamBinding` resources **can be** used in conjunction with `gcp.bigquery.ConnectionIamMember` resources **only if** they do not grant privilege to the same role.
13
+ *
14
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamPolicy("policy", {
27
+ * project: google_bigquery_connection.connection.project,
28
+ * location: google_bigquery_connection.connection.location,
29
+ * connectionId: google_bigquery_connection.connection.connection_id,
30
+ * policyData: admin.then(admin => admin.policyData),
31
+ * });
32
+ * ```
33
+ *
34
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamBinding("binding", {
41
+ * project: google_bigquery_connection.connection.project,
42
+ * location: google_bigquery_connection.connection.location,
43
+ * connectionId: google_bigquery_connection.connection.connection_id,
44
+ * role: "roles/viewer",
45
+ * members: ["user:jane@example.com"],
46
+ * });
47
+ * ```
48
+ *
49
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamMember("member", {
56
+ * project: google_bigquery_connection.connection.project,
57
+ * location: google_bigquery_connection.connection.location,
58
+ * connectionId: google_bigquery_connection.connection.connection_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}}/connections/{{connection_id}} * {{project}}/{{location}}/{{connection_id}} * {{location}}/{{connection_id}} * {{connection_id}} Any variables not passed in the import command will be taken from the provider configuration. BigQuery Connection connection 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:bigquery/connectionIamBinding:ConnectionIamBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamBinding:ConnectionIamBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamBinding:ConnectionIamBinding editor projects/{{project}}/locations/{{location}}/connections/{{connection_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 ConnectionIamBinding extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing ConnectionIamBinding 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?: ConnectionIamBindingState, opts?: pulumi.CustomResourceOptions): ConnectionIamBinding;
99
+ /**
100
+ * Returns true if the given object is an instance of ConnectionIamBinding. 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 ConnectionIamBinding;
104
+ readonly condition: pulumi.Output<outputs.bigquery.ConnectionIamBindingCondition | undefined>;
105
+ /**
106
+ * Optional connection id that should be assigned to the created connection.
107
+ * Used to find the parent resource to bind the IAM policy to
108
+ */
109
+ readonly connectionId: pulumi.Output<string>;
110
+ /**
111
+ * (Computed) The etag of the IAM policy.
112
+ */
113
+ readonly etag: pulumi.Output<string>;
114
+ /**
115
+ * The geographic location where the connection should reside.
116
+ * Cloud SQL instance must be in the same location as the connection
117
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
118
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
119
+ * Spanner Connections same as spanner region
120
+ * AWS allowed regions are aws-us-east-1
121
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
122
+ */
123
+ readonly location: pulumi.Output<string>;
124
+ readonly members: pulumi.Output<string[]>;
125
+ /**
126
+ * The ID of the project in which the resource belongs.
127
+ * 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.
128
+ */
129
+ readonly project: pulumi.Output<string>;
130
+ /**
131
+ * The role that should be applied. Only one
132
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
133
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
134
+ */
135
+ readonly role: pulumi.Output<string>;
136
+ /**
137
+ * Create a ConnectionIamBinding resource with the given unique name, arguments, and options.
138
+ *
139
+ * @param name The _unique_ name of the resource.
140
+ * @param args The arguments to use to populate this resource's properties.
141
+ * @param opts A bag of options that control this resource's behavior.
142
+ */
143
+ constructor(name: string, args: ConnectionIamBindingArgs, opts?: pulumi.CustomResourceOptions);
144
+ }
145
+ /**
146
+ * Input properties used for looking up and filtering ConnectionIamBinding resources.
147
+ */
148
+ export interface ConnectionIamBindingState {
149
+ condition?: pulumi.Input<inputs.bigquery.ConnectionIamBindingCondition>;
150
+ /**
151
+ * Optional connection id that should be assigned to the created connection.
152
+ * Used to find the parent resource to bind the IAM policy to
153
+ */
154
+ connectionId?: pulumi.Input<string>;
155
+ /**
156
+ * (Computed) The etag of the IAM policy.
157
+ */
158
+ etag?: pulumi.Input<string>;
159
+ /**
160
+ * The geographic location where the connection should reside.
161
+ * Cloud SQL instance must be in the same location as the connection
162
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
163
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
164
+ * Spanner Connections same as spanner region
165
+ * AWS allowed regions are aws-us-east-1
166
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
167
+ */
168
+ location?: pulumi.Input<string>;
169
+ members?: pulumi.Input<pulumi.Input<string>[]>;
170
+ /**
171
+ * The ID of the project in which the resource belongs.
172
+ * 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.
173
+ */
174
+ project?: pulumi.Input<string>;
175
+ /**
176
+ * The role that should be applied. Only one
177
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
178
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
179
+ */
180
+ role?: pulumi.Input<string>;
181
+ }
182
+ /**
183
+ * The set of arguments for constructing a ConnectionIamBinding resource.
184
+ */
185
+ export interface ConnectionIamBindingArgs {
186
+ condition?: pulumi.Input<inputs.bigquery.ConnectionIamBindingCondition>;
187
+ /**
188
+ * Optional connection id that should be assigned to the created connection.
189
+ * Used to find the parent resource to bind the IAM policy to
190
+ */
191
+ connectionId: pulumi.Input<string>;
192
+ /**
193
+ * The geographic location where the connection should reside.
194
+ * Cloud SQL instance must be in the same location as the connection
195
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
196
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
197
+ * Spanner Connections same as spanner region
198
+ * AWS allowed regions are aws-us-east-1
199
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
200
+ */
201
+ location?: pulumi.Input<string>;
202
+ members: pulumi.Input<pulumi.Input<string>[]>;
203
+ /**
204
+ * The ID of the project in which the resource belongs.
205
+ * 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.
206
+ */
207
+ project?: pulumi.Input<string>;
208
+ /**
209
+ * The role that should be applied. Only one
210
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
211
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
212
+ */
213
+ role: pulumi.Input<string>;
214
+ }
@@ -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.ConnectionIamBinding = 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 BigQuery Connection Connection. Each of these resources serves a different use case:
10
+ *
11
+ * * `gcp.bigquery.ConnectionIamPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached.
12
+ * * `gcp.bigquery.ConnectionIamBinding`: 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 connection are preserved.
13
+ * * `gcp.bigquery.ConnectionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.
14
+ *
15
+ * > **Note:** `gcp.bigquery.ConnectionIamPolicy` **cannot** be used in conjunction with `gcp.bigquery.ConnectionIamBinding` and `gcp.bigquery.ConnectionIamMember` or they will fight over what your policy should be.
16
+ *
17
+ * > **Note:** `gcp.bigquery.ConnectionIamBinding` resources **can be** used in conjunction with `gcp.bigquery.ConnectionIamMember` resources **only if** they do not grant privilege to the same role.
18
+ *
19
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamPolicy("policy", {
32
+ * project: google_bigquery_connection.connection.project,
33
+ * location: google_bigquery_connection.connection.location,
34
+ * connectionId: google_bigquery_connection.connection.connection_id,
35
+ * policyData: admin.then(admin => admin.policyData),
36
+ * });
37
+ * ```
38
+ *
39
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamBinding("binding", {
46
+ * project: google_bigquery_connection.connection.project,
47
+ * location: google_bigquery_connection.connection.location,
48
+ * connectionId: google_bigquery_connection.connection.connection_id,
49
+ * role: "roles/viewer",
50
+ * members: ["user:jane@example.com"],
51
+ * });
52
+ * ```
53
+ *
54
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamMember("member", {
61
+ * project: google_bigquery_connection.connection.project,
62
+ * location: google_bigquery_connection.connection.location,
63
+ * connectionId: google_bigquery_connection.connection.connection_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}}/connections/{{connection_id}} * {{project}}/{{location}}/{{connection_id}} * {{location}}/{{connection_id}} * {{connection_id}} Any variables not passed in the import command will be taken from the provider configuration. BigQuery Connection connection 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:bigquery/connectionIamBinding:ConnectionIamBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamBinding:ConnectionIamBinding editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamBinding:ConnectionIamBinding editor projects/{{project}}/locations/{{location}}/connections/{{connection_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 ConnectionIamBinding 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["connectionId"] = state ? state.connectionId : undefined;
101
+ resourceInputs["etag"] = state ? state.etag : undefined;
102
+ resourceInputs["location"] = state ? state.location : undefined;
103
+ resourceInputs["members"] = state ? state.members : 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.connectionId === undefined) && !opts.urn) {
110
+ throw new Error("Missing required property 'connectionId'");
111
+ }
112
+ if ((!args || args.members === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'members'");
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["connectionId"] = args ? args.connectionId : undefined;
120
+ resourceInputs["location"] = args ? args.location : undefined;
121
+ resourceInputs["members"] = args ? args.members : 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(ConnectionIamBinding.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ /**
130
+ * Get an existing ConnectionIamBinding 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 ConnectionIamBinding(name, state, Object.assign(Object.assign({}, opts), { id: id }));
140
+ }
141
+ /**
142
+ * Returns true if the given object is an instance of ConnectionIamBinding. 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'] === ConnectionIamBinding.__pulumiType;
150
+ }
151
+ }
152
+ exports.ConnectionIamBinding = ConnectionIamBinding;
153
+ /** @internal */
154
+ ConnectionIamBinding.__pulumiType = 'gcp:bigquery/connectionIamBinding:ConnectionIamBinding';
155
+ //# sourceMappingURL=connectionIamBinding.js.map
@@ -0,0 +1 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CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IArGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3E,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,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;;AA1BL,oDAuGC;AAzFG,gBAAgB;AACO,iCAAY,GAAG,wDAAwD,CAAC"}
@@ -0,0 +1,214 @@
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 BigQuery Connection Connection. Each of these resources serves a different use case:
5
+ *
6
+ * * `gcp.bigquery.ConnectionIamPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached.
7
+ * * `gcp.bigquery.ConnectionIamBinding`: 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 connection are preserved.
8
+ * * `gcp.bigquery.ConnectionIamMember`: Non-authoritative. Updates the IAM policy to grant a role to a new member. Other members for the role for the connection are preserved.
9
+ *
10
+ * > **Note:** `gcp.bigquery.ConnectionIamPolicy` **cannot** be used in conjunction with `gcp.bigquery.ConnectionIamBinding` and `gcp.bigquery.ConnectionIamMember` or they will fight over what your policy should be.
11
+ *
12
+ * > **Note:** `gcp.bigquery.ConnectionIamBinding` resources **can be** used in conjunction with `gcp.bigquery.ConnectionIamMember` resources **only if** they do not grant privilege to the same role.
13
+ *
14
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamPolicy("policy", {
27
+ * project: google_bigquery_connection.connection.project,
28
+ * location: google_bigquery_connection.connection.location,
29
+ * connectionId: google_bigquery_connection.connection.connection_id,
30
+ * policyData: admin.then(admin => admin.policyData),
31
+ * });
32
+ * ```
33
+ *
34
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamBinding("binding", {
41
+ * project: google_bigquery_connection.connection.project,
42
+ * location: google_bigquery_connection.connection.location,
43
+ * connectionId: google_bigquery_connection.connection.connection_id,
44
+ * role: "roles/viewer",
45
+ * members: ["user:jane@example.com"],
46
+ * });
47
+ * ```
48
+ *
49
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamMember("member", {
56
+ * project: google_bigquery_connection.connection.project,
57
+ * location: google_bigquery_connection.connection.location,
58
+ * connectionId: google_bigquery_connection.connection.connection_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}}/connections/{{connection_id}} * {{project}}/{{location}}/{{connection_id}} * {{location}}/{{connection_id}} * {{connection_id}} Any variables not passed in the import command will be taken from the provider configuration. BigQuery Connection connection 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:bigquery/connectionIamMember:ConnectionIamMember editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamMember:ConnectionIamMember editor "projects/{{project}}/locations/{{location}}/connections/{{connection_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:bigquery/connectionIamMember:ConnectionIamMember editor projects/{{project}}/locations/{{location}}/connections/{{connection_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 ConnectionIamMember extends pulumi.CustomResource {
89
+ /**
90
+ * Get an existing ConnectionIamMember 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?: ConnectionIamMemberState, opts?: pulumi.CustomResourceOptions): ConnectionIamMember;
99
+ /**
100
+ * Returns true if the given object is an instance of ConnectionIamMember. 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 ConnectionIamMember;
104
+ readonly condition: pulumi.Output<outputs.bigquery.ConnectionIamMemberCondition | undefined>;
105
+ /**
106
+ * Optional connection id that should be assigned to the created connection.
107
+ * Used to find the parent resource to bind the IAM policy to
108
+ */
109
+ readonly connectionId: pulumi.Output<string>;
110
+ /**
111
+ * (Computed) The etag of the IAM policy.
112
+ */
113
+ readonly etag: pulumi.Output<string>;
114
+ /**
115
+ * The geographic location where the connection should reside.
116
+ * Cloud SQL instance must be in the same location as the connection
117
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
118
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
119
+ * Spanner Connections same as spanner region
120
+ * AWS allowed regions are aws-us-east-1
121
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
122
+ */
123
+ readonly location: pulumi.Output<string>;
124
+ readonly member: pulumi.Output<string>;
125
+ /**
126
+ * The ID of the project in which the resource belongs.
127
+ * 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.
128
+ */
129
+ readonly project: pulumi.Output<string>;
130
+ /**
131
+ * The role that should be applied. Only one
132
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
133
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
134
+ */
135
+ readonly role: pulumi.Output<string>;
136
+ /**
137
+ * Create a ConnectionIamMember resource with the given unique name, arguments, and options.
138
+ *
139
+ * @param name The _unique_ name of the resource.
140
+ * @param args The arguments to use to populate this resource's properties.
141
+ * @param opts A bag of options that control this resource's behavior.
142
+ */
143
+ constructor(name: string, args: ConnectionIamMemberArgs, opts?: pulumi.CustomResourceOptions);
144
+ }
145
+ /**
146
+ * Input properties used for looking up and filtering ConnectionIamMember resources.
147
+ */
148
+ export interface ConnectionIamMemberState {
149
+ condition?: pulumi.Input<inputs.bigquery.ConnectionIamMemberCondition>;
150
+ /**
151
+ * Optional connection id that should be assigned to the created connection.
152
+ * Used to find the parent resource to bind the IAM policy to
153
+ */
154
+ connectionId?: pulumi.Input<string>;
155
+ /**
156
+ * (Computed) The etag of the IAM policy.
157
+ */
158
+ etag?: pulumi.Input<string>;
159
+ /**
160
+ * The geographic location where the connection should reside.
161
+ * Cloud SQL instance must be in the same location as the connection
162
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
163
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
164
+ * Spanner Connections same as spanner region
165
+ * AWS allowed regions are aws-us-east-1
166
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
167
+ */
168
+ location?: pulumi.Input<string>;
169
+ member?: pulumi.Input<string>;
170
+ /**
171
+ * The ID of the project in which the resource belongs.
172
+ * 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.
173
+ */
174
+ project?: pulumi.Input<string>;
175
+ /**
176
+ * The role that should be applied. Only one
177
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
178
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
179
+ */
180
+ role?: pulumi.Input<string>;
181
+ }
182
+ /**
183
+ * The set of arguments for constructing a ConnectionIamMember resource.
184
+ */
185
+ export interface ConnectionIamMemberArgs {
186
+ condition?: pulumi.Input<inputs.bigquery.ConnectionIamMemberCondition>;
187
+ /**
188
+ * Optional connection id that should be assigned to the created connection.
189
+ * Used to find the parent resource to bind the IAM policy to
190
+ */
191
+ connectionId: pulumi.Input<string>;
192
+ /**
193
+ * The geographic location where the connection should reside.
194
+ * Cloud SQL instance must be in the same location as the connection
195
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
196
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
197
+ * Spanner Connections same as spanner region
198
+ * AWS allowed regions are aws-us-east-1
199
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
200
+ */
201
+ location?: pulumi.Input<string>;
202
+ member: pulumi.Input<string>;
203
+ /**
204
+ * The ID of the project in which the resource belongs.
205
+ * 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.
206
+ */
207
+ project?: pulumi.Input<string>;
208
+ /**
209
+ * The role that should be applied. Only one
210
+ * `gcp.bigquery.ConnectionIamBinding` can be used per role. Note that custom roles must be of the format
211
+ * `[projects|organizations]/{parent-name}/roles/{role-name}`.
212
+ */
213
+ role: pulumi.Input<string>;
214
+ }