@pulumi/gcp 6.44.0-alpha.1669662917 → 6.44.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 (153) hide show
  1. package/alloydb/index.d.ts +3 -0
  2. package/alloydb/index.js +6 -1
  3. package/alloydb/index.js.map +1 -1
  4. package/alloydb/instance.d.ts +322 -0
  5. package/alloydb/instance.js +151 -0
  6. package/alloydb/instance.js.map +1 -0
  7. package/appengine/flexibleAppVersion.d.ts +1 -1
  8. package/beyondcorp/appConnector.d.ts +204 -0
  9. package/beyondcorp/appConnector.js +138 -0
  10. package/beyondcorp/appConnector.js.map +1 -0
  11. package/beyondcorp/appGateway.d.ts +229 -0
  12. package/beyondcorp/appGateway.js +129 -0
  13. package/beyondcorp/appGateway.js.map +1 -0
  14. package/beyondcorp/index.d.ts +6 -0
  15. package/beyondcorp/index.js +27 -0
  16. package/beyondcorp/index.js.map +1 -0
  17. package/bigquery/dataset.d.ts +50 -0
  18. package/bigquery/dataset.js +50 -0
  19. package/bigquery/dataset.js.map +1 -1
  20. package/bigquery/datasetAccess.d.ts +72 -0
  21. package/bigquery/datasetAccess.js +47 -0
  22. package/bigquery/datasetAccess.js.map +1 -1
  23. package/cloudasset/getResourcesSearchAll.d.ts +91 -0
  24. package/cloudasset/getResourcesSearchAll.js +61 -0
  25. package/cloudasset/getResourcesSearchAll.js.map +1 -0
  26. package/cloudasset/index.d.ts +3 -0
  27. package/cloudasset/index.js +4 -1
  28. package/cloudasset/index.js.map +1 -1
  29. package/clouddeploy/deliveryPipeline.d.ts +37 -0
  30. package/clouddeploy/deliveryPipeline.js +37 -0
  31. package/clouddeploy/deliveryPipeline.js.map +1 -1
  32. package/clouddeploy/target.d.ts +48 -3
  33. package/clouddeploy/target.js +35 -0
  34. package/clouddeploy/target.js.map +1 -1
  35. package/cloudidentity/group.d.ts +15 -12
  36. package/cloudidentity/group.js.map +1 -1
  37. package/cloudids/endpoint.d.ts +8 -8
  38. package/cloudids/endpoint.js +2 -2
  39. package/cloudids/endpoint.js.map +1 -1
  40. package/compute/index.d.ts +18 -0
  41. package/compute/index.js +32 -2
  42. package/compute/index.js.map +1 -1
  43. package/compute/networkFirewallPolicy.d.ts +151 -0
  44. package/compute/networkFirewallPolicy.js +96 -0
  45. package/compute/networkFirewallPolicy.js.map +1 -0
  46. package/compute/networkFirewallPolicyAssociation.d.ts +125 -0
  47. package/compute/networkFirewallPolicyAssociation.js +96 -0
  48. package/compute/networkFirewallPolicyAssociation.js.map +1 -0
  49. package/compute/networkFirewallPolicyRule.d.ts +264 -0
  50. package/compute/networkFirewallPolicyRule.js +156 -0
  51. package/compute/networkFirewallPolicyRule.js.map +1 -0
  52. package/compute/regionNetworkFirewallPolicy.d.ts +168 -0
  53. package/compute/regionNetworkFirewallPolicy.js +103 -0
  54. package/compute/regionNetworkFirewallPolicy.js.map +1 -0
  55. package/compute/regionNetworkFirewallPolicyAssociation.d.ts +139 -0
  56. package/compute/regionNetworkFirewallPolicyAssociation.js +100 -0
  57. package/compute/regionNetworkFirewallPolicyAssociation.js.map +1 -0
  58. package/compute/regionNetworkFirewallPolicyRule.d.ts +282 -0
  59. package/compute/regionNetworkFirewallPolicyRule.js +164 -0
  60. package/compute/regionNetworkFirewallPolicyRule.js.map +1 -0
  61. package/compute/regionUrlMap.d.ts +24 -0
  62. package/compute/regionUrlMap.js +2 -0
  63. package/compute/regionUrlMap.js.map +1 -1
  64. package/compute/routerInterface.d.ts +18 -0
  65. package/compute/routerInterface.js +2 -0
  66. package/compute/routerInterface.js.map +1 -1
  67. package/config/vars.d.ts +2 -0
  68. package/config/vars.js +12 -0
  69. package/config/vars.js.map +1 -1
  70. package/container/cluster.d.ts +3 -3
  71. package/container/nodePool.d.ts +3 -6
  72. package/container/nodePool.js.map +1 -1
  73. package/datafusion/instance.d.ts +28 -0
  74. package/datafusion/instance.js +18 -0
  75. package/datafusion/instance.js.map +1 -1
  76. package/dataloss/preventionJobTrigger.d.ts +84 -2
  77. package/dataloss/preventionJobTrigger.js +84 -2
  78. package/dataloss/preventionJobTrigger.js.map +1 -1
  79. package/dns/managedZone.d.ts +63 -0
  80. package/dns/managedZone.js +63 -0
  81. package/dns/managedZone.js.map +1 -1
  82. package/dns/responsePolicy.d.ts +61 -0
  83. package/dns/responsePolicy.js +48 -0
  84. package/dns/responsePolicy.js.map +1 -1
  85. package/eventarc/channel.d.ts +201 -0
  86. package/eventarc/channel.js +123 -0
  87. package/eventarc/channel.js.map +1 -0
  88. package/eventarc/index.d.ts +3 -0
  89. package/eventarc/index.js +6 -1
  90. package/eventarc/index.js.map +1 -1
  91. package/eventarc/trigger.d.ts +24 -0
  92. package/eventarc/trigger.js +4 -0
  93. package/eventarc/trigger.js.map +1 -1
  94. package/firebase/androidApp.d.ts +4 -4
  95. package/firebase/appleApp.d.ts +188 -0
  96. package/firebase/appleApp.js +119 -0
  97. package/firebase/appleApp.js.map +1 -0
  98. package/firebase/hostingChannel.d.ts +195 -0
  99. package/firebase/hostingChannel.js +125 -0
  100. package/firebase/hostingChannel.js.map +1 -0
  101. package/firebase/hostingSite.d.ts +167 -0
  102. package/firebase/hostingSite.js +114 -0
  103. package/firebase/hostingSite.js.map +1 -0
  104. package/firebase/index.d.ts +9 -0
  105. package/firebase/index.js +16 -1
  106. package/firebase/index.js.map +1 -1
  107. package/firebase/project.d.ts +0 -1
  108. package/firebase/project.js +0 -1
  109. package/firebase/project.js.map +1 -1
  110. package/firebase/projectLocation.d.ts +0 -2
  111. package/firebase/projectLocation.js +0 -2
  112. package/firebase/projectLocation.js.map +1 -1
  113. package/firebase/webApp.d.ts +4 -4
  114. package/gkehub/featureMembership.d.ts +50 -2
  115. package/gkehub/featureMembership.js +38 -3
  116. package/gkehub/featureMembership.js.map +1 -1
  117. package/iam/getWorkloadIdentityPool.d.ts +1 -1
  118. package/iam/getWorkloadIdentityPool.js +1 -1
  119. package/identityplatform/index.d.ts +3 -0
  120. package/identityplatform/index.js +6 -1
  121. package/identityplatform/index.js.map +1 -1
  122. package/identityplatform/projectDefaultConfig.d.ts +128 -0
  123. package/identityplatform/projectDefaultConfig.js +105 -0
  124. package/identityplatform/projectDefaultConfig.js.map +1 -0
  125. package/index.d.ts +2 -1
  126. package/index.js +4 -2
  127. package/index.js.map +1 -1
  128. package/networkservices/edgeCacheKeyset.d.ts +66 -9
  129. package/networkservices/edgeCacheKeyset.js +29 -3
  130. package/networkservices/edgeCacheKeyset.js.map +1 -1
  131. package/networkservices/edgeCacheOrigin.d.ts +41 -0
  132. package/networkservices/edgeCacheOrigin.js +28 -0
  133. package/networkservices/edgeCacheOrigin.js.map +1 -1
  134. package/package.json +2 -2
  135. package/package.json.dev +2 -2
  136. package/provider.d.ts +4 -0
  137. package/provider.js +2 -0
  138. package/provider.js.map +1 -1
  139. package/redis/instance.d.ts +3 -3
  140. package/storage/index.d.ts +3 -0
  141. package/storage/index.js +6 -1
  142. package/storage/index.js.map +1 -1
  143. package/storage/transferAgentPool.d.ts +171 -0
  144. package/storage/transferAgentPool.js +107 -0
  145. package/storage/transferAgentPool.js.map +1 -0
  146. package/types/input.d.ts +1006 -193
  147. package/types/output.d.ts +1108 -214
  148. package/vertex/aiFeatureStoreEntityType.d.ts +31 -0
  149. package/vertex/aiFeatureStoreEntityType.js +25 -0
  150. package/vertex/aiFeatureStoreEntityType.js.map +1 -1
  151. package/vertex/aiFeatureStoreEntityTypeFeature.d.ts +6 -0
  152. package/vertex/aiFeatureStoreEntityTypeFeature.js +6 -0
  153. package/vertex/aiFeatureStoreEntityTypeFeature.js.map +1 -1
