@pulumi/databricks 1.83.0-alpha.1768973755 → 1.83.0-alpha.1769140245
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.
- package/accountSettingUserPreferenceV2.d.ts +143 -0
- package/accountSettingUserPreferenceV2.js +118 -0
- package/accountSettingUserPreferenceV2.js.map +1 -0
- package/cluster.d.ts +6 -0
- package/cluster.js +4 -0
- package/cluster.js.map +1 -1
- package/getAccountSettingUserPreferenceV2.d.ts +73 -0
- package/getAccountSettingUserPreferenceV2.js +34 -0
- package/getAccountSettingUserPreferenceV2.js.map +1 -0
- package/getPostgresBranch.d.ts +43 -11
- package/getPostgresBranch.js +34 -2
- package/getPostgresBranch.js.map +1 -1
- package/getPostgresBranches.d.ts +37 -5
- package/getPostgresBranches.js +34 -2
- package/getPostgresBranches.js.map +1 -1
- package/getPostgresEndpoint.d.ts +44 -12
- package/getPostgresEndpoint.js +34 -2
- package/getPostgresEndpoint.js.map +1 -1
- package/getPostgresEndpoints.d.ts +39 -5
- package/getPostgresEndpoints.js +36 -2
- package/getPostgresEndpoints.js.map +1 -1
- package/getPostgresProject.d.ts +46 -10
- package/getPostgresProject.js +38 -2
- package/getPostgresProject.js.map +1 -1
- package/getPostgresProjects.d.ts +32 -4
- package/getPostgresProjects.js +30 -2
- package/getPostgresProjects.js.map +1 -1
- package/getQualityMonitorV2.d.ts +8 -0
- package/getQualityMonitorV2.js +8 -0
- package/getQualityMonitorV2.js.map +1 -1
- package/getQualityMonitorsV2.d.ts +8 -0
- package/getQualityMonitorsV2.js +8 -0
- package/getQualityMonitorsV2.js.map +1 -1
- package/getWarehousesDefaultWarehouseOverride.d.ts +78 -0
- package/getWarehousesDefaultWarehouseOverride.js +50 -0
- package/getWarehousesDefaultWarehouseOverride.js.map +1 -0
- package/getWarehousesDefaultWarehouseOverrides.d.ts +57 -0
- package/getWarehousesDefaultWarehouseOverrides.js +42 -0
- package/getWarehousesDefaultWarehouseOverrides.js.map +1 -0
- package/gitCredential.d.ts +3 -0
- package/gitCredential.js +2 -0
- package/gitCredential.js.map +1 -1
- package/index.d.ts +15 -0
- package/index.js +27 -8
- package/index.js.map +1 -1
- package/mwsWorkspaces.d.ts +3 -3
- package/package.json +2 -2
- package/postgresBranch.d.ts +92 -25
- package/postgresBranch.js +56 -1
- package/postgresBranch.js.map +1 -1
- package/postgresEndpoint.d.ts +176 -27
- package/postgresEndpoint.js +147 -1
- package/postgresEndpoint.js.map +1 -1
- package/postgresProject.d.ts +85 -22
- package/postgresProject.js +61 -1
- package/postgresProject.js.map +1 -1
- package/qualityMonitorV2.d.ts +4 -0
- package/qualityMonitorV2.js +4 -0
- package/qualityMonitorV2.js.map +1 -1
- package/types/input.d.ts +161 -56
- package/types/output.d.ts +300 -173
- package/warehousesDefaultWarehouseOverride.d.ts +146 -0
- package/warehousesDefaultWarehouseOverride.js +122 -0
- package/warehousesDefaultWarehouseOverride.js.map +1 -0
package/postgresBranch.d.ts
CHANGED
|
@@ -2,7 +2,62 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Basic Branch Creation
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* const _this = new databricks.PostgresProject("this", {
|
|
16
|
+
* projectId: "my-project",
|
|
17
|
+
* spec: {
|
|
18
|
+
* pgVersion: 17,
|
|
19
|
+
* displayName: "My Project",
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* const dev = new databricks.PostgresBranch("dev", {
|
|
23
|
+
* branchId: "dev-branch",
|
|
24
|
+
* parent: _this.name,
|
|
25
|
+
* spec: {
|
|
26
|
+
* noExpiry: true,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ### Protected Branch
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as databricks from "@pulumi/databricks";
|
|
36
|
+
*
|
|
37
|
+
* const production = new databricks.PostgresBranch("production", {
|
|
38
|
+
* branchId: "production",
|
|
39
|
+
* parent: _this.name,
|
|
40
|
+
* spec: {
|
|
41
|
+
* isProtected: true,
|
|
42
|
+
* noExpiry: true,
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* ### Branch with Expiration (TTL)
|
|
48
|
+
*
|
|
49
|
+
* ```typescript
|
|
50
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
51
|
+
* import * as databricks from "@pulumi/databricks";
|
|
52
|
+
*
|
|
53
|
+
* const temporary = new databricks.PostgresBranch("temporary", {
|
|
54
|
+
* branchId: "temp-feature-test",
|
|
55
|
+
* parent: _this.name,
|
|
56
|
+
* spec: {
|
|
57
|
+
* ttl: "604800s",
|
|
58
|
+
* },
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
6
61
|
*
|
|
7
62
|
* ## Import
|
|
8
63
|
*
|
|
@@ -41,10 +96,11 @@ export declare class PostgresBranch extends pulumi.CustomResource {
|
|
|
41
96
|
*/
|
|
42
97
|
static isInstance(obj: any): obj is PostgresBranch;
|
|
43
98
|
/**
|
|
44
|
-
* The ID to use for the Branch
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
99
|
+
* The ID to use for the Branch. This becomes the final component of the branch's resource name.
|
|
100
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
101
|
+
* Examples:
|
|
102
|
+
* - With custom ID: `staging` → name becomes `projects/{project_id}/branches/staging`
|
|
103
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/br-example-name-x1y2z3a4`
|
|
48
104
|
*/
|
|
49
105
|
readonly branchId: pulumi.Output<string>;
|
|
50
106
|
/**
|
|
@@ -52,17 +108,20 @@ export declare class PostgresBranch extends pulumi.CustomResource {
|
|
|
52
108
|
*/
|
|
53
109
|
readonly createTime: pulumi.Output<string>;
|
|
54
110
|
/**
|
|
55
|
-
* (string) - The resource name of the branch.
|
|
56
|
-
* Format: projects/{project_id}/branches/{branch_id}
|
|
111
|
+
* (string) - The resource name of the branch. This field is output-only and constructed by the system.
|
|
112
|
+
* Format: `projects/{project_id}/branches/{branch_id}`
|
|
57
113
|
*/
|
|
58
114
|
readonly name: pulumi.Output<string>;
|
|
59
115
|
/**
|
|
60
|
-
* The project containing this branch.
|
|
116
|
+
* The project containing this branch (API resource hierarchy).
|
|
61
117
|
* Format: projects/{project_id}
|
|
118
|
+
*
|
|
119
|
+
* Note: This field indicates where the branch exists in the resource hierarchy.
|
|
120
|
+
* For point-in-time branching from another branch, see `spec.source_branch`
|
|
62
121
|
*/
|
|
63
122
|
readonly parent: pulumi.Output<string>;
|
|
64
123
|
/**
|
|
65
|
-
* The
|
|
124
|
+
* The spec contains the branch configuration
|
|
66
125
|
*/
|
|
67
126
|
readonly spec: pulumi.Output<outputs.PostgresBranchSpec>;
|
|
68
127
|
/**
|
|
@@ -70,7 +129,7 @@ export declare class PostgresBranch extends pulumi.CustomResource {
|
|
|
70
129
|
*/
|
|
71
130
|
readonly status: pulumi.Output<outputs.PostgresBranchStatus>;
|
|
72
131
|
/**
|
|
73
|
-
* (string) - System
|
|
132
|
+
* (string) - System-generated unique ID for the branch
|
|
74
133
|
*/
|
|
75
134
|
readonly uid: pulumi.Output<string>;
|
|
76
135
|
/**
|
|
@@ -91,10 +150,11 @@ export declare class PostgresBranch extends pulumi.CustomResource {
|
|
|
91
150
|
*/
|
|
92
151
|
export interface PostgresBranchState {
|
|
93
152
|
/**
|
|
94
|
-
* The ID to use for the Branch
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
153
|
+
* The ID to use for the Branch. This becomes the final component of the branch's resource name.
|
|
154
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
155
|
+
* Examples:
|
|
156
|
+
* - With custom ID: `staging` → name becomes `projects/{project_id}/branches/staging`
|
|
157
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/br-example-name-x1y2z3a4`
|
|
98
158
|
*/
|
|
99
159
|
branchId?: pulumi.Input<string>;
|
|
100
160
|
/**
|
|
@@ -102,17 +162,20 @@ export interface PostgresBranchState {
|
|
|
102
162
|
*/
|
|
103
163
|
createTime?: pulumi.Input<string>;
|
|
104
164
|
/**
|
|
105
|
-
* (string) - The resource name of the branch.
|
|
106
|
-
* Format: projects/{project_id}/branches/{branch_id}
|
|
165
|
+
* (string) - The resource name of the branch. This field is output-only and constructed by the system.
|
|
166
|
+
* Format: `projects/{project_id}/branches/{branch_id}`
|
|
107
167
|
*/
|
|
108
168
|
name?: pulumi.Input<string>;
|
|
109
169
|
/**
|
|
110
|
-
* The project containing this branch.
|
|
170
|
+
* The project containing this branch (API resource hierarchy).
|
|
111
171
|
* Format: projects/{project_id}
|
|
172
|
+
*
|
|
173
|
+
* Note: This field indicates where the branch exists in the resource hierarchy.
|
|
174
|
+
* For point-in-time branching from another branch, see `spec.source_branch`
|
|
112
175
|
*/
|
|
113
176
|
parent?: pulumi.Input<string>;
|
|
114
177
|
/**
|
|
115
|
-
* The
|
|
178
|
+
* The spec contains the branch configuration
|
|
116
179
|
*/
|
|
117
180
|
spec?: pulumi.Input<inputs.PostgresBranchSpec>;
|
|
118
181
|
/**
|
|
@@ -120,7 +183,7 @@ export interface PostgresBranchState {
|
|
|
120
183
|
*/
|
|
121
184
|
status?: pulumi.Input<inputs.PostgresBranchStatus>;
|
|
122
185
|
/**
|
|
123
|
-
* (string) - System
|
|
186
|
+
* (string) - System-generated unique ID for the branch
|
|
124
187
|
*/
|
|
125
188
|
uid?: pulumi.Input<string>;
|
|
126
189
|
/**
|
|
@@ -133,19 +196,23 @@ export interface PostgresBranchState {
|
|
|
133
196
|
*/
|
|
134
197
|
export interface PostgresBranchArgs {
|
|
135
198
|
/**
|
|
136
|
-
* The ID to use for the Branch
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
199
|
+
* The ID to use for the Branch. This becomes the final component of the branch's resource name.
|
|
200
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
201
|
+
* Examples:
|
|
202
|
+
* - With custom ID: `staging` → name becomes `projects/{project_id}/branches/staging`
|
|
203
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/br-example-name-x1y2z3a4`
|
|
140
204
|
*/
|
|
141
205
|
branchId: pulumi.Input<string>;
|
|
142
206
|
/**
|
|
143
|
-
* The project containing this branch.
|
|
207
|
+
* The project containing this branch (API resource hierarchy).
|
|
144
208
|
* Format: projects/{project_id}
|
|
209
|
+
*
|
|
210
|
+
* Note: This field indicates where the branch exists in the resource hierarchy.
|
|
211
|
+
* For point-in-time branching from another branch, see `spec.source_branch`
|
|
145
212
|
*/
|
|
146
213
|
parent: pulumi.Input<string>;
|
|
147
214
|
/**
|
|
148
|
-
* The
|
|
215
|
+
* The spec contains the branch configuration
|
|
149
216
|
*/
|
|
150
217
|
spec?: pulumi.Input<inputs.PostgresBranchSpec>;
|
|
151
218
|
}
|
package/postgresBranch.js
CHANGED
|
@@ -6,7 +6,62 @@ exports.PostgresBranch = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Basic Branch Creation
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as databricks from "@pulumi/databricks";
|
|
18
|
+
*
|
|
19
|
+
* const _this = new databricks.PostgresProject("this", {
|
|
20
|
+
* projectId: "my-project",
|
|
21
|
+
* spec: {
|
|
22
|
+
* pgVersion: 17,
|
|
23
|
+
* displayName: "My Project",
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* const dev = new databricks.PostgresBranch("dev", {
|
|
27
|
+
* branchId: "dev-branch",
|
|
28
|
+
* parent: _this.name,
|
|
29
|
+
* spec: {
|
|
30
|
+
* noExpiry: true,
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* ### Protected Branch
|
|
36
|
+
*
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
39
|
+
* import * as databricks from "@pulumi/databricks";
|
|
40
|
+
*
|
|
41
|
+
* const production = new databricks.PostgresBranch("production", {
|
|
42
|
+
* branchId: "production",
|
|
43
|
+
* parent: _this.name,
|
|
44
|
+
* spec: {
|
|
45
|
+
* isProtected: true,
|
|
46
|
+
* noExpiry: true,
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ### Branch with Expiration (TTL)
|
|
52
|
+
*
|
|
53
|
+
* ```typescript
|
|
54
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
55
|
+
* import * as databricks from "@pulumi/databricks";
|
|
56
|
+
*
|
|
57
|
+
* const temporary = new databricks.PostgresBranch("temporary", {
|
|
58
|
+
* branchId: "temp-feature-test",
|
|
59
|
+
* parent: _this.name,
|
|
60
|
+
* spec: {
|
|
61
|
+
* ttl: "604800s",
|
|
62
|
+
* },
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
10
65
|
*
|
|
11
66
|
* ## Import
|
|
12
67
|
*
|
package/postgresBranch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgresBranch.js","sourceRoot":"","sources":["../postgresBranch.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"postgresBranch.js","sourceRoot":"","sources":["../postgresBranch.ts"],"names":[],"mappings":"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"}
|
package/postgresEndpoint.d.ts
CHANGED
|
@@ -2,7 +2,153 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
4
|
/**
|
|
5
|
-
* [](https://docs.databricks.com/aws/en/release-notes/release-types)
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ### Basic Read-Write Endpoint
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* const _this = new databricks.PostgresProject("this", {
|
|
16
|
+
* projectId: "my-project",
|
|
17
|
+
* spec: {
|
|
18
|
+
* pgVersion: 17,
|
|
19
|
+
* displayName: "My Project",
|
|
20
|
+
* },
|
|
21
|
+
* });
|
|
22
|
+
* const dev = new databricks.PostgresBranch("dev", {
|
|
23
|
+
* branchId: "dev-branch",
|
|
24
|
+
* parent: _this.name,
|
|
25
|
+
* spec: {
|
|
26
|
+
* noExpiry: true,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* const primary = new databricks.PostgresEndpoint("primary", {
|
|
30
|
+
* endpointId: "primary",
|
|
31
|
+
* parent: dev.name,
|
|
32
|
+
* spec: {
|
|
33
|
+
* endpointType: "ENDPOINT_TYPE_READ_WRITE",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ### Read-Only Endpoint with Autoscaling
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as databricks from "@pulumi/databricks";
|
|
43
|
+
*
|
|
44
|
+
* const readReplica = new databricks.PostgresEndpoint("read_replica", {
|
|
45
|
+
* endpointId: "read-replica-1",
|
|
46
|
+
* parent: dev.name,
|
|
47
|
+
* spec: {
|
|
48
|
+
* endpointType: "ENDPOINT_TYPE_READ_ONLY",
|
|
49
|
+
* autoscalingLimitMinCu: 0.5,
|
|
50
|
+
* autoscalingLimitMaxCu: 4,
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* ### Endpoint with Custom Autoscaling and Suspension
|
|
56
|
+
*
|
|
57
|
+
* ```typescript
|
|
58
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
59
|
+
* import * as databricks from "@pulumi/databricks";
|
|
60
|
+
*
|
|
61
|
+
* const analytics = new databricks.PostgresEndpoint("analytics", {
|
|
62
|
+
* endpointId: "analytics",
|
|
63
|
+
* parent: dev.name,
|
|
64
|
+
* spec: {
|
|
65
|
+
* endpointType: "ENDPOINT_TYPE_READ_ONLY",
|
|
66
|
+
* autoscalingLimitMinCu: 1,
|
|
67
|
+
* autoscalingLimitMaxCu: 8,
|
|
68
|
+
* suspendTimeoutDuration: "600s",
|
|
69
|
+
* },
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* ### Disabled Endpoint
|
|
74
|
+
*
|
|
75
|
+
* ```typescript
|
|
76
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
77
|
+
* import * as databricks from "@pulumi/databricks";
|
|
78
|
+
*
|
|
79
|
+
* const maintenance = new databricks.PostgresEndpoint("maintenance", {
|
|
80
|
+
* endpointId: "primary",
|
|
81
|
+
* parent: dev.name,
|
|
82
|
+
* spec: {
|
|
83
|
+
* endpointType: "ENDPOINT_TYPE_READ_WRITE",
|
|
84
|
+
* disabled: true,
|
|
85
|
+
* },
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* ### Endpoint with No Suspension
|
|
90
|
+
*
|
|
91
|
+
* ```typescript
|
|
92
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
93
|
+
* import * as databricks from "@pulumi/databricks";
|
|
94
|
+
*
|
|
95
|
+
* const alwaysOn = new databricks.PostgresEndpoint("always_on", {
|
|
96
|
+
* endpointId: "always-on",
|
|
97
|
+
* parent: dev.name,
|
|
98
|
+
* spec: {
|
|
99
|
+
* endpointType: "ENDPOINT_TYPE_READ_WRITE",
|
|
100
|
+
* noSuspension: true,
|
|
101
|
+
* },
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* ### Complete Example
|
|
106
|
+
*
|
|
107
|
+
* ```typescript
|
|
108
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
109
|
+
* import * as databricks from "@pulumi/databricks";
|
|
110
|
+
*
|
|
111
|
+
* const prod = new databricks.PostgresProject("prod", {
|
|
112
|
+
* projectId: "production",
|
|
113
|
+
* spec: {
|
|
114
|
+
* pgVersion: 17,
|
|
115
|
+
* displayName: "Production Workloads",
|
|
116
|
+
* historyRetentionDuration: "2592000s",
|
|
117
|
+
* defaultEndpointSettings: {
|
|
118
|
+
* autoscalingLimitMinCu: 1,
|
|
119
|
+
* autoscalingLimitMaxCu: 8,
|
|
120
|
+
* suspendTimeoutDuration: "300s",
|
|
121
|
+
* },
|
|
122
|
+
* },
|
|
123
|
+
* });
|
|
124
|
+
* const main = new databricks.PostgresBranch("main", {
|
|
125
|
+
* branchId: "main",
|
|
126
|
+
* parent: prod.name,
|
|
127
|
+
* spec: {
|
|
128
|
+
* noExpiry: true,
|
|
129
|
+
* },
|
|
130
|
+
* });
|
|
131
|
+
* const primary = new databricks.PostgresEndpoint("primary", {
|
|
132
|
+
* endpointId: "primary",
|
|
133
|
+
* parent: main.name,
|
|
134
|
+
* spec: {
|
|
135
|
+
* endpointType: "ENDPOINT_TYPE_READ_WRITE",
|
|
136
|
+
* autoscalingLimitMinCu: 1,
|
|
137
|
+
* autoscalingLimitMaxCu: 9,
|
|
138
|
+
* noSuspension: true,
|
|
139
|
+
* },
|
|
140
|
+
* });
|
|
141
|
+
* const readReplica = new databricks.PostgresEndpoint("read_replica", {
|
|
142
|
+
* endpointId: "read-replica",
|
|
143
|
+
* parent: main.name,
|
|
144
|
+
* spec: {
|
|
145
|
+
* endpointType: "ENDPOINT_TYPE_READ_ONLY",
|
|
146
|
+
* autoscalingLimitMinCu: 0.5,
|
|
147
|
+
* autoscalingLimitMaxCu: 8,
|
|
148
|
+
* suspendTimeoutDuration: "600s",
|
|
149
|
+
* },
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
6
152
|
*
|
|
7
153
|
* ## Import
|
|
8
154
|
*
|
|
@@ -45,32 +191,33 @@ export declare class PostgresEndpoint extends pulumi.CustomResource {
|
|
|
45
191
|
*/
|
|
46
192
|
readonly createTime: pulumi.Output<string>;
|
|
47
193
|
/**
|
|
48
|
-
* The ID to use for the Endpoint
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
194
|
+
* The ID to use for the Endpoint. This becomes the final component of the endpoint's resource name.
|
|
195
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
196
|
+
* Examples:
|
|
197
|
+
* - With custom ID: `primary` → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/primary`
|
|
198
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/ep-example-name-x1y2z3a4`
|
|
52
199
|
*/
|
|
53
200
|
readonly endpointId: pulumi.Output<string>;
|
|
54
201
|
/**
|
|
55
|
-
* (string) - The resource name of the endpoint.
|
|
56
|
-
* Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
|
|
202
|
+
* (string) - The resource name of the endpoint. This field is output-only and constructed by the system.
|
|
203
|
+
* Format: `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`
|
|
57
204
|
*/
|
|
58
205
|
readonly name: pulumi.Output<string>;
|
|
59
206
|
/**
|
|
60
|
-
* The branch containing this endpoint.
|
|
207
|
+
* The branch containing this endpoint (API resource hierarchy).
|
|
61
208
|
* Format: projects/{project_id}/branches/{branch_id}
|
|
62
209
|
*/
|
|
63
210
|
readonly parent: pulumi.Output<string>;
|
|
64
211
|
/**
|
|
65
|
-
* The
|
|
212
|
+
* The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state
|
|
66
213
|
*/
|
|
67
214
|
readonly spec: pulumi.Output<outputs.PostgresEndpointSpec>;
|
|
68
215
|
/**
|
|
69
|
-
* (EndpointStatus) -
|
|
216
|
+
* (EndpointStatus) - Current operational status of the compute endpoint
|
|
70
217
|
*/
|
|
71
218
|
readonly status: pulumi.Output<outputs.PostgresEndpointStatus>;
|
|
72
219
|
/**
|
|
73
|
-
* (string) - System
|
|
220
|
+
* (string) - System-generated unique ID for the endpoint
|
|
74
221
|
*/
|
|
75
222
|
readonly uid: pulumi.Output<string>;
|
|
76
223
|
/**
|
|
@@ -95,32 +242,33 @@ export interface PostgresEndpointState {
|
|
|
95
242
|
*/
|
|
96
243
|
createTime?: pulumi.Input<string>;
|
|
97
244
|
/**
|
|
98
|
-
* The ID to use for the Endpoint
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
245
|
+
* The ID to use for the Endpoint. This becomes the final component of the endpoint's resource name.
|
|
246
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
247
|
+
* Examples:
|
|
248
|
+
* - With custom ID: `primary` → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/primary`
|
|
249
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/ep-example-name-x1y2z3a4`
|
|
102
250
|
*/
|
|
103
251
|
endpointId?: pulumi.Input<string>;
|
|
104
252
|
/**
|
|
105
|
-
* (string) - The resource name of the endpoint.
|
|
106
|
-
* Format: projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}
|
|
253
|
+
* (string) - The resource name of the endpoint. This field is output-only and constructed by the system.
|
|
254
|
+
* Format: `projects/{project_id}/branches/{branch_id}/endpoints/{endpoint_id}`
|
|
107
255
|
*/
|
|
108
256
|
name?: pulumi.Input<string>;
|
|
109
257
|
/**
|
|
110
|
-
* The branch containing this endpoint.
|
|
258
|
+
* The branch containing this endpoint (API resource hierarchy).
|
|
111
259
|
* Format: projects/{project_id}/branches/{branch_id}
|
|
112
260
|
*/
|
|
113
261
|
parent?: pulumi.Input<string>;
|
|
114
262
|
/**
|
|
115
|
-
* The
|
|
263
|
+
* The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state
|
|
116
264
|
*/
|
|
117
265
|
spec?: pulumi.Input<inputs.PostgresEndpointSpec>;
|
|
118
266
|
/**
|
|
119
|
-
* (EndpointStatus) -
|
|
267
|
+
* (EndpointStatus) - Current operational status of the compute endpoint
|
|
120
268
|
*/
|
|
121
269
|
status?: pulumi.Input<inputs.PostgresEndpointStatus>;
|
|
122
270
|
/**
|
|
123
|
-
* (string) - System
|
|
271
|
+
* (string) - System-generated unique ID for the endpoint
|
|
124
272
|
*/
|
|
125
273
|
uid?: pulumi.Input<string>;
|
|
126
274
|
/**
|
|
@@ -133,19 +281,20 @@ export interface PostgresEndpointState {
|
|
|
133
281
|
*/
|
|
134
282
|
export interface PostgresEndpointArgs {
|
|
135
283
|
/**
|
|
136
|
-
* The ID to use for the Endpoint
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
*
|
|
284
|
+
* The ID to use for the Endpoint. This becomes the final component of the endpoint's resource name.
|
|
285
|
+
* The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
|
|
286
|
+
* Examples:
|
|
287
|
+
* - With custom ID: `primary` → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/primary`
|
|
288
|
+
* - Without custom ID: system generates slug → name becomes `projects/{project_id}/branches/{branch_id}/endpoints/ep-example-name-x1y2z3a4`
|
|
140
289
|
*/
|
|
141
290
|
endpointId: pulumi.Input<string>;
|
|
142
291
|
/**
|
|
143
|
-
* The branch containing this endpoint.
|
|
292
|
+
* The branch containing this endpoint (API resource hierarchy).
|
|
144
293
|
* Format: projects/{project_id}/branches/{branch_id}
|
|
145
294
|
*/
|
|
146
295
|
parent: pulumi.Input<string>;
|
|
147
296
|
/**
|
|
148
|
-
* The
|
|
297
|
+
* The spec contains the compute endpoint configuration, including autoscaling limits, suspend timeout, and disabled state
|
|
149
298
|
*/
|
|
150
299
|
spec?: pulumi.Input<inputs.PostgresEndpointSpec>;
|
|
151
300
|
}
|