@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,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.ConnectionIamMember = 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/connectionIamMember:ConnectionIamMember 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/connectionIamMember:ConnectionIamMember 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/connectionIamMember:ConnectionIamMember 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 ConnectionIamMember 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["member"] = state ? state.member : 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.member === undefined) && !opts.urn) {
113
+ throw new Error("Missing required property 'member'");
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["member"] = args ? args.member : 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(ConnectionIamMember.__pulumiType, name, resourceInputs, opts);
128
+ }
129
+ /**
130
+ * Get an existing ConnectionIamMember 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 ConnectionIamMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
140
+ }
141
+ /**
142
+ * Returns true if the given object is an instance of ConnectionIamMember. 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'] === ConnectionIamMember.__pulumiType;
150
+ }
151
+ }
152
+ exports.ConnectionIamMember = ConnectionIamMember;
153
+ /** @internal */
154
+ ConnectionIamMember.__pulumiType = 'gcp:bigquery/connectionIamMember:ConnectionIamMember';
155
+ //# sourceMappingURL=connectionIamMember.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionIamMember.js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AC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC9C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IArGD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDAuGC;AAzFG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
@@ -0,0 +1,204 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Three different resources help you manage your IAM policy for BigQuery Connection Connection. Each of these resources serves a different use case:
4
+ *
5
+ * * `gcp.bigquery.ConnectionIamPolicy`: Authoritative. Sets the IAM policy for the connection and replaces any existing policy already attached.
6
+ * * `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.
7
+ * * `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.
8
+ *
9
+ * > **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.
10
+ *
11
+ * > **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.
12
+ *
13
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamPolicy("policy", {
26
+ * project: google_bigquery_connection.connection.project,
27
+ * location: google_bigquery_connection.connection.location,
28
+ * connectionId: google_bigquery_connection.connection.connection_id,
29
+ * policyData: admin.then(admin => admin.policyData),
30
+ * });
31
+ * ```
32
+ *
33
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamBinding("binding", {
40
+ * project: google_bigquery_connection.connection.project,
41
+ * location: google_bigquery_connection.connection.location,
42
+ * connectionId: google_bigquery_connection.connection.connection_id,
43
+ * role: "roles/viewer",
44
+ * members: ["user:jane@example.com"],
45
+ * });
46
+ * ```
47
+ *
48
+ * ## google\_bigquery\_connection\_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.bigquery.ConnectionIamMember("member", {
55
+ * project: google_bigquery_connection.connection.project,
56
+ * location: google_bigquery_connection.connection.location,
57
+ * connectionId: google_bigquery_connection.connection.connection_id,
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}}/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.
66
+ *
67
+ * ```sh
68
+ * $ pulumi import gcp:bigquery/connectionIamPolicy:ConnectionIamPolicy editor "projects/{{project}}/locations/{{location}}/connections/{{connection_id}} 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:bigquery/connectionIamPolicy:ConnectionIamPolicy editor "projects/{{project}}/locations/{{location}}/connections/{{connection_id}} 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:bigquery/connectionIamPolicy:ConnectionIamPolicy editor projects/{{project}}/locations/{{location}}/connections/{{connection_id}}
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 ConnectionIamPolicy extends pulumi.CustomResource {
88
+ /**
89
+ * Get an existing ConnectionIamPolicy 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?: ConnectionIamPolicyState, opts?: pulumi.CustomResourceOptions): ConnectionIamPolicy;
98
+ /**
99
+ * Returns true if the given object is an instance of ConnectionIamPolicy. 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 ConnectionIamPolicy;
103
+ /**
104
+ * Optional connection id that should be assigned to the created connection.
105
+ * Used to find the parent resource to bind the IAM policy to
106
+ */
107
+ readonly connectionId: pulumi.Output<string>;
108
+ /**
109
+ * (Computed) The etag of the IAM policy.
110
+ */
111
+ readonly etag: pulumi.Output<string>;
112
+ /**
113
+ * The geographic location where the connection should reside.
114
+ * Cloud SQL instance must be in the same location as the connection
115
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
116
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
117
+ * Spanner Connections same as spanner region
118
+ * AWS allowed regions are aws-us-east-1
119
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
120
+ */
121
+ readonly location: pulumi.Output<string>;
122
+ /**
123
+ * The policy data generated by
124
+ * a `gcp.organizations.getIAMPolicy` data source.
125
+ */
126
+ readonly policyData: pulumi.Output<string>;
127
+ /**
128
+ * The ID of the project in which the resource belongs.
129
+ * 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.
130
+ */
131
+ readonly project: pulumi.Output<string>;
132
+ /**
133
+ * Create a ConnectionIamPolicy resource with the given unique name, arguments, and options.
134
+ *
135
+ * @param name The _unique_ name of the resource.
136
+ * @param args The arguments to use to populate this resource's properties.
137
+ * @param opts A bag of options that control this resource's behavior.
138
+ */
139
+ constructor(name: string, args: ConnectionIamPolicyArgs, opts?: pulumi.CustomResourceOptions);
140
+ }
141
+ /**
142
+ * Input properties used for looking up and filtering ConnectionIamPolicy resources.
143
+ */
144
+ export interface ConnectionIamPolicyState {
145
+ /**
146
+ * Optional connection id that should be assigned to the created connection.
147
+ * Used to find the parent resource to bind the IAM policy to
148
+ */
149
+ connectionId?: pulumi.Input<string>;
150
+ /**
151
+ * (Computed) The etag of the IAM policy.
152
+ */
153
+ etag?: pulumi.Input<string>;
154
+ /**
155
+ * The geographic location where the connection should reside.
156
+ * Cloud SQL instance must be in the same location as the connection
157
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
158
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
159
+ * Spanner Connections same as spanner region
160
+ * AWS allowed regions are aws-us-east-1
161
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
162
+ */
163
+ location?: pulumi.Input<string>;
164
+ /**
165
+ * The policy data generated by
166
+ * a `gcp.organizations.getIAMPolicy` data source.
167
+ */
168
+ policyData?: pulumi.Input<string>;
169
+ /**
170
+ * The ID of the project in which the resource belongs.
171
+ * 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.
172
+ */
173
+ project?: pulumi.Input<string>;
174
+ }
175
+ /**
176
+ * The set of arguments for constructing a ConnectionIamPolicy resource.
177
+ */
178
+ export interface ConnectionIamPolicyArgs {
179
+ /**
180
+ * Optional connection id that should be assigned to the created connection.
181
+ * Used to find the parent resource to bind the IAM policy to
182
+ */
183
+ connectionId: pulumi.Input<string>;
184
+ /**
185
+ * The geographic location where the connection should reside.
186
+ * Cloud SQL instance must be in the same location as the connection
187
+ * with following exceptions: Cloud SQL us-central1 maps to BigQuery US, Cloud SQL europe-west1 maps to BigQuery EU.
188
+ * Examples: US, EU, asia-northeast1, us-central1, europe-west1.
189
+ * Spanner Connections same as spanner region
190
+ * AWS allowed regions are aws-us-east-1
191
+ * Azure allowed regions are azure-eastus2 Used to find the parent resource to bind the IAM policy to
192
+ */
193
+ location?: pulumi.Input<string>;
194
+ /**
195
+ * The policy data generated by
196
+ * a `gcp.organizations.getIAMPolicy` data source.
197
+ */
198
+ policyData: pulumi.Input<string>;
199
+ /**
200
+ * The ID of the project in which the resource belongs.
201
+ * 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.
202
+ */
203
+ project?: pulumi.Input<string>;
204
+ }
@@ -0,0 +1,148 @@
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.ConnectionIamPolicy = 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/connectionIamPolicy:ConnectionIamPolicy 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/connectionIamPolicy:ConnectionIamPolicy 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/connectionIamPolicy:ConnectionIamPolicy 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 ConnectionIamPolicy extends pulumi.CustomResource {
94
+ constructor(name, argsOrState, opts) {
95
+ let resourceInputs = {};
96
+ opts = opts || {};
97
+ if (opts.id) {
98
+ const state = argsOrState;
99
+ resourceInputs["connectionId"] = state ? state.connectionId : undefined;
100
+ resourceInputs["etag"] = state ? state.etag : undefined;
101
+ resourceInputs["location"] = state ? state.location : undefined;
102
+ resourceInputs["policyData"] = state ? state.policyData : undefined;
103
+ resourceInputs["project"] = state ? state.project : undefined;
104
+ }
105
+ else {
106
+ const args = argsOrState;
107
+ if ((!args || args.connectionId === undefined) && !opts.urn) {
108
+ throw new Error("Missing required property 'connectionId'");
109
+ }
110
+ if ((!args || args.policyData === undefined) && !opts.urn) {
111
+ throw new Error("Missing required property 'policyData'");
112
+ }
113
+ resourceInputs["connectionId"] = args ? args.connectionId : undefined;
114
+ resourceInputs["location"] = args ? args.location : undefined;
115
+ resourceInputs["policyData"] = args ? args.policyData : undefined;
116
+ resourceInputs["project"] = args ? args.project : undefined;
117
+ resourceInputs["etag"] = undefined /*out*/;
118
+ }
119
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
120
+ super(ConnectionIamPolicy.__pulumiType, name, resourceInputs, opts);
121
+ }
122
+ /**
123
+ * Get an existing ConnectionIamPolicy resource's state with the given name, ID, and optional extra
124
+ * properties used to qualify the lookup.
125
+ *
126
+ * @param name The _unique_ name of the resulting resource.
127
+ * @param id The _unique_ provider ID of the resource to lookup.
128
+ * @param state Any extra arguments used during the lookup.
129
+ * @param opts Optional settings to control the behavior of the CustomResource.
130
+ */
131
+ static get(name, id, state, opts) {
132
+ return new ConnectionIamPolicy(name, state, Object.assign(Object.assign({}, opts), { id: id }));
133
+ }
134
+ /**
135
+ * Returns true if the given object is an instance of ConnectionIamPolicy. This is designed to work even
136
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
137
+ */
138
+ static isInstance(obj) {
139
+ if (obj === undefined || obj === null) {
140
+ return false;
141
+ }
142
+ return obj['__pulumiType'] === ConnectionIamPolicy.__pulumiType;
143
+ }
144
+ }
145
+ exports.ConnectionIamPolicy = ConnectionIamPolicy;
146
+ /** @internal */
147
+ ConnectionIamPolicy.__pulumiType = 'gcp:bigquery/connectionIamPolicy:ConnectionIamPolicy';
148
+ //# sourceMappingURL=connectionIamPolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connectionIamPolicy.js","sourceRoot":"","sources":["../../bigquery/connectionIamPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAkE1D,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAmD,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,U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SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;IA3FD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,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,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;;AA1BL,kDA6FC;AA/EG,gBAAgB;AACO,gCAAY,GAAG,sDAAsD,CAAC"}
@@ -1,5 +1,8 @@
1
1
  export * from "./appProfile";
2
2
  export * from "./connection";
3
+ export * from "./connectionIamBinding";
4
+ export * from "./connectionIamMember";
5
+ export * from "./connectionIamPolicy";
3
6
  export * from "./dataTransferConfig";
4
7
  export * from "./dataset";
5
8
  export * from "./datasetAccess";
package/bigquery/index.js CHANGED
@@ -21,6 +21,9 @@ const utilities = require("../utilities");
21
21
  // Export members:
22
22
  __exportStar(require("./appProfile"), exports);
23
23
  __exportStar(require("./connection"), exports);
24
+ __exportStar(require("./connectionIamBinding"), exports);
25
+ __exportStar(require("./connectionIamMember"), exports);
26
+ __exportStar(require("./connectionIamPolicy"), exports);
24
27
  __exportStar(require("./dataTransferConfig"), exports);
25
28
  __exportStar(require("./dataset"), exports);
26
29
  __exportStar(require("./datasetAccess"), exports);
@@ -39,6 +42,9 @@ __exportStar(require("./table"), exports);
39
42
  // Import resources to register:
40
43
  const appProfile_1 = require("./appProfile");
41
44
  const connection_1 = require("./connection");
45
+ const connectionIamBinding_1 = require("./connectionIamBinding");
46
+ const connectionIamMember_1 = require("./connectionIamMember");
47
+ const connectionIamPolicy_1 = require("./connectionIamPolicy");
42
48
  const dataTransferConfig_1 = require("./dataTransferConfig");
43
49
  const dataset_1 = require("./dataset");
44
50
  const datasetAccess_1 = require("./datasetAccess");
@@ -61,6 +67,12 @@ const _module = {
61
67
  return new appProfile_1.AppProfile(name, undefined, { urn });
62
68
  case "gcp:bigquery/connection:Connection":
63
69
  return new connection_1.Connection(name, undefined, { urn });
70
+ case "gcp:bigquery/connectionIamBinding:ConnectionIamBinding":
71
+ return new connectionIamBinding_1.ConnectionIamBinding(name, undefined, { urn });
72
+ case "gcp:bigquery/connectionIamMember:ConnectionIamMember":
73
+ return new connectionIamMember_1.ConnectionIamMember(name, undefined, { urn });
74
+ case "gcp:bigquery/connectionIamPolicy:ConnectionIamPolicy":
75
+ return new connectionIamPolicy_1.ConnectionIamPolicy(name, undefined, { urn });
64
76
  case "gcp:bigquery/dataTransferConfig:DataTransferConfig":
65
77
  return new dataTransferConfig_1.DataTransferConfig(name, undefined, { urn });
66
78
  case "gcp:bigquery/dataset:Dataset":
@@ -96,6 +108,9 @@ const _module = {
96
108
  };
97
109
  pulumi.runtime.registerResourceModule("gcp", "bigquery/appProfile", _module);
98
110
  pulumi.runtime.registerResourceModule("gcp", "bigquery/connection", _module);
111
+ pulumi.runtime.registerResourceModule("gcp", "bigquery/connectionIamBinding", _module);
112
+ pulumi.runtime.registerResourceModule("gcp", "bigquery/connectionIamMember", _module);
113
+ pulumi.runtime.registerResourceModule("gcp", "bigquery/connectionIamPolicy", _module);
99
114
  pulumi.runtime.registerResourceModule("gcp", "bigquery/dataTransferConfig", _module);
100
115
  pulumi.runtime.registerResourceModule("gcp", "bigquery/dataset", _module);
101
116
  pulumi.runtime.registerResourceModule("gcp", "bigquery/datasetAccess", _module);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","s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,CAAC,CAAA;AACvF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AACzE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAA"}
@@ -142,6 +142,52 @@ import { input as inputs, output as outputs } from "../types";
142
142
  * },
143
143
  * });
144
144
  * ```
145
+ * ### Billing Budget Customperiod
146
+ *
147
+ * ```typescript
148
+ * import * as pulumi from "@pulumi/pulumi";
149
+ * import * as gcp from "@pulumi/gcp";
150
+ *
151
+ * const account = gcp.organizations.getBillingAccount({
152
+ * billingAccount: "000000-0000000-0000000-000000",
153
+ * });
154
+ * const project = gcp.organizations.getProject({});
155
+ * const budget = new gcp.billing.Budget("budget", {
156
+ * billingAccount: account.then(account => account.id),
157
+ * displayName: "Example Billing Budget",
158
+ * budgetFilter: {
159
+ * projects: [project.then(project => `projects/${project.number}`)],
160
+ * creditTypesTreatment: "EXCLUDE_ALL_CREDITS",
161
+ * services: ["services/24E6-581D-38E5"],
162
+ * customPeriod: {
163
+ * startDate: {
164
+ * year: 2022,
165
+ * month: 1,
166
+ * day: 1,
167
+ * },
168
+ * endDate: {
169
+ * year: 2023,
170
+ * month: 12,
171
+ * day: 31,
172
+ * },
173
+ * },
174
+ * },
175
+ * amount: {
176
+ * specifiedAmount: {
177
+ * currencyCode: "USD",
178
+ * units: "100000",
179
+ * },
180
+ * },
181
+ * thresholdRules: [
182
+ * {
183
+ * thresholdPercent: 0.5,
184
+ * },
185
+ * {
186
+ * thresholdPercent: 0.9,
187
+ * },
188
+ * ],
189
+ * });
190
+ * ```
145
191
  *
146
192
  * ## Import
147
193
  *