@@ -1,3 +1,6 @@
1
1
  export { ClusterArgs, ClusterState } from "./cluster";
2
2
  export type Cluster = import("./cluster").Cluster;
3
3
  export declare const Cluster: typeof import("./cluster").Cluster;
4
+ export { InstanceArgs, InstanceState } from "./instance";
5
+ export type Instance = import("./instance").Instance;
6
+ export declare const Instance: typeof import("./instance").Instance;
package/alloydb/index.js CHANGED
@@ -2,21 +2,26 @@
2
2
  // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.Cluster = void 0;
5
+ exports.Instance = exports.Cluster = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.Cluster = null;
9
9
  utilities.lazyLoad(exports, ["Cluster"], () => require("./cluster"));
10
+ exports.Instance = null;
11
+ utilities.lazyLoad(exports, ["Instance"], () => require("./instance"));
10
12
  const _module = {
11
13
  version: utilities.getVersion(),
12
14
  construct: (name, type, urn) => {
13
15
  switch (type) {
14
16
  case "gcp:alloydb/cluster:Cluster":
15
17
  return new exports.Cluster(name, undefined, { urn });
18
+ case "gcp:alloydb/instance:Instance":
19
+ return new exports.Instance(name, undefined, { urn });
16
20
  default:
17
21
  throw new Error(`unknown resource type ${type}`);
18
22
  }
19
23
  },
20
24
  };
21
25
  pulumi.runtime.registerResourceModule("gcp", "alloydb/cluster", _module);
26
+ pulumi.runtime.registerResourceModule("gcp", "alloydb/instance", _module);
22
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../alloydb/index.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAK7B,QAAA,OAAO,GAAuC,IAAW,CAAC;AACvE,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;AAGrE,MAAM,OAAO,GAAG;IACZ,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE;IAC/B,SAAS,EAAE,CAAC,IAAY,EAAE,IAAY,EAAE,GAAW,EAAmB,EAAE;QACpE,QAAQ,IAAI,EAAE;YACV,KAAK,6BAA6B;gBAC9B,OAAO,IAAI,eAAO,CAAC,IAAI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AO,CAAC,CAAA;AACxE,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA"}
@@ -0,0 +1,322 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * ## Example Usage
6
+ * ### Alloydb Instance Basic
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as gcp from "@pulumi/gcp";
11
+ *
12
+ * const project = gcp.organizations.getProject({});
13
+ * const defaultNetwork = new gcp.compute.Network("defaultNetwork", {}, {
14
+ * provider: google_beta,
15
+ * });
16
+ * const defaultCluster = new gcp.alloydb.Cluster("defaultCluster", {
17
+ * clusterId: "alloydb-cluster",
18
+ * location: "us-central1",
19
+ * network: pulumi.all([project, defaultNetwork.name]).apply(([project, name]) => `projects/${project.number}/global/networks/${name}`),
20
+ * initialUser: {
21
+ * password: "alloydb-cluster",
22
+ * },
23
+ * }, {
24
+ * provider: google_beta,
25
+ * });
26
+ * const privateIpAlloc = new gcp.compute.GlobalAddress("privateIpAlloc", {
27
+ * addressType: "INTERNAL",
28
+ * purpose: "VPC_PEERING",
29
+ * prefixLength: 16,
30
+ * network: defaultNetwork.id,
31
+ * }, {
32
+ * provider: google_beta,
33
+ * });
34
+ * const vpcConnection = new gcp.servicenetworking.Connection("vpcConnection", {
35
+ * network: defaultNetwork.id,
36
+ * service: "servicenetworking.googleapis.com",
37
+ * reservedPeeringRanges: [privateIpAlloc.name],
38
+ * }, {
39
+ * provider: google_beta,
40
+ * });
41
+ * const defaultInstance = new gcp.alloydb.Instance("defaultInstance", {
42
+ * cluster: defaultCluster.name,
43
+ * instanceId: "alloydb-instance",
44
+ * instanceType: "PRIMARY",
45
+ * }, {
46
+ * provider: google_beta,
47
+ * dependsOn: [vpcConnection],
48
+ * });
49
+ * ```
50
+ *
51
+ * ## Import
52
+ *
53
+ * Instance can be imported using any of these accepted formats
54
+ *
55
+ * ```sh
56
+ * $ pulumi import gcp:alloydb/instance:Instance default {{cluster}}/instances/{{instance_id}}
57
+ * ```
58
+ *
59
+ * ```sh
60
+ * $ pulumi import gcp:alloydb/instance:Instance default {{cluster}}/{{instance_id}}
61
+ * ```
62
+ */
63
+ export declare class Instance extends pulumi.CustomResource {
64
+ /**
65
+ * Get an existing Instance resource's state with the given name, ID, and optional extra
66
+ * properties used to qualify the lookup.
67
+ *
68
+ * @param name The _unique_ name of the resulting resource.
69
+ * @param id The _unique_ provider ID of the resource to lookup.
70
+ * @param state Any extra arguments used during the lookup.
71
+ * @param opts Optional settings to control the behavior of the CustomResource.
72
+ */
73
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance;
74
+ /**
75
+ * Returns true if the given object is an instance of Instance. This is designed to work even
76
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
77
+ */
78
+ static isInstance(obj: any): obj is Instance;
79
+ /**
80
+ * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels.
81
+ */
82
+ readonly annotations: pulumi.Output<{
83
+ [key: string]: string;
84
+ } | undefined>;
85
+ /**
86
+ * Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types.
87
+ * Possible values are `AVAILABILITY_TYPE_UNSPECIFIED`, `ZONAL`, and `REGIONAL`.
88
+ */
89
+ readonly availabilityType: pulumi.Output<string>;
90
+ /**
91
+ * Identifies the alloydb cluster. Must be in the format
92
+ * 'projects/{project}/locations/{location}/clusters/{cluster_id}'
93
+ */
94
+ readonly cluster: pulumi.Output<string>;
95
+ /**
96
+ * Time the Instance was created in UTC.
97
+ */
98
+ readonly createTime: pulumi.Output<string>;
99
+ /**
100
+ * Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.
101
+ */
102
+ readonly databaseFlags: pulumi.Output<{
103
+ [key: string]: string;
104
+ } | undefined>;
105
+ /**
106
+ * User-settable and human-readable display name for the Instance.
107
+ */
108
+ readonly displayName: pulumi.Output<string | undefined>;
109
+ /**
110
+ * The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
111
+ */
112
+ readonly gceZone: pulumi.Output<string | undefined>;
113
+ /**
114
+ * The ID of the alloydb instance.
115
+ */
116
+ readonly instanceId: pulumi.Output<string>;
117
+ /**
118
+ * The type of the instance.
119
+ * Possible values are `PRIMARY` and `READ_POOL`.
120
+ */
121
+ readonly instanceType: pulumi.Output<string>;
122
+ /**
123
+ * The IP address for the Instance. This is the connection endpoint for an end-user application.
124
+ */
125
+ readonly ipAddress: pulumi.Output<string>;
126
+ /**
127
+ * User-defined labels for the alloydb instance.
128
+ */
129
+ readonly labels: pulumi.Output<{
130
+ [key: string]: string;
131
+ } | undefined>;
132
+ /**
133
+ * Configurations for the machines that host the underlying database engine.
134
+ * Structure is documented below.
135
+ */
136
+ readonly machineConfig: pulumi.Output<outputs.alloydb.InstanceMachineConfig>;
137
+ /**
138
+ * The name of the instance resource.
139
+ */
140
+ readonly name: pulumi.Output<string>;
141
+ /**
142
+ * Read pool specific config.
143
+ * Structure is documented below.
144
+ */
145
+ readonly readPoolConfig: pulumi.Output<outputs.alloydb.InstanceReadPoolConfig | undefined>;
146
+ /**
147
+ * Set to true if the current state of Instance does not match the user's intended state, and the service is actively
148
+ * updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover
149
+ * or maintenance.
150
+ */
151
+ readonly reconciling: pulumi.Output<boolean>;
152
+ /**
153
+ * The current state of the alloydb instance.
154
+ */
155
+ readonly state: pulumi.Output<string>;
156
+ /**
157
+ * The system-generated UID of the resource.
158
+ */
159
+ readonly uid: pulumi.Output<string>;
160
+ /**
161
+ * Time the Instance was updated in UTC.
162
+ */
163
+ readonly updateTime: pulumi.Output<string>;
164
+ /**
165
+ * Create a Instance resource with the given unique name, arguments, and options.
166
+ *
167
+ * @param name The _unique_ name of the resource.
168
+ * @param args The arguments to use to populate this resource's properties.
169
+ * @param opts A bag of options that control this resource's behavior.
170
+ */
171
+ constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions);
172
+ }
173
+ /**
174
+ * Input properties used for looking up and filtering Instance resources.
175
+ */
176
+ export interface InstanceState {
177
+ /**
178
+ * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels.
179
+ */
180
+ annotations?: pulumi.Input<{
181
+ [key: string]: pulumi.Input<string>;
182
+ }>;
183
+ /**
184
+ * Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types.
185
+ * Possible values are `AVAILABILITY_TYPE_UNSPECIFIED`, `ZONAL`, and `REGIONAL`.
186
+ */
187
+ availabilityType?: pulumi.Input<string>;
188
+ /**
189
+ * Identifies the alloydb cluster. Must be in the format
190
+ * 'projects/{project}/locations/{location}/clusters/{cluster_id}'
191
+ */
192
+ cluster?: pulumi.Input<string>;
193
+ /**
194
+ * Time the Instance was created in UTC.
195
+ */
196
+ createTime?: pulumi.Input<string>;
197
+ /**
198
+ * Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.
199
+ */
200
+ databaseFlags?: pulumi.Input<{
201
+ [key: string]: pulumi.Input<string>;
202
+ }>;
203
+ /**
204
+ * User-settable and human-readable display name for the Instance.
205
+ */
206
+ displayName?: pulumi.Input<string>;
207
+ /**
208
+ * The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
209
+ */
210
+ gceZone?: pulumi.Input<string>;
211
+ /**
212
+ * The ID of the alloydb instance.
213
+ */
214
+ instanceId?: pulumi.Input<string>;
215
+ /**
216
+ * The type of the instance.
217
+ * Possible values are `PRIMARY` and `READ_POOL`.
218
+ */
219
+ instanceType?: pulumi.Input<string>;
220
+ /**
221
+ * The IP address for the Instance. This is the connection endpoint for an end-user application.
222
+ */
223
+ ipAddress?: pulumi.Input<string>;
224
+ /**
225
+ * User-defined labels for the alloydb instance.
226
+ */
227
+ labels?: pulumi.Input<{
228
+ [key: string]: pulumi.Input<string>;
229
+ }>;
230
+ /**
231
+ * Configurations for the machines that host the underlying database engine.
232
+ * Structure is documented below.
233
+ */
234
+ machineConfig?: pulumi.Input<inputs.alloydb.InstanceMachineConfig>;
235
+ /**
236
+ * The name of the instance resource.
237
+ */
238
+ name?: pulumi.Input<string>;
239
+ /**
240
+ * Read pool specific config.
241
+ * Structure is documented below.
242
+ */
243
+ readPoolConfig?: pulumi.Input<inputs.alloydb.InstanceReadPoolConfig>;
244
+ /**
245
+ * Set to true if the current state of Instance does not match the user's intended state, and the service is actively
246
+ * updating the resource to reconcile them. This can happen due to user-triggered updates or system actions like failover
247
+ * or maintenance.
248
+ */
249
+ reconciling?: pulumi.Input<boolean>;
250
+ /**
251
+ * The current state of the alloydb instance.
252
+ */
253
+ state?: pulumi.Input<string>;
254
+ /**
255
+ * The system-generated UID of the resource.
256
+ */
257
+ uid?: pulumi.Input<string>;
258
+ /**
259
+ * Time the Instance was updated in UTC.
260
+ */
261
+ updateTime?: pulumi.Input<string>;
262
+ }
263
+ /**
264
+ * The set of arguments for constructing a Instance resource.
265
+ */
266
+ export interface InstanceArgs {
267
+ /**
268
+ * Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels.
269
+ */
270
+ annotations?: pulumi.Input<{
271
+ [key: string]: pulumi.Input<string>;
272
+ }>;
273
+ /**
274
+ * Availability type of an Instance. Defaults to REGIONAL for both primary and read instances. Note that primary and read instances can have different availability types.
275
+ * Possible values are `AVAILABILITY_TYPE_UNSPECIFIED`, `ZONAL`, and `REGIONAL`.
276
+ */
277
+ availabilityType?: pulumi.Input<string>;
278
+ /**
279
+ * Identifies the alloydb cluster. Must be in the format
280
+ * 'projects/{project}/locations/{location}/clusters/{cluster_id}'
281
+ */
282
+ cluster: pulumi.Input<string>;
283
+ /**
284
+ * Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary.
285
+ */
286
+ databaseFlags?: pulumi.Input<{
287
+ [key: string]: pulumi.Input<string>;
288
+ }>;
289
+ /**
290
+ * User-settable and human-readable display name for the Instance.
291
+ */
292
+ displayName?: pulumi.Input<string>;
293
+ /**
294
+ * The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity.
295
+ */
296
+ gceZone?: pulumi.Input<string>;
297
+ /**
298
+ * The ID of the alloydb instance.
299
+ */
300
+ instanceId: pulumi.Input<string>;
301
+ /**
302
+ * The type of the instance.
303
+ * Possible values are `PRIMARY` and `READ_POOL`.
304
+ */
305
+ instanceType: pulumi.Input<string>;
306
+ /**
307
+ * User-defined labels for the alloydb instance.
308
+ */
309
+ labels?: pulumi.Input<{
310
+ [key: string]: pulumi.Input<string>;
311
+ }>;
312
+ /**
313
+ * Configurations for the machines that host the underlying database engine.
314
+ * Structure is documented below.
315
+ */
316
+ machineConfig?: pulumi.Input<inputs.alloydb.InstanceMachineConfig>;
317
+ /**
318
+ * Read pool specific config.
319
+ * Structure is documented below.
320
+ */
321
+ readPoolConfig?: pulumi.Input<inputs.alloydb.InstanceReadPoolConfig>;
322
+ }
@@ -0,0 +1,151 @@
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.Instance = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * ## Example Usage
10
+ * ### Alloydb Instance Basic
11
+ *
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as gcp from "@pulumi/gcp";
15
+ *
16
+ * const project = gcp.organizations.getProject({});
17
+ * const defaultNetwork = new gcp.compute.Network("defaultNetwork", {}, {
18
+ * provider: google_beta,
19
+ * });
20
+ * const defaultCluster = new gcp.alloydb.Cluster("defaultCluster", {
21
+ * clusterId: "alloydb-cluster",
22
+ * location: "us-central1",
23
+ * network: pulumi.all([project, defaultNetwork.name]).apply(([project, name]) => `projects/${project.number}/global/networks/${name}`),
24
+ * initialUser: {
25
+ * password: "alloydb-cluster",
26
+ * },
27
+ * }, {
28
+ * provider: google_beta,
29
+ * });
30
+ * const privateIpAlloc = new gcp.compute.GlobalAddress("privateIpAlloc", {
31
+ * addressType: "INTERNAL",
32
+ * purpose: "VPC_PEERING",
33
+ * prefixLength: 16,
34
+ * network: defaultNetwork.id,
35
+ * }, {
36
+ * provider: google_beta,
37
+ * });
38
+ * const vpcConnection = new gcp.servicenetworking.Connection("vpcConnection", {
39
+ * network: defaultNetwork.id,
40
+ * service: "servicenetworking.googleapis.com",
41
+ * reservedPeeringRanges: [privateIpAlloc.name],
42
+ * }, {
43
+ * provider: google_beta,
44
+ * });
45
+ * const defaultInstance = new gcp.alloydb.Instance("defaultInstance", {
46
+ * cluster: defaultCluster.name,
47
+ * instanceId: "alloydb-instance",
48
+ * instanceType: "PRIMARY",
49
+ * }, {
50
+ * provider: google_beta,
51
+ * dependsOn: [vpcConnection],
52
+ * });
53
+ * ```
54
+ *
55
+ * ## Import
56
+ *
57
+ * Instance can be imported using any of these accepted formats
58
+ *
59
+ * ```sh
60
+ * $ pulumi import gcp:alloydb/instance:Instance default {{cluster}}/instances/{{instance_id}}
61
+ * ```
62
+ *
63
+ * ```sh
64
+ * $ pulumi import gcp:alloydb/instance:Instance default {{cluster}}/{{instance_id}}
65
+ * ```
66
+ */
67
+ class Instance extends pulumi.CustomResource {
68
+ /**
69
+ * Get an existing Instance resource's state with the given name, ID, and optional extra
70
+ * properties used to qualify the lookup.
71
+ *
72
+ * @param name The _unique_ name of the resulting resource.
73
+ * @param id The _unique_ provider ID of the resource to lookup.
74
+ * @param state Any extra arguments used during the lookup.
75
+ * @param opts Optional settings to control the behavior of the CustomResource.
76
+ */
77
+ static get(name, id, state, opts) {
78
+ return new Instance(name, state, Object.assign(Object.assign({}, opts), { id: id }));
79
+ }
80
+ /**
81
+ * Returns true if the given object is an instance of Instance. This is designed to work even
82
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
83
+ */
84
+ static isInstance(obj) {
85
+ if (obj === undefined || obj === null) {
86
+ return false;
87
+ }
88
+ return obj['__pulumiType'] === Instance.__pulumiType;
89
+ }
90
+ constructor(name, argsOrState, opts) {
91
+ let resourceInputs = {};
92
+ opts = opts || {};
93
+ if (opts.id) {
94
+ const state = argsOrState;
95
+ resourceInputs["annotations"] = state ? state.annotations : undefined;
96
+ resourceInputs["availabilityType"] = state ? state.availabilityType : undefined;
97
+ resourceInputs["cluster"] = state ? state.cluster : undefined;
98
+ resourceInputs["createTime"] = state ? state.createTime : undefined;
99
+ resourceInputs["databaseFlags"] = state ? state.databaseFlags : undefined;
100
+ resourceInputs["displayName"] = state ? state.displayName : undefined;
101
+ resourceInputs["gceZone"] = state ? state.gceZone : undefined;
102
+ resourceInputs["instanceId"] = state ? state.instanceId : undefined;
103
+ resourceInputs["instanceType"] = state ? state.instanceType : undefined;
104
+ resourceInputs["ipAddress"] = state ? state.ipAddress : undefined;
105
+ resourceInputs["labels"] = state ? state.labels : undefined;
106
+ resourceInputs["machineConfig"] = state ? state.machineConfig : undefined;
107
+ resourceInputs["name"] = state ? state.name : undefined;
108
+ resourceInputs["readPoolConfig"] = state ? state.readPoolConfig : undefined;
109
+ resourceInputs["reconciling"] = state ? state.reconciling : undefined;
110
+ resourceInputs["state"] = state ? state.state : undefined;
111
+ resourceInputs["uid"] = state ? state.uid : undefined;
112
+ resourceInputs["updateTime"] = state ? state.updateTime : undefined;
113
+ }
114
+ else {
115
+ const args = argsOrState;
116
+ if ((!args || args.cluster === undefined) && !opts.urn) {
117
+ throw new Error("Missing required property 'cluster'");
118
+ }
119
+ if ((!args || args.instanceId === undefined) && !opts.urn) {
120
+ throw new Error("Missing required property 'instanceId'");
121
+ }
122
+ if ((!args || args.instanceType === undefined) && !opts.urn) {
123
+ throw new Error("Missing required property 'instanceType'");
124
+ }
125
+ resourceInputs["annotations"] = args ? args.annotations : undefined;
126
+ resourceInputs["availabilityType"] = args ? args.availabilityType : undefined;
127
+ resourceInputs["cluster"] = args ? args.cluster : undefined;
128
+ resourceInputs["databaseFlags"] = args ? args.databaseFlags : undefined;
129
+ resourceInputs["displayName"] = args ? args.displayName : undefined;
130
+ resourceInputs["gceZone"] = args ? args.gceZone : undefined;
131
+ resourceInputs["instanceId"] = args ? args.instanceId : undefined;
132
+ resourceInputs["instanceType"] = args ? args.instanceType : undefined;
133
+ resourceInputs["labels"] = args ? args.labels : undefined;
134
+ resourceInputs["machineConfig"] = args ? args.machineConfig : undefined;
135
+ resourceInputs["readPoolConfig"] = args ? args.readPoolConfig : undefined;
136
+ resourceInputs["createTime"] = undefined /*out*/;
137
+ resourceInputs["ipAddress"] = undefined /*out*/;
138
+ resourceInputs["name"] = undefined /*out*/;
139
+ resourceInputs["reconciling"] = undefined /*out*/;
140
+ resourceInputs["state"] = undefined /*out*/;
141
+ resourceInputs["uid"] = undefined /*out*/;
142
+ resourceInputs["updateTime"] = undefined /*out*/;
143
+ }
144
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
145
+ super(Instance.__pulumiType, name, resourceInputs, opts);
146
+ }
147
+ }
148
+ exports.Instance = Instance;
149
+ /** @internal */
150
+ Instance.__pulumiType = 'gcp:alloydb/instance:Instance';
151
+ //# sourceMapp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AC;YAC5C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA3KL,4BA4KC;AA9JG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
@@ -272,7 +272,7 @@ export declare class FlexibleAppVersion extends pulumi.CustomResource {
272
272
  * The identity that the deployed version will run as. Admin API will use the App Engine Appspot service account as
273
273
  * default if this field is neither provided in app.yaml file nor through CLI flag.
274
274
  */
275
- readonly serviceAccount: pulumi.Output<string | undefined>;
275
+ readonly serviceAccount: pulumi.Output<string>;
276
276
  /**
277
277
  * Current serving status of this version. Only the versions with a SERVING status create instances and can be billed.
278
278
  * Default value is `SERVING`.