@pulumi/databricks 1.91.0 → 1.91.1

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.
@@ -154,7 +154,7 @@ export declare class ExternalLocation extends pulumi.CustomResource {
154
154
  */
155
155
  readonly credentialName: pulumi.Output<string>;
156
156
  readonly effectiveEnableFileEvents: pulumi.Output<boolean>;
157
- readonly effectiveFileEventQueue: pulumi.Output<outputs.ExternalLocationEffectiveFileEventQueue | undefined>;
157
+ readonly effectiveFileEventQueue: pulumi.Output<outputs.ExternalLocationEffectiveFileEventQueue>;
158
158
  /**
159
159
  * indicates if managed file events are enabled for this external location. Requires `fileEventQueue` block.
160
160
  */
@@ -3,6 +3,23 @@ import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
5
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * This data source retrieves a single Postgres database.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ### Retrieve Database by Name
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as databricks from "@pulumi/databricks";
16
+ *
17
+ * const _this = databricks.getPostgresDatabase({
18
+ * name: "projects/my-project/branches/main/databases/app",
19
+ * });
20
+ * export const postgresDatabaseName = _this.then(_this => _this.status?.postgresDatabase);
21
+ * export const databaseOwnerRole = _this.then(_this => _this.status?.role);
22
+ * ```
6
23
  */
7
24
  export declare function getPostgresDatabase(args: GetPostgresDatabaseArgs, opts?: pulumi.InvokeOptions): Promise<GetPostgresDatabaseResult>;
8
25
  /**
@@ -57,6 +74,23 @@ export interface GetPostgresDatabaseResult {
57
74
  }
58
75
  /**
59
76
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
77
+ *
78
+ * This data source retrieves a single Postgres database.
79
+ *
80
+ * ## Example Usage
81
+ *
82
+ * ### Retrieve Database by Name
83
+ *
84
+ * ```typescript
85
+ * import * as pulumi from "@pulumi/pulumi";
86
+ * import * as databricks from "@pulumi/databricks";
87
+ *
88
+ * const _this = databricks.getPostgresDatabase({
89
+ * name: "projects/my-project/branches/main/databases/app",
90
+ * });
91
+ * export const postgresDatabaseName = _this.then(_this => _this.status?.postgresDatabase);
92
+ * export const databaseOwnerRole = _this.then(_this => _this.status?.role);
93
+ * ```
60
94
  */
61
95
  export declare function getPostgresDatabaseOutput(args: GetPostgresDatabaseOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPostgresDatabaseResult>;
62
96
  /**
@@ -7,6 +7,23 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
9
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * This data source retrieves a single Postgres database.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### Retrieve Database by Name
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as databricks from "@pulumi/databricks";
20
+ *
21
+ * const _this = databricks.getPostgresDatabase({
22
+ * name: "projects/my-project/branches/main/databases/app",
23
+ * });
24
+ * export const postgresDatabaseName = _this.then(_this => _this.status?.postgresDatabase);
25
+ * export const databaseOwnerRole = _this.then(_this => _this.status?.role);
26
+ * ```
10
27
  */
11
28
  function getPostgresDatabase(args, opts) {
12
29
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -18,6 +35,23 @@ function getPostgresDatabase(args, opts) {
18
35
  exports.getPostgresDatabase = getPostgresDatabase;
19
36
  /**
20
37
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
38
+ *
39
+ * This data source retrieves a single Postgres database.
40
+ *
41
+ * ## Example Usage
42
+ *
43
+ * ### Retrieve Database by Name
44
+ *
45
+ * ```typescript
46
+ * import * as pulumi from "@pulumi/pulumi";
47
+ * import * as databricks from "@pulumi/databricks";
48
+ *
49
+ * const _this = databricks.getPostgresDatabase({
50
+ * name: "projects/my-project/branches/main/databases/app",
51
+ * });
52
+ * export const postgresDatabaseName = _this.then(_this => _this.status?.postgresDatabase);
53
+ * export const databaseOwnerRole = _this.then(_this => _this.status?.role);
54
+ * ```
21
55
  */
22
56
  function getPostgresDatabaseOutput(args, opts) {
23
57
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresDatabase.js","sourceRoot":"","sources":["../getPostgresDatabase.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC;AAqDD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8DAMC"}
1
+ {"version":3,"file":"getPostgresDatabase.js","sourceRoot":"","sources":["../getPostgresDatabase.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,kDAMC;AAqDD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,yBAAyB,CAAC,IAAmC,EAAE,IAAiC;IAC5G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,0DAA0D,EAAE;QAC3F,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,8DAMC"}
@@ -3,6 +3,23 @@ import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
5
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * This data source lists all Postgres databases in a branch.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ### List All Databases in a Branch
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as databricks from "@pulumi/databricks";
16
+ *
17
+ * const all = databricks.getPostgresDatabases({
18
+ * parent: "projects/my-project/branches/main",
19
+ * });
20
+ * export const databaseNames = all.then(all => .map(db => (db.name)));
21
+ * export const postgresDatabaseNames = all.then(all => .map(db => (db.status?.postgresDatabase)));
22
+ * ```
6
23
  */
7
24
  export declare function getPostgresDatabases(args: GetPostgresDatabasesArgs, opts?: pulumi.InvokeOptions): Promise<GetPostgresDatabasesResult>;
8
25
  /**
@@ -42,6 +59,23 @@ export interface GetPostgresDatabasesResult {
42
59
  }
43
60
  /**
44
61
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
62
+ *
63
+ * This data source lists all Postgres databases in a branch.
64
+ *
65
+ * ## Example Usage
66
+ *
67
+ * ### List All Databases in a Branch
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as databricks from "@pulumi/databricks";
72
+ *
73
+ * const all = databricks.getPostgresDatabases({
74
+ * parent: "projects/my-project/branches/main",
75
+ * });
76
+ * export const databaseNames = all.then(all => .map(db => (db.name)));
77
+ * export const postgresDatabaseNames = all.then(all => .map(db => (db.status?.postgresDatabase)));
78
+ * ```
45
79
  */
46
80
  export declare function getPostgresDatabasesOutput(args: GetPostgresDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPostgresDatabasesResult>;
47
81
  /**
@@ -7,6 +7,23 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
9
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * This data source lists all Postgres databases in a branch.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### List All Databases in a Branch
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as databricks from "@pulumi/databricks";
20
+ *
21
+ * const all = databricks.getPostgresDatabases({
22
+ * parent: "projects/my-project/branches/main",
23
+ * });
24
+ * export const databaseNames = all.then(all => .map(db => (db.name)));
25
+ * export const postgresDatabaseNames = all.then(all => .map(db => (db.status?.postgresDatabase)));
26
+ * ```
10
27
  */
11
28
  function getPostgresDatabases(args, opts) {
12
29
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -19,6 +36,23 @@ function getPostgresDatabases(args, opts) {
19
36
  exports.getPostgresDatabases = getPostgresDatabases;
20
37
  /**
21
38
  * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
39
+ *
40
+ * This data source lists all Postgres databases in a branch.
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ### List All Databases in a Branch
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * const all = databricks.getPostgresDatabases({
51
+ * parent: "projects/my-project/branches/main",
52
+ * });
53
+ * export const databaseNames = all.then(all => .map(db => (db.name)));
54
+ * export const postgresDatabaseNames = all.then(all => .map(db => (db.status?.postgresDatabase)));
55
+ * ```
22
56
  */
23
57
  function getPostgresDatabasesOutput(args, opts) {
24
58
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresDatabases.js","sourceRoot":"","sources":["../getPostgresDatabases.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,oBAAoB,CAAC,IAA8B,EAAE,IAA2B;IAC5F,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4DAA4D,EA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,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,4DAA4D,EAAE;QAC7F,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gEAOC"}
@@ -45,12 +45,17 @@ export interface GetPostgresProjectResult {
45
45
  * (string) - A timestamp indicating when the project was created
46
46
  */
47
47
  readonly createTime: string;
48
+ /**
49
+ * (string) - A timestamp indicating when the project was soft-deleted.
50
+ * Empty if the project is not deleted, otherwise set to a timestamp in the past
51
+ */
52
+ readonly deleteTime: string;
48
53
  /**
49
54
  * The provider-assigned unique ID for this managed resource.
50
55
  */
51
56
  readonly id: string;
52
57
  /**
53
- * (InitialEndpointSpec) - Configuration settings for the initial Read/Write endpoint created inside the default branch for a newly
58
+ * (InitialEndpointSpec) - Configuration settings for the initial Read/Write endpoint created inside the initial branch for a newly
54
59
  * created project. If omitted, the initial endpoint created will have default settings, without high availability
55
60
  * configured. This field does not apply to any endpoints created after project creation. Use
56
61
  * spec.default_endpoint_settings to configure default settings for endpoints created after project creation
@@ -62,6 +67,11 @@ export interface GetPostgresProjectResult {
62
67
  */
63
68
  readonly name: string;
64
69
  readonly providerConfig?: outputs.GetPostgresProjectProviderConfig;
70
+ /**
71
+ * (string) - A timestamp indicating when the project is scheduled for permanent deletion.
72
+ * Empty if the project is not deleted, otherwise set to a timestamp in the future
73
+ */
74
+ readonly purgeTime: string;
65
75
  /**
66
76
  * (ProjectSpec) - The spec contains the project configuration, including display_name, pgVersion (Postgres version), history_retention_duration, and default_endpoint_settings
67
77
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresProject.js","sourceRoot":"","sources":["../getPostgresProject.ts"],"names":[],"mappings":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AAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,gDAMC;AAqED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAAiC;IAC1G,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,wDAAwD,EAAE;QACzF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,4DAMC"}
@@ -31,6 +31,12 @@ export interface GetPostgresProjectsArgs {
31
31
  * Configure the provider for management through account provider.
32
32
  */
33
33
  providerConfig?: inputs.GetPostgresProjectsProviderConfig;
34
+ /**
35
+ * Whether to include soft-deleted projects in the response.
36
+ * When true, soft-deleted projects are included alongside active projects.
37
+ * Hard-deleted and already-purged projects are never returned
38
+ */
39
+ showDeleted?: boolean;
34
40
  }
35
41
  /**
36
42
  * A collection of values returned by getPostgresProjects.
@@ -43,6 +49,7 @@ export interface GetPostgresProjectsResult {
43
49
  readonly pageSize?: number;
44
50
  readonly projects: outputs.GetPostgresProjectsProject[];
45
51
  readonly providerConfig?: outputs.GetPostgresProjectsProviderConfig;
52
+ readonly showDeleted?: boolean;
46
53
  }
47
54
  /**
48
55
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
@@ -74,4 +81,10 @@ export interface GetPostgresProjectsOutputArgs {
74
81
  * Configure the provider for management through account provider.
75
82
  */
76
83
  providerConfig?: pulumi.Input<inputs.GetPostgresProjectsProviderConfigArgs>;
84
+ /**
85
+ * Whether to include soft-deleted projects in the response.
86
+ * When true, soft-deleted projects are included alongside active projects.
87
+ * Hard-deleted and already-purged projects are never returned
88
+ */
89
+ showDeleted?: pulumi.Input<boolean>;
77
90
  }
@@ -28,6 +28,7 @@ function getPostgresProjects(args, opts) {
28
28
  return pulumi.runtime.invoke("databricks:index/getPostgresProjects:getPostgresProjects", {
29
29
  "pageSize": args.pageSize,
30
30
  "providerConfig": args.providerConfig,
31
+ "showDeleted": args.showDeleted,
31
32
  }, opts);
32
33
  }
33
34
  exports.getPostgresProjects = getPostgresProjects;
@@ -54,6 +55,7 @@ function getPostgresProjectsOutput(args, opts) {
54
55
  return pulumi.runtime.invokeOutput("databricks:index/getPostgresProjects:getPostgresProjects", {
55
56
  "pageSize": args.pageSize,
56
57
  "providerConfig": args.providerConfig,
58
+ "showDeleted": args.showDeleted,
57
59
  }, opts);
58
60
  }
59
61
  exports.getPostgresProjectsOutput = getPostgresProjectsOutput;
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresProjects.js","sourceRoot":"","sources":["../getPostgresProjects.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAA2B;IAC3F,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0DAA0D,EAAE;QACrF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC;AA4BD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,yBAAyB,CAAC,IAAoC,EAAE,IAAiC;IAC7G,IAAI,GAAG,IAAI,IAAI,EAAE,CAA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BAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,aAAa,EAAE,IAAI,CAAC,WAAW;KAClC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8DAQC"}
@@ -3,6 +3,24 @@ import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
5
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * This data source retrieves a single Postgres role.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ### Retrieve Role by Name
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as databricks from "@pulumi/databricks";
16
+ *
17
+ * const _this = databricks.getPostgresRole({
18
+ * name: "projects/my-project/branches/main/roles/jane",
19
+ * });
20
+ * export const rolePostgresName = _this.then(_this => _this.status?.postgresRole);
21
+ * export const roleIdentityType = _this.then(_this => _this.status?.identityType);
22
+ * export const roleAuthMethod = _this.then(_this => _this.status?.authMethod);
23
+ * ```
6
24
  */
7
25
  export declare function getPostgresRole(args: GetPostgresRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetPostgresRoleResult>;
8
26
  /**
@@ -57,6 +75,24 @@ export interface GetPostgresRoleResult {
57
75
  }
58
76
  /**
59
77
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
78
+ *
79
+ * This data source retrieves a single Postgres role.
80
+ *
81
+ * ## Example Usage
82
+ *
83
+ * ### Retrieve Role by Name
84
+ *
85
+ * ```typescript
86
+ * import * as pulumi from "@pulumi/pulumi";
87
+ * import * as databricks from "@pulumi/databricks";
88
+ *
89
+ * const _this = databricks.getPostgresRole({
90
+ * name: "projects/my-project/branches/main/roles/jane",
91
+ * });
92
+ * export const rolePostgresName = _this.then(_this => _this.status?.postgresRole);
93
+ * export const roleIdentityType = _this.then(_this => _this.status?.identityType);
94
+ * export const roleAuthMethod = _this.then(_this => _this.status?.authMethod);
95
+ * ```
60
96
  */
61
97
  export declare function getPostgresRoleOutput(args: GetPostgresRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPostgresRoleResult>;
62
98
  /**
@@ -7,6 +7,24 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
9
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * This data source retrieves a single Postgres role.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### Retrieve Role by Name
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as databricks from "@pulumi/databricks";
20
+ *
21
+ * const _this = databricks.getPostgresRole({
22
+ * name: "projects/my-project/branches/main/roles/jane",
23
+ * });
24
+ * export const rolePostgresName = _this.then(_this => _this.status?.postgresRole);
25
+ * export const roleIdentityType = _this.then(_this => _this.status?.identityType);
26
+ * export const roleAuthMethod = _this.then(_this => _this.status?.authMethod);
27
+ * ```
10
28
  */
11
29
  function getPostgresRole(args, opts) {
12
30
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -18,6 +36,24 @@ function getPostgresRole(args, opts) {
18
36
  exports.getPostgresRole = getPostgresRole;
19
37
  /**
20
38
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
39
+ *
40
+ * This data source retrieves a single Postgres role.
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ### Retrieve Role by Name
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * const _this = databricks.getPostgresRole({
51
+ * name: "projects/my-project/branches/main/roles/jane",
52
+ * });
53
+ * export const rolePostgresName = _this.then(_this => _this.status?.postgresRole);
54
+ * export const roleIdentityType = _this.then(_this => _this.status?.identityType);
55
+ * export const roleAuthMethod = _this.then(_this => _this.status?.authMethod);
56
+ * ```
21
57
  */
22
58
  function getPostgresRoleOutput(args, opts) {
23
59
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresRole.js","sourceRoot":"","sources":["../getPostgresRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAqDD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kDAAkD,EAAE;QACnF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}
1
+ {"version":3,"file":"getPostgresRole.js","sourceRoot":"","sources":["../getPostgresRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,eAAe,CAAC,IAAyB,EAAE,IAA2B;IAClF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kDAAkD,EAAE;QAC7E,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0CAMC;AAqDD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,qBAAqB,CAAC,IAA+B,EAAE,IAAiC;IACpG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,kDAAkD,EAAE;QACnF,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,sDAMC"}
@@ -3,6 +3,23 @@ import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
5
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * This data source lists all Postgres roles in a branch.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ### List All Roles in a Branch
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as databricks from "@pulumi/databricks";
16
+ *
17
+ * const all = databricks.getPostgresRoles({
18
+ * parent: "projects/my-project/branches/main",
19
+ * });
20
+ * export const roleNames = all.then(all => .map(role => (role.name)));
21
+ * export const roleIdentityTypes = all.then(all => .map(role => (role.status?.identityType)));
22
+ * ```
6
23
  */
7
24
  export declare function getPostgresRoles(args: GetPostgresRolesArgs, opts?: pulumi.InvokeOptions): Promise<GetPostgresRolesResult>;
8
25
  /**
@@ -42,6 +59,23 @@ export interface GetPostgresRolesResult {
42
59
  }
43
60
  /**
44
61
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
62
+ *
63
+ * This data source lists all Postgres roles in a branch.
64
+ *
65
+ * ## Example Usage
66
+ *
67
+ * ### List All Roles in a Branch
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as databricks from "@pulumi/databricks";
72
+ *
73
+ * const all = databricks.getPostgresRoles({
74
+ * parent: "projects/my-project/branches/main",
75
+ * });
76
+ * export const roleNames = all.then(all => .map(role => (role.name)));
77
+ * export const roleIdentityTypes = all.then(all => .map(role => (role.status?.identityType)));
78
+ * ```
45
79
  */
46
80
  export declare function getPostgresRolesOutput(args: GetPostgresRolesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPostgresRolesResult>;
47
81
  /**
@@ -7,6 +7,23 @@ const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
9
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ *
11
+ * This data source lists all Postgres roles in a branch.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ### List All Roles in a Branch
16
+ *
17
+ * ```typescript
18
+ * import * as pulumi from "@pulumi/pulumi";
19
+ * import * as databricks from "@pulumi/databricks";
20
+ *
21
+ * const all = databricks.getPostgresRoles({
22
+ * parent: "projects/my-project/branches/main",
23
+ * });
24
+ * export const roleNames = all.then(all => .map(role => (role.name)));
25
+ * export const roleIdentityTypes = all.then(all => .map(role => (role.status?.identityType)));
26
+ * ```
10
27
  */
11
28
  function getPostgresRoles(args, opts) {
12
29
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -19,6 +36,23 @@ function getPostgresRoles(args, opts) {
19
36
  exports.getPostgresRoles = getPostgresRoles;
20
37
  /**
21
38
  * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
39
+ *
40
+ * This data source lists all Postgres roles in a branch.
41
+ *
42
+ * ## Example Usage
43
+ *
44
+ * ### List All Roles in a Branch
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * const all = databricks.getPostgresRoles({
51
+ * parent: "projects/my-project/branches/main",
52
+ * });
53
+ * export const roleNames = all.then(all => .map(role => (role.name)));
54
+ * export const roleIdentityTypes = all.then(all => .map(role => (role.status?.identityType)));
55
+ * ```
22
56
  */
23
57
  function getPostgresRolesOutput(args, opts) {
24
58
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -1 +1 @@
1
- {"version":3,"file":"getPostgresRoles.js","sourceRoot":"","sources":["../getPostgresRoles.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,SAAgB,gBAAgB,CAAC,IAA0B,EAAE,IAA2B;IACpF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oDAAoD,EAAE;QAC/E,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4CAOC;AAsCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,IAAgC,EAAE,IAAiC;IACtG,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAA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AAPD,wDAOC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumi/databricks",
3
- "version": "1.91.0",
3
+ "version": "1.91.1",
4
4
  "description": "A Pulumi package for creating and managing databricks cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,6 +24,6 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "databricks",
27
- "version": "1.91.0"
27
+ "version": "1.91.1"
28
28
  }
29
29
  }
@@ -6,7 +6,11 @@ import * as outputs from "./types/output";
6
6
  *
7
7
  * ## Example Usage
8
8
  *
9
- * ### Basic Branch Creation
9
+ * ### Managing Implicitly Created Root Branch
10
+ *
11
+ * A root branch named `production` is implicitly created for every project. Since Pulumi is declarative, managing an already-existing resource requires `replaceExisting = true`: it lets Pulumi take ownership of the implicitly created branch and immediately apply the provided configuration to it. Support for providing a custom `branchId` will be available in later versions.
12
+ *
13
+ * This resource is only required if you want to apply configuration changes to the implicitly created branch.
10
14
  *
11
15
  * ```typescript
12
16
  * import * as pulumi from "@pulumi/pulumi";
@@ -19,6 +23,22 @@ import * as outputs from "./types/output";
19
23
  * displayName: "My Project",
20
24
  * },
21
25
  * });
26
+ * const production = new databricks.PostgresBranch("production", {
27
+ * branchId: "production",
28
+ * parent: _this.name,
29
+ * spec: {
30
+ * noExpiry: true,
31
+ * },
32
+ * replaceExisting: true,
33
+ * });
34
+ * ```
35
+ *
36
+ * ### Basic Branch Creation
37
+ *
38
+ * ```typescript
39
+ * import * as pulumi from "@pulumi/pulumi";
40
+ * import * as databricks from "@pulumi/databricks";
41
+ *
22
42
  * const dev = new databricks.PostgresBranch("dev", {
23
43
  * branchId: "dev-branch",
24
44
  * parent: _this.name,
@@ -30,12 +50,14 @@ import * as outputs from "./types/output";
30
50
  *
31
51
  * ### Protected Branch
32
52
  *
53
+ * Only one branch per project can be protected at a time.
54
+ *
33
55
  * ```typescript
34
56
  * import * as pulumi from "@pulumi/pulumi";
35
57
  * import * as databricks from "@pulumi/databricks";
36
58
  *
37
- * const production = new databricks.PostgresBranch("production", {
38
- * branchId: "production",
59
+ * const _protected = new databricks.PostgresBranch("protected", {
60
+ * branchId: "protected-branch",
39
61
  * parent: _this.name,
40
62
  * spec: {
41
63
  * isProtected: true,
@@ -102,6 +124,10 @@ export declare class PostgresBranch extends pulumi.CustomResource {
102
124
  * Configure the provider for management through account provider.
103
125
  */
104
126
  readonly providerConfig: pulumi.Output<outputs.PostgresBranchProviderConfig | undefined>;
127
+ /**
128
+ * If true, update the branch if it already exists instead of returning an error
129
+ */
130
+ readonly replaceExisting: pulumi.Output<boolean | undefined>;
105
131
  /**
106
132
  * The spec contains the branch configuration
107
133
  */
@@ -158,6 +184,10 @@ export interface PostgresBranchState {
158
184
  * Configure the provider for management through account provider.
159
185
  */
160
186
  providerConfig?: pulumi.Input<inputs.PostgresBranchProviderConfig>;
187
+ /**
188
+ * If true, update the branch if it already exists instead of returning an error
189
+ */
190
+ replaceExisting?: pulumi.Input<boolean>;
161
191
  /**
162
192
  * The spec contains the branch configuration
163
193
  */
@@ -197,6 +227,10 @@ export interface PostgresBranchArgs {
197
227
  * Configure the provider for management through account provider.
198
228
  */
199
229
  providerConfig?: pulumi.Input<inputs.PostgresBranchProviderConfig>;
230
+ /**
231
+ * If true, update the branch if it already exists instead of returning an error
232
+ */
233
+ replaceExisting?: pulumi.Input<boolean>;
200
234
  /**
201
235
  * The spec contains the branch configuration
202
236
  */