From bf7ae8509f459d2aa77ac1b2e073e1a3cddbd453 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 6 May 2024 01:18:34 -0700 Subject: [PATCH] Upgrade terraform-provider-digitalocean to v2.38.0 (#701) This PR was generated via `$ upgrade-provider pulumi/pulumi-digitalocean --kind=all --target-bridge-version=latest`. --- - Upgrading terraform-provider-digitalocean from 2.37.1 to 2.38.0. Fixes #700 --- .../pulumi-resource-digitalocean/schema.json | 90 +++++++ provider/go.mod | 4 +- provider/go.sum | 8 +- sdk/dotnet/DatabaseCluster.cs | 94 ++++++++ sdk/dotnet/GetDatabaseCluster.cs | 42 ++++ sdk/go/digitalocean/databaseCluster.go | 68 ++++++ sdk/go/digitalocean/getDatabaseCluster.go | 42 ++++ .../pulumi/digitalocean/DatabaseCluster.java | 86 +++++++ .../inputs/DatabaseClusterState.java | 222 ++++++++++++++++++ .../outputs/GetDatabaseClusterResult.java | 138 +++++++++++ sdk/nodejs/databaseCluster.ts | 62 ++++- sdk/nodejs/getDatabaseCluster.ts | 24 ++ .../pulumi_digitalocean/database_cluster.py | 170 +++++++++++++- .../get_database_cluster.py | 80 ++++++- upstream | 2 +- 15 files changed, 1122 insertions(+), 10 deletions(-) diff --git a/provider/cmd/pulumi-resource-digitalocean/schema.json b/provider/cmd/pulumi-resource-digitalocean/schema.json index cf2ca292..be49eb33 100644 --- a/provider/cmd/pulumi-resource-digitalocean/schema.json +++ b/provider/cmd/pulumi-resource-digitalocean/schema.json @@ -8432,6 +8432,32 @@ }, "description": "A list of tag names to be applied to the database cluster.\n" }, + "uiDatabase": { + "type": "string", + "description": "Name of the OpenSearch dashboard db.\n" + }, + "uiHost": { + "type": "string", + "description": "Hostname for the OpenSearch dashboard.\n" + }, + "uiPassword": { + "type": "string", + "description": "Password for the OpenSearch dashboard's default user.\n", + "secret": true + }, + "uiPort": { + "type": "integer", + "description": "Network port that the OpenSearch dashboard is listening on.\n" + }, + "uiUri": { + "type": "string", + "description": "The full URI for connecting to the OpenSearch dashboard.\n", + "secret": true + }, + "uiUser": { + "type": "string", + "description": "Username for OpenSearch dashboard's default user.\n" + }, "uri": { "type": "string", "description": "The full URI for connecting to the database cluster.\n", @@ -8461,6 +8487,12 @@ "region", "size", "storageSizeMib", + "uiDatabase", + "uiHost", + "uiPassword", + "uiPort", + "uiUri", + "uiUser", "uri", "clusterUrn", "user" @@ -8668,6 +8700,32 @@ }, "description": "A list of tag names to be applied to the database cluster.\n" }, + "uiDatabase": { + "type": "string", + "description": "Name of the OpenSearch dashboard db.\n" + }, + "uiHost": { + "type": "string", + "description": "Hostname for the OpenSearch dashboard.\n" + }, + "uiPassword": { + "type": "string", + "description": "Password for the OpenSearch dashboard's default user.\n", + "secret": true + }, + "uiPort": { + "type": "integer", + "description": "Network port that the OpenSearch dashboard is listening on.\n" + }, + "uiUri": { + "type": "string", + "description": "The full URI for connecting to the OpenSearch dashboard.\n", + "secret": true + }, + "uiUser": { + "type": "string", + "description": "Username for OpenSearch dashboard's default user.\n" + }, "uri": { "type": "string", "description": "The full URI for connecting to the database cluster.\n", @@ -14841,6 +14899,32 @@ "type": "string" } }, + "uiDatabase": { + "type": "string", + "description": "Name of the OpenSearch dashboard db.\n" + }, + "uiHost": { + "type": "string", + "description": "Hostname for the OpenSearch dashboard.\n" + }, + "uiPassword": { + "type": "string", + "description": "Password for the OpenSearch dashboard's default user.\n", + "secret": true + }, + "uiPort": { + "type": "integer", + "description": "Network port that the OpenSearch dashboard is listening on.\n" + }, + "uiUri": { + "type": "string", + "description": "The full URI for connecting to the OpenSearch dashboard.\n", + "secret": true + }, + "uiUser": { + "type": "string", + "description": "Username for OpenSearch dashboard's default user.\n" + }, "uri": { "type": "string", "description": "The full URI for connecting to the database cluster.\n", @@ -14876,6 +14960,12 @@ "region", "size", "storageSizeMib", + "uiDatabase", + "uiHost", + "uiPassword", + "uiPort", + "uiUri", + "uiUser", "uri", "urn", "user", diff --git a/provider/go.mod b/provider/go.mod index 7a6219a7..7b28234d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -75,7 +75,7 @@ require ( github.com/cyphar/filepath-securejoin v0.2.4 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/deckarep/golang-set/v2 v2.5.0 // indirect - github.com/digitalocean/godo v1.111.0 // indirect + github.com/digitalocean/godo v1.113.0 // indirect github.com/djherbis/times v1.5.0 // indirect github.com/edsrzf/mmap-go v1.1.0 // indirect github.com/emirpasic/gods v1.18.1 // indirect @@ -232,7 +232,7 @@ require ( golang.org/x/crypto v0.21.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.15.0 // indirect - golang.org/x/net v0.22.0 // indirect + golang.org/x/net v0.23.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect golang.org/x/sync v0.6.0 // indirect golang.org/x/sys v0.18.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index 57a249de..4b0acb96 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1671,8 +1671,8 @@ github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8 github.com/dgryski/go-sip13 v0.0.0-20200911182023-62edffca9245/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= github.com/digitalocean/godo v1.78.0/go.mod h1:GBmu8MkjZmNARE7IXRPmkbbnocNN8+uBm0xbEVw2LCs= github.com/digitalocean/godo v1.81.0/go.mod h1:BPCqvwbjbGqxuUnIKB4EvS/AX7IDnNmt5fwvIkWo+ew= -github.com/digitalocean/godo v1.111.0 h1:nBXi9LtykvQiwZjMbljrwr17HwABSBY8ZE872dm2DzI= -github.com/digitalocean/godo v1.111.0/go.mod h1:R6EmmWI8CT1+fCtjWY9UCB+L5uufuZH13wk3YhxycCs= +github.com/digitalocean/godo v1.113.0 h1:CLtCxlP4wDAjKIQ+Hshht/UNbgAp8/J/XBH1ZtDCF9Y= +github.com/digitalocean/godo v1.113.0/go.mod h1:Z2mTP848Vi3IXXl5YbPekUgr4j4tOePomA+OE1Ag98w= github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE= github.com/djherbis/times v1.5.0 h1:79myA211VwPhFTqUk8xehWrsEO+zcIZj0zT8mXPVARU= github.com/djherbis/times v1.5.0/go.mod h1:5q7FDLvbNg1L/KaBmPcWlVR9NmoKo3+ucqUA3ijQhA0= @@ -3396,8 +3396,8 @@ golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ= golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U= golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= -golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= +golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= diff --git a/sdk/dotnet/DatabaseCluster.cs b/sdk/dotnet/DatabaseCluster.cs index bb559423..49ffbd51 100644 --- a/sdk/dotnet/DatabaseCluster.cs +++ b/sdk/dotnet/DatabaseCluster.cs @@ -296,6 +296,42 @@ public partial class DatabaseCluster : global::Pulumi.CustomResource [Output("tags")] public Output> Tags { get; private set; } = null!; + /// + /// Name of the OpenSearch dashboard db. + /// + [Output("uiDatabase")] + public Output UiDatabase { get; private set; } = null!; + + /// + /// Hostname for the OpenSearch dashboard. + /// + [Output("uiHost")] + public Output UiHost { get; private set; } = null!; + + /// + /// Password for the OpenSearch dashboard's default user. + /// + [Output("uiPassword")] + public Output UiPassword { get; private set; } = null!; + + /// + /// Network port that the OpenSearch dashboard is listening on. + /// + [Output("uiPort")] + public Output UiPort { get; private set; } = null!; + + /// + /// The full URI for connecting to the OpenSearch dashboard. + /// + [Output("uiUri")] + public Output UiUri { get; private set; } = null!; + + /// + /// Username for OpenSearch dashboard's default user. + /// + [Output("uiUser")] + public Output UiUser { get; private set; } = null!; + /// /// The full URI for connecting to the database cluster. /// @@ -342,6 +378,8 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? { "password", "privateUri", + "uiPassword", + "uiUri", "uri", }, }; @@ -618,6 +656,62 @@ public InputList Tags set => _tags = value; } + /// + /// Name of the OpenSearch dashboard db. + /// + [Input("uiDatabase")] + public Input? UiDatabase { get; set; } + + /// + /// Hostname for the OpenSearch dashboard. + /// + [Input("uiHost")] + public Input? UiHost { get; set; } + + [Input("uiPassword")] + private Input? _uiPassword; + + /// + /// Password for the OpenSearch dashboard's default user. + /// + public Input? UiPassword + { + get => _uiPassword; + set + { + var emptySecret = Output.CreateSecret(0); + _uiPassword = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// Network port that the OpenSearch dashboard is listening on. + /// + [Input("uiPort")] + public Input? UiPort { get; set; } + + [Input("uiUri")] + private Input? _uiUri; + + /// + /// The full URI for connecting to the OpenSearch dashboard. + /// + public Input? UiUri + { + get => _uiUri; + set + { + var emptySecret = Output.CreateSecret(0); + _uiUri = Output.Tuple?, int>(value, emptySecret).Apply(t => t.Item1); + } + } + + /// + /// Username for OpenSearch dashboard's default user. + /// + [Input("uiUser")] + public Input? UiUser { get; set; } + [Input("uri")] private Input? _uri; diff --git a/sdk/dotnet/GetDatabaseCluster.cs b/sdk/dotnet/GetDatabaseCluster.cs index 2f5fcefd..97d0f0e6 100644 --- a/sdk/dotnet/GetDatabaseCluster.cs +++ b/sdk/dotnet/GetDatabaseCluster.cs @@ -177,6 +177,30 @@ public sealed class GetDatabaseClusterResult public readonly string StorageSizeMib; public readonly ImmutableArray Tags; /// + /// Name of the OpenSearch dashboard db. + /// + public readonly string UiDatabase; + /// + /// Hostname for the OpenSearch dashboard. + /// + public readonly string UiHost; + /// + /// Password for the OpenSearch dashboard's default user. + /// + public readonly string UiPassword; + /// + /// Network port that the OpenSearch dashboard is listening on. + /// + public readonly int UiPort; + /// + /// The full URI for connecting to the OpenSearch dashboard. + /// + public readonly string UiUri; + /// + /// Username for OpenSearch dashboard's default user. + /// + public readonly string UiUser; + /// /// The full URI for connecting to the database cluster. /// public readonly string Uri; @@ -229,6 +253,18 @@ private GetDatabaseClusterResult( ImmutableArray tags, + string uiDatabase, + + string uiHost, + + string uiPassword, + + int uiPort, + + string uiUri, + + string uiUser, + string uri, string urn, @@ -254,6 +290,12 @@ private GetDatabaseClusterResult( Size = size; StorageSizeMib = storageSizeMib; Tags = tags; + UiDatabase = uiDatabase; + UiHost = uiHost; + UiPassword = uiPassword; + UiPort = uiPort; + UiUri = uiUri; + UiUser = uiUser; Uri = uri; Urn = urn; User = user; diff --git a/sdk/go/digitalocean/databaseCluster.go b/sdk/go/digitalocean/databaseCluster.go index 0faad42f..ab90c6ae 100644 --- a/sdk/go/digitalocean/databaseCluster.go +++ b/sdk/go/digitalocean/databaseCluster.go @@ -261,6 +261,18 @@ type DatabaseCluster struct { StorageSizeMib pulumi.StringOutput `pulumi:"storageSizeMib"` // A list of tag names to be applied to the database cluster. Tags pulumi.StringArrayOutput `pulumi:"tags"` + // Name of the OpenSearch dashboard db. + UiDatabase pulumi.StringOutput `pulumi:"uiDatabase"` + // Hostname for the OpenSearch dashboard. + UiHost pulumi.StringOutput `pulumi:"uiHost"` + // Password for the OpenSearch dashboard's default user. + UiPassword pulumi.StringOutput `pulumi:"uiPassword"` + // Network port that the OpenSearch dashboard is listening on. + UiPort pulumi.IntOutput `pulumi:"uiPort"` + // The full URI for connecting to the OpenSearch dashboard. + UiUri pulumi.StringOutput `pulumi:"uiUri"` + // Username for OpenSearch dashboard's default user. + UiUser pulumi.StringOutput `pulumi:"uiUser"` // The full URI for connecting to the database cluster. Uri pulumi.StringOutput `pulumi:"uri"` // Username for the cluster's default user. @@ -292,6 +304,8 @@ func NewDatabaseCluster(ctx *pulumi.Context, secrets := pulumi.AdditionalSecretOutputs([]string{ "password", "privateUri", + "uiPassword", + "uiUri", "uri", }) opts = append(opts, secrets) @@ -357,6 +371,18 @@ type databaseClusterState struct { StorageSizeMib *string `pulumi:"storageSizeMib"` // A list of tag names to be applied to the database cluster. Tags []string `pulumi:"tags"` + // Name of the OpenSearch dashboard db. + UiDatabase *string `pulumi:"uiDatabase"` + // Hostname for the OpenSearch dashboard. + UiHost *string `pulumi:"uiHost"` + // Password for the OpenSearch dashboard's default user. + UiPassword *string `pulumi:"uiPassword"` + // Network port that the OpenSearch dashboard is listening on. + UiPort *int `pulumi:"uiPort"` + // The full URI for connecting to the OpenSearch dashboard. + UiUri *string `pulumi:"uiUri"` + // Username for OpenSearch dashboard's default user. + UiUser *string `pulumi:"uiUser"` // The full URI for connecting to the database cluster. Uri *string `pulumi:"uri"` // Username for the cluster's default user. @@ -406,6 +432,18 @@ type DatabaseClusterState struct { StorageSizeMib pulumi.StringPtrInput // A list of tag names to be applied to the database cluster. Tags pulumi.StringArrayInput + // Name of the OpenSearch dashboard db. + UiDatabase pulumi.StringPtrInput + // Hostname for the OpenSearch dashboard. + UiHost pulumi.StringPtrInput + // Password for the OpenSearch dashboard's default user. + UiPassword pulumi.StringPtrInput + // Network port that the OpenSearch dashboard is listening on. + UiPort pulumi.IntPtrInput + // The full URI for connecting to the OpenSearch dashboard. + UiUri pulumi.StringPtrInput + // Username for OpenSearch dashboard's default user. + UiUser pulumi.StringPtrInput // The full URI for connecting to the database cluster. Uri pulumi.StringPtrInput // Username for the cluster's default user. @@ -668,6 +706,36 @@ func (o DatabaseClusterOutput) Tags() pulumi.StringArrayOutput { return o.ApplyT(func(v *DatabaseCluster) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput) } +// Name of the OpenSearch dashboard db. +func (o DatabaseClusterOutput) UiDatabase() pulumi.StringOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.UiDatabase }).(pulumi.StringOutput) +} + +// Hostname for the OpenSearch dashboard. +func (o DatabaseClusterOutput) UiHost() pulumi.StringOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.UiHost }).(pulumi.StringOutput) +} + +// Password for the OpenSearch dashboard's default user. +func (o DatabaseClusterOutput) UiPassword() pulumi.StringOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.UiPassword }).(pulumi.StringOutput) +} + +// Network port that the OpenSearch dashboard is listening on. +func (o DatabaseClusterOutput) UiPort() pulumi.IntOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.IntOutput { return v.UiPort }).(pulumi.IntOutput) +} + +// The full URI for connecting to the OpenSearch dashboard. +func (o DatabaseClusterOutput) UiUri() pulumi.StringOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.UiUri }).(pulumi.StringOutput) +} + +// Username for OpenSearch dashboard's default user. +func (o DatabaseClusterOutput) UiUser() pulumi.StringOutput { + return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.UiUser }).(pulumi.StringOutput) +} + // The full URI for connecting to the database cluster. func (o DatabaseClusterOutput) Uri() pulumi.StringOutput { return o.ApplyT(func(v *DatabaseCluster) pulumi.StringOutput { return v.Uri }).(pulumi.StringOutput) diff --git a/sdk/go/digitalocean/getDatabaseCluster.go b/sdk/go/digitalocean/getDatabaseCluster.go index caf7e163..171250c7 100644 --- a/sdk/go/digitalocean/getDatabaseCluster.go +++ b/sdk/go/digitalocean/getDatabaseCluster.go @@ -89,6 +89,18 @@ type LookupDatabaseClusterResult struct { Size string `pulumi:"size"` StorageSizeMib string `pulumi:"storageSizeMib"` Tags []string `pulumi:"tags"` + // Name of the OpenSearch dashboard db. + UiDatabase string `pulumi:"uiDatabase"` + // Hostname for the OpenSearch dashboard. + UiHost string `pulumi:"uiHost"` + // Password for the OpenSearch dashboard's default user. + UiPassword string `pulumi:"uiPassword"` + // Network port that the OpenSearch dashboard is listening on. + UiPort int `pulumi:"uiPort"` + // The full URI for connecting to the OpenSearch dashboard. + UiUri string `pulumi:"uiUri"` + // Username for OpenSearch dashboard's default user. + UiUser string `pulumi:"uiUser"` // The full URI for connecting to the database cluster. Uri string `pulumi:"uri"` // The uniform resource name of the database cluster. @@ -220,6 +232,36 @@ func (o LookupDatabaseClusterResultOutput) Tags() pulumi.StringArrayOutput { return o.ApplyT(func(v LookupDatabaseClusterResult) []string { return v.Tags }).(pulumi.StringArrayOutput) } +// Name of the OpenSearch dashboard db. +func (o LookupDatabaseClusterResultOutput) UiDatabase() pulumi.StringOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.UiDatabase }).(pulumi.StringOutput) +} + +// Hostname for the OpenSearch dashboard. +func (o LookupDatabaseClusterResultOutput) UiHost() pulumi.StringOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.UiHost }).(pulumi.StringOutput) +} + +// Password for the OpenSearch dashboard's default user. +func (o LookupDatabaseClusterResultOutput) UiPassword() pulumi.StringOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.UiPassword }).(pulumi.StringOutput) +} + +// Network port that the OpenSearch dashboard is listening on. +func (o LookupDatabaseClusterResultOutput) UiPort() pulumi.IntOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) int { return v.UiPort }).(pulumi.IntOutput) +} + +// The full URI for connecting to the OpenSearch dashboard. +func (o LookupDatabaseClusterResultOutput) UiUri() pulumi.StringOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.UiUri }).(pulumi.StringOutput) +} + +// Username for OpenSearch dashboard's default user. +func (o LookupDatabaseClusterResultOutput) UiUser() pulumi.StringOutput { + return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.UiUser }).(pulumi.StringOutput) +} + // The full URI for connecting to the database cluster. func (o LookupDatabaseClusterResultOutput) Uri() pulumi.StringOutput { return o.ApplyT(func(v LookupDatabaseClusterResult) string { return v.Uri }).(pulumi.StringOutput) diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java index b794aa17..f67e205f 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/DatabaseCluster.java @@ -540,6 +540,90 @@ public Output storageSizeMib() { public Output>> tags() { return Codegen.optional(this.tags); } + /** + * Name of the OpenSearch dashboard db. + * + */ + @Export(name="uiDatabase", refs={String.class}, tree="[0]") + private Output uiDatabase; + + /** + * @return Name of the OpenSearch dashboard db. + * + */ + public Output uiDatabase() { + return this.uiDatabase; + } + /** + * Hostname for the OpenSearch dashboard. + * + */ + @Export(name="uiHost", refs={String.class}, tree="[0]") + private Output uiHost; + + /** + * @return Hostname for the OpenSearch dashboard. + * + */ + public Output uiHost() { + return this.uiHost; + } + /** + * Password for the OpenSearch dashboard's default user. + * + */ + @Export(name="uiPassword", refs={String.class}, tree="[0]") + private Output uiPassword; + + /** + * @return Password for the OpenSearch dashboard's default user. + * + */ + public Output uiPassword() { + return this.uiPassword; + } + /** + * Network port that the OpenSearch dashboard is listening on. + * + */ + @Export(name="uiPort", refs={Integer.class}, tree="[0]") + private Output uiPort; + + /** + * @return Network port that the OpenSearch dashboard is listening on. + * + */ + public Output uiPort() { + return this.uiPort; + } + /** + * The full URI for connecting to the OpenSearch dashboard. + * + */ + @Export(name="uiUri", refs={String.class}, tree="[0]") + private Output uiUri; + + /** + * @return The full URI for connecting to the OpenSearch dashboard. + * + */ + public Output uiUri() { + return this.uiUri; + } + /** + * Username for OpenSearch dashboard's default user. + * + */ + @Export(name="uiUser", refs={String.class}, tree="[0]") + private Output uiUser; + + /** + * @return Username for OpenSearch dashboard's default user. + * + */ + public Output uiUser() { + return this.uiUser; + } /** * The full URI for connecting to the database cluster. * @@ -620,6 +704,8 @@ private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@N .additionalSecretOutputs(List.of( "password", "privateUri", + "uiPassword", + "uiUri", "uri" )) .build(); diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterState.java b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterState.java index 1fa112ae..7e6e10ed 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterState.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/inputs/DatabaseClusterState.java @@ -314,6 +314,96 @@ public Optional>> tags() { return Optional.ofNullable(this.tags); } + /** + * Name of the OpenSearch dashboard db. + * + */ + @Import(name="uiDatabase") + private @Nullable Output uiDatabase; + + /** + * @return Name of the OpenSearch dashboard db. + * + */ + public Optional> uiDatabase() { + return Optional.ofNullable(this.uiDatabase); + } + + /** + * Hostname for the OpenSearch dashboard. + * + */ + @Import(name="uiHost") + private @Nullable Output uiHost; + + /** + * @return Hostname for the OpenSearch dashboard. + * + */ + public Optional> uiHost() { + return Optional.ofNullable(this.uiHost); + } + + /** + * Password for the OpenSearch dashboard's default user. + * + */ + @Import(name="uiPassword") + private @Nullable Output uiPassword; + + /** + * @return Password for the OpenSearch dashboard's default user. + * + */ + public Optional> uiPassword() { + return Optional.ofNullable(this.uiPassword); + } + + /** + * Network port that the OpenSearch dashboard is listening on. + * + */ + @Import(name="uiPort") + private @Nullable Output uiPort; + + /** + * @return Network port that the OpenSearch dashboard is listening on. + * + */ + public Optional> uiPort() { + return Optional.ofNullable(this.uiPort); + } + + /** + * The full URI for connecting to the OpenSearch dashboard. + * + */ + @Import(name="uiUri") + private @Nullable Output uiUri; + + /** + * @return The full URI for connecting to the OpenSearch dashboard. + * + */ + public Optional> uiUri() { + return Optional.ofNullable(this.uiUri); + } + + /** + * Username for OpenSearch dashboard's default user. + * + */ + @Import(name="uiUser") + private @Nullable Output uiUser; + + /** + * @return Username for OpenSearch dashboard's default user. + * + */ + public Optional> uiUser() { + return Optional.ofNullable(this.uiUser); + } + /** * The full URI for connecting to the database cluster. * @@ -384,6 +474,12 @@ private DatabaseClusterState(DatabaseClusterState $) { this.sqlMode = $.sqlMode; this.storageSizeMib = $.storageSizeMib; this.tags = $.tags; + this.uiDatabase = $.uiDatabase; + this.uiHost = $.uiHost; + this.uiPassword = $.uiPassword; + this.uiPort = $.uiPort; + this.uiUri = $.uiUri; + this.uiUser = $.uiUser; this.uri = $.uri; this.user = $.user; this.version = $.version; @@ -875,6 +971,132 @@ public Builder tags(String... tags) { return tags(List.of(tags)); } + /** + * @param uiDatabase Name of the OpenSearch dashboard db. + * + * @return builder + * + */ + public Builder uiDatabase(@Nullable Output uiDatabase) { + $.uiDatabase = uiDatabase; + return this; + } + + /** + * @param uiDatabase Name of the OpenSearch dashboard db. + * + * @return builder + * + */ + public Builder uiDatabase(String uiDatabase) { + return uiDatabase(Output.of(uiDatabase)); + } + + /** + * @param uiHost Hostname for the OpenSearch dashboard. + * + * @return builder + * + */ + public Builder uiHost(@Nullable Output uiHost) { + $.uiHost = uiHost; + return this; + } + + /** + * @param uiHost Hostname for the OpenSearch dashboard. + * + * @return builder + * + */ + public Builder uiHost(String uiHost) { + return uiHost(Output.of(uiHost)); + } + + /** + * @param uiPassword Password for the OpenSearch dashboard's default user. + * + * @return builder + * + */ + public Builder uiPassword(@Nullable Output uiPassword) { + $.uiPassword = uiPassword; + return this; + } + + /** + * @param uiPassword Password for the OpenSearch dashboard's default user. + * + * @return builder + * + */ + public Builder uiPassword(String uiPassword) { + return uiPassword(Output.of(uiPassword)); + } + + /** + * @param uiPort Network port that the OpenSearch dashboard is listening on. + * + * @return builder + * + */ + public Builder uiPort(@Nullable Output uiPort) { + $.uiPort = uiPort; + return this; + } + + /** + * @param uiPort Network port that the OpenSearch dashboard is listening on. + * + * @return builder + * + */ + public Builder uiPort(Integer uiPort) { + return uiPort(Output.of(uiPort)); + } + + /** + * @param uiUri The full URI for connecting to the OpenSearch dashboard. + * + * @return builder + * + */ + public Builder uiUri(@Nullable Output uiUri) { + $.uiUri = uiUri; + return this; + } + + /** + * @param uiUri The full URI for connecting to the OpenSearch dashboard. + * + * @return builder + * + */ + public Builder uiUri(String uiUri) { + return uiUri(Output.of(uiUri)); + } + + /** + * @param uiUser Username for OpenSearch dashboard's default user. + * + * @return builder + * + */ + public Builder uiUser(@Nullable Output uiUser) { + $.uiUser = uiUser; + return this; + } + + /** + * @param uiUser Username for OpenSearch dashboard's default user. + * + * @return builder + * + */ + public Builder uiUser(String uiUser) { + return uiUser(Output.of(uiUser)); + } + /** * @param uri The full URI for connecting to the database cluster. * diff --git a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java index 20afaaab..84149ed0 100644 --- a/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java +++ b/sdk/java/src/main/java/com/pulumi/digitalocean/outputs/GetDatabaseClusterResult.java @@ -87,6 +87,36 @@ public final class GetDatabaseClusterResult { private String size; private String storageSizeMib; private @Nullable List tags; + /** + * @return Name of the OpenSearch dashboard db. + * + */ + private String uiDatabase; + /** + * @return Hostname for the OpenSearch dashboard. + * + */ + private String uiHost; + /** + * @return Password for the OpenSearch dashboard's default user. + * + */ + private String uiPassword; + /** + * @return Network port that the OpenSearch dashboard is listening on. + * + */ + private Integer uiPort; + /** + * @return The full URI for connecting to the OpenSearch dashboard. + * + */ + private String uiUri; + /** + * @return Username for OpenSearch dashboard's default user. + * + */ + private String uiUser; /** * @return The full URI for connecting to the database cluster. * @@ -216,6 +246,48 @@ public String storageSizeMib() { public List tags() { return this.tags == null ? List.of() : this.tags; } + /** + * @return Name of the OpenSearch dashboard db. + * + */ + public String uiDatabase() { + return this.uiDatabase; + } + /** + * @return Hostname for the OpenSearch dashboard. + * + */ + public String uiHost() { + return this.uiHost; + } + /** + * @return Password for the OpenSearch dashboard's default user. + * + */ + public String uiPassword() { + return this.uiPassword; + } + /** + * @return Network port that the OpenSearch dashboard is listening on. + * + */ + public Integer uiPort() { + return this.uiPort; + } + /** + * @return The full URI for connecting to the OpenSearch dashboard. + * + */ + public String uiUri() { + return this.uiUri; + } + /** + * @return Username for OpenSearch dashboard's default user. + * + */ + public String uiUser() { + return this.uiUser; + } /** * @return The full URI for connecting to the database cluster. * @@ -271,6 +343,12 @@ public static final class Builder { private String size; private String storageSizeMib; private @Nullable List tags; + private String uiDatabase; + private String uiHost; + private String uiPassword; + private Integer uiPort; + private String uiUri; + private String uiUser; private String uri; private String urn; private String user; @@ -295,6 +373,12 @@ public Builder(GetDatabaseClusterResult defaults) { this.size = defaults.size; this.storageSizeMib = defaults.storageSizeMib; this.tags = defaults.tags; + this.uiDatabase = defaults.uiDatabase; + this.uiHost = defaults.uiHost; + this.uiPassword = defaults.uiPassword; + this.uiPort = defaults.uiPort; + this.uiUri = defaults.uiUri; + this.uiUser = defaults.uiUser; this.uri = defaults.uri; this.urn = defaults.urn; this.user = defaults.user; @@ -442,6 +526,54 @@ public Builder tags(String... tags) { return tags(List.of(tags)); } @CustomType.Setter + public Builder uiDatabase(String uiDatabase) { + if (uiDatabase == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiDatabase"); + } + this.uiDatabase = uiDatabase; + return this; + } + @CustomType.Setter + public Builder uiHost(String uiHost) { + if (uiHost == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiHost"); + } + this.uiHost = uiHost; + return this; + } + @CustomType.Setter + public Builder uiPassword(String uiPassword) { + if (uiPassword == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiPassword"); + } + this.uiPassword = uiPassword; + return this; + } + @CustomType.Setter + public Builder uiPort(Integer uiPort) { + if (uiPort == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiPort"); + } + this.uiPort = uiPort; + return this; + } + @CustomType.Setter + public Builder uiUri(String uiUri) { + if (uiUri == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiUri"); + } + this.uiUri = uiUri; + return this; + } + @CustomType.Setter + public Builder uiUser(String uiUser) { + if (uiUser == null) { + throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uiUser"); + } + this.uiUser = uiUser; + return this; + } + @CustomType.Setter public Builder uri(String uri) { if (uri == null) { throw new MissingRequiredPropertyException("GetDatabaseClusterResult", "uri"); @@ -492,6 +624,12 @@ public GetDatabaseClusterResult build() { _resultValue.size = size; _resultValue.storageSizeMib = storageSizeMib; _resultValue.tags = tags; + _resultValue.uiDatabase = uiDatabase; + _resultValue.uiHost = uiHost; + _resultValue.uiPassword = uiPassword; + _resultValue.uiPort = uiPort; + _resultValue.uiUri = uiUri; + _resultValue.uiUser = uiUser; _resultValue.uri = uri; _resultValue.urn = urn; _resultValue.user = user; diff --git a/sdk/nodejs/databaseCluster.ts b/sdk/nodejs/databaseCluster.ts index 8320360c..b3f7cfcf 100644 --- a/sdk/nodejs/databaseCluster.ts +++ b/sdk/nodejs/databaseCluster.ts @@ -224,6 +224,30 @@ export class DatabaseCluster extends pulumi.CustomResource { * A list of tag names to be applied to the database cluster. */ public readonly tags!: pulumi.Output; + /** + * Name of the OpenSearch dashboard db. + */ + public /*out*/ readonly uiDatabase!: pulumi.Output; + /** + * Hostname for the OpenSearch dashboard. + */ + public /*out*/ readonly uiHost!: pulumi.Output; + /** + * Password for the OpenSearch dashboard's default user. + */ + public /*out*/ readonly uiPassword!: pulumi.Output; + /** + * Network port that the OpenSearch dashboard is listening on. + */ + public /*out*/ readonly uiPort!: pulumi.Output; + /** + * The full URI for connecting to the OpenSearch dashboard. + */ + public /*out*/ readonly uiUri!: pulumi.Output; + /** + * Username for OpenSearch dashboard's default user. + */ + public /*out*/ readonly uiUser!: pulumi.Output; /** * The full URI for connecting to the database cluster. */ @@ -271,6 +295,12 @@ export class DatabaseCluster extends pulumi.CustomResource { resourceInputs["sqlMode"] = state ? state.sqlMode : undefined; resourceInputs["storageSizeMib"] = state ? state.storageSizeMib : undefined; resourceInputs["tags"] = state ? state.tags : undefined; + resourceInputs["uiDatabase"] = state ? state.uiDatabase : undefined; + resourceInputs["uiHost"] = state ? state.uiHost : undefined; + resourceInputs["uiPassword"] = state ? state.uiPassword : undefined; + resourceInputs["uiPort"] = state ? state.uiPort : undefined; + resourceInputs["uiUri"] = state ? state.uiUri : undefined; + resourceInputs["uiUser"] = state ? state.uiUser : undefined; resourceInputs["uri"] = state ? state.uri : undefined; resourceInputs["user"] = state ? state.user : undefined; resourceInputs["version"] = state ? state.version : undefined; @@ -309,11 +339,17 @@ export class DatabaseCluster extends pulumi.CustomResource { resourceInputs["port"] = undefined /*out*/; resourceInputs["privateHost"] = undefined /*out*/; resourceInputs["privateUri"] = undefined /*out*/; + resourceInputs["uiDatabase"] = undefined /*out*/; + resourceInputs["uiHost"] = undefined /*out*/; + resourceInputs["uiPassword"] = undefined /*out*/; + resourceInputs["uiPort"] = undefined /*out*/; + resourceInputs["uiUri"] = undefined /*out*/; + resourceInputs["uiUser"] = undefined /*out*/; resourceInputs["uri"] = undefined /*out*/; resourceInputs["user"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); - const secretOpts = { additionalSecretOutputs: ["password", "privateUri", "uri"] }; + const secretOpts = { additionalSecretOutputs: ["password", "privateUri", "uiPassword", "uiUri", "uri"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(DatabaseCluster.__pulumiType, name, resourceInputs, opts); } @@ -400,6 +436,30 @@ export interface DatabaseClusterState { * A list of tag names to be applied to the database cluster. */ tags?: pulumi.Input[]>; + /** + * Name of the OpenSearch dashboard db. + */ + uiDatabase?: pulumi.Input; + /** + * Hostname for the OpenSearch dashboard. + */ + uiHost?: pulumi.Input; + /** + * Password for the OpenSearch dashboard's default user. + */ + uiPassword?: pulumi.Input; + /** + * Network port that the OpenSearch dashboard is listening on. + */ + uiPort?: pulumi.Input; + /** + * The full URI for connecting to the OpenSearch dashboard. + */ + uiUri?: pulumi.Input; + /** + * Username for OpenSearch dashboard's default user. + */ + uiUser?: pulumi.Input; /** * The full URI for connecting to the database cluster. */ diff --git a/sdk/nodejs/getDatabaseCluster.ts b/sdk/nodejs/getDatabaseCluster.ts index 954f74be..03a6a506 100644 --- a/sdk/nodejs/getDatabaseCluster.ts +++ b/sdk/nodejs/getDatabaseCluster.ts @@ -105,6 +105,30 @@ export interface GetDatabaseClusterResult { readonly size: string; readonly storageSizeMib: string; readonly tags?: string[]; + /** + * Name of the OpenSearch dashboard db. + */ + readonly uiDatabase: string; + /** + * Hostname for the OpenSearch dashboard. + */ + readonly uiHost: string; + /** + * Password for the OpenSearch dashboard's default user. + */ + readonly uiPassword: string; + /** + * Network port that the OpenSearch dashboard is listening on. + */ + readonly uiPort: number; + /** + * The full URI for connecting to the OpenSearch dashboard. + */ + readonly uiUri: string; + /** + * Username for OpenSearch dashboard's default user. + */ + readonly uiUser: string; /** * The full URI for connecting to the database cluster. */ diff --git a/sdk/python/pulumi_digitalocean/database_cluster.py b/sdk/python/pulumi_digitalocean/database_cluster.py index c1b828b4..588b752c 100644 --- a/sdk/python/pulumi_digitalocean/database_cluster.py +++ b/sdk/python/pulumi_digitalocean/database_cluster.py @@ -263,6 +263,12 @@ def __init__(__self__, *, sql_mode: Optional[pulumi.Input[str]] = None, storage_size_mib: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ui_database: Optional[pulumi.Input[str]] = None, + ui_host: Optional[pulumi.Input[str]] = None, + ui_password: Optional[pulumi.Input[str]] = None, + ui_port: Optional[pulumi.Input[int]] = None, + ui_uri: Optional[pulumi.Input[str]] = None, + ui_user: Optional[pulumi.Input[str]] = None, uri: Optional[pulumi.Input[str]] = None, user: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None): @@ -287,6 +293,12 @@ def __init__(__self__, *, :param pulumi.Input[str] sql_mode: A comma separated string specifying the SQL modes for a MySQL cluster. :param pulumi.Input[str] storage_size_mib: Defines the disk size, in MiB, allocated to the cluster. This can be adjusted on MySQL and PostreSQL clusters based on predefined ranges for each slug/droplet size. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag names to be applied to the database cluster. + :param pulumi.Input[str] ui_database: Name of the OpenSearch dashboard db. + :param pulumi.Input[str] ui_host: Hostname for the OpenSearch dashboard. + :param pulumi.Input[str] ui_password: Password for the OpenSearch dashboard's default user. + :param pulumi.Input[int] ui_port: Network port that the OpenSearch dashboard is listening on. + :param pulumi.Input[str] ui_uri: The full URI for connecting to the OpenSearch dashboard. + :param pulumi.Input[str] ui_user: Username for OpenSearch dashboard's default user. :param pulumi.Input[str] uri: The full URI for connecting to the database cluster. :param pulumi.Input[str] user: Username for the cluster's default user. :param pulumi.Input[str] version: Engine version used by the cluster (ex. `14` for PostgreSQL 14). @@ -332,6 +344,18 @@ def __init__(__self__, *, pulumi.set(__self__, "storage_size_mib", storage_size_mib) if tags is not None: pulumi.set(__self__, "tags", tags) + if ui_database is not None: + pulumi.set(__self__, "ui_database", ui_database) + if ui_host is not None: + pulumi.set(__self__, "ui_host", ui_host) + if ui_password is not None: + pulumi.set(__self__, "ui_password", ui_password) + if ui_port is not None: + pulumi.set(__self__, "ui_port", ui_port) + if ui_uri is not None: + pulumi.set(__self__, "ui_uri", ui_uri) + if ui_user is not None: + pulumi.set(__self__, "ui_user", ui_user) if uri is not None: pulumi.set(__self__, "uri", uri) if user is not None: @@ -576,6 +600,78 @@ def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "tags", value) + @property + @pulumi.getter(name="uiDatabase") + def ui_database(self) -> Optional[pulumi.Input[str]]: + """ + Name of the OpenSearch dashboard db. + """ + return pulumi.get(self, "ui_database") + + @ui_database.setter + def ui_database(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ui_database", value) + + @property + @pulumi.getter(name="uiHost") + def ui_host(self) -> Optional[pulumi.Input[str]]: + """ + Hostname for the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_host") + + @ui_host.setter + def ui_host(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ui_host", value) + + @property + @pulumi.getter(name="uiPassword") + def ui_password(self) -> Optional[pulumi.Input[str]]: + """ + Password for the OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_password") + + @ui_password.setter + def ui_password(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ui_password", value) + + @property + @pulumi.getter(name="uiPort") + def ui_port(self) -> Optional[pulumi.Input[int]]: + """ + Network port that the OpenSearch dashboard is listening on. + """ + return pulumi.get(self, "ui_port") + + @ui_port.setter + def ui_port(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "ui_port", value) + + @property + @pulumi.getter(name="uiUri") + def ui_uri(self) -> Optional[pulumi.Input[str]]: + """ + The full URI for connecting to the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_uri") + + @ui_uri.setter + def ui_uri(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ui_uri", value) + + @property + @pulumi.getter(name="uiUser") + def ui_user(self) -> Optional[pulumi.Input[str]]: + """ + Username for OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_user") + + @ui_user.setter + def ui_user(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "ui_user", value) + @property @pulumi.getter def uri(self) -> Optional[pulumi.Input[str]]: @@ -932,9 +1028,15 @@ def _internal_init(__self__, __props__.__dict__["port"] = None __props__.__dict__["private_host"] = None __props__.__dict__["private_uri"] = None + __props__.__dict__["ui_database"] = None + __props__.__dict__["ui_host"] = None + __props__.__dict__["ui_password"] = None + __props__.__dict__["ui_port"] = None + __props__.__dict__["ui_uri"] = None + __props__.__dict__["ui_user"] = None __props__.__dict__["uri"] = None __props__.__dict__["user"] = None - secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password", "privateUri", "uri"]) + secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password", "privateUri", "uiPassword", "uiUri", "uri"]) opts = pulumi.ResourceOptions.merge(opts, secret_opts) super(DatabaseCluster, __self__).__init__( 'digitalocean:index/databaseCluster:DatabaseCluster', @@ -966,6 +1068,12 @@ def get(resource_name: str, sql_mode: Optional[pulumi.Input[str]] = None, storage_size_mib: Optional[pulumi.Input[str]] = None, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + ui_database: Optional[pulumi.Input[str]] = None, + ui_host: Optional[pulumi.Input[str]] = None, + ui_password: Optional[pulumi.Input[str]] = None, + ui_port: Optional[pulumi.Input[int]] = None, + ui_uri: Optional[pulumi.Input[str]] = None, + ui_user: Optional[pulumi.Input[str]] = None, uri: Optional[pulumi.Input[str]] = None, user: Optional[pulumi.Input[str]] = None, version: Optional[pulumi.Input[str]] = None) -> 'DatabaseCluster': @@ -995,6 +1103,12 @@ def get(resource_name: str, :param pulumi.Input[str] sql_mode: A comma separated string specifying the SQL modes for a MySQL cluster. :param pulumi.Input[str] storage_size_mib: Defines the disk size, in MiB, allocated to the cluster. This can be adjusted on MySQL and PostreSQL clusters based on predefined ranges for each slug/droplet size. :param pulumi.Input[Sequence[pulumi.Input[str]]] tags: A list of tag names to be applied to the database cluster. + :param pulumi.Input[str] ui_database: Name of the OpenSearch dashboard db. + :param pulumi.Input[str] ui_host: Hostname for the OpenSearch dashboard. + :param pulumi.Input[str] ui_password: Password for the OpenSearch dashboard's default user. + :param pulumi.Input[int] ui_port: Network port that the OpenSearch dashboard is listening on. + :param pulumi.Input[str] ui_uri: The full URI for connecting to the OpenSearch dashboard. + :param pulumi.Input[str] ui_user: Username for OpenSearch dashboard's default user. :param pulumi.Input[str] uri: The full URI for connecting to the database cluster. :param pulumi.Input[str] user: Username for the cluster's default user. :param pulumi.Input[str] version: Engine version used by the cluster (ex. `14` for PostgreSQL 14). @@ -1024,6 +1138,12 @@ def get(resource_name: str, __props__.__dict__["sql_mode"] = sql_mode __props__.__dict__["storage_size_mib"] = storage_size_mib __props__.__dict__["tags"] = tags + __props__.__dict__["ui_database"] = ui_database + __props__.__dict__["ui_host"] = ui_host + __props__.__dict__["ui_password"] = ui_password + __props__.__dict__["ui_port"] = ui_port + __props__.__dict__["ui_uri"] = ui_uri + __props__.__dict__["ui_user"] = ui_user __props__.__dict__["uri"] = uri __props__.__dict__["user"] = user __props__.__dict__["version"] = version @@ -1186,6 +1306,54 @@ def tags(self) -> pulumi.Output[Optional[Sequence[str]]]: """ return pulumi.get(self, "tags") + @property + @pulumi.getter(name="uiDatabase") + def ui_database(self) -> pulumi.Output[str]: + """ + Name of the OpenSearch dashboard db. + """ + return pulumi.get(self, "ui_database") + + @property + @pulumi.getter(name="uiHost") + def ui_host(self) -> pulumi.Output[str]: + """ + Hostname for the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_host") + + @property + @pulumi.getter(name="uiPassword") + def ui_password(self) -> pulumi.Output[str]: + """ + Password for the OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_password") + + @property + @pulumi.getter(name="uiPort") + def ui_port(self) -> pulumi.Output[int]: + """ + Network port that the OpenSearch dashboard is listening on. + """ + return pulumi.get(self, "ui_port") + + @property + @pulumi.getter(name="uiUri") + def ui_uri(self) -> pulumi.Output[str]: + """ + The full URI for connecting to the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_uri") + + @property + @pulumi.getter(name="uiUser") + def ui_user(self) -> pulumi.Output[str]: + """ + Username for OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_user") + @property @pulumi.getter def uri(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_digitalocean/get_database_cluster.py b/sdk/python/pulumi_digitalocean/get_database_cluster.py index 08e4e540..72327094 100644 --- a/sdk/python/pulumi_digitalocean/get_database_cluster.py +++ b/sdk/python/pulumi_digitalocean/get_database_cluster.py @@ -22,7 +22,7 @@ class GetDatabaseClusterResult: """ A collection of values returned by getDatabaseCluster. """ - def __init__(__self__, database=None, engine=None, host=None, id=None, maintenance_windows=None, name=None, node_count=None, password=None, port=None, private_host=None, private_network_uuid=None, private_uri=None, project_id=None, region=None, size=None, storage_size_mib=None, tags=None, uri=None, urn=None, user=None, version=None): + def __init__(__self__, database=None, engine=None, host=None, id=None, maintenance_windows=None, name=None, node_count=None, password=None, port=None, private_host=None, private_network_uuid=None, private_uri=None, project_id=None, region=None, size=None, storage_size_mib=None, tags=None, ui_database=None, ui_host=None, ui_password=None, ui_port=None, ui_uri=None, ui_user=None, uri=None, urn=None, user=None, version=None): if database and not isinstance(database, str): raise TypeError("Expected argument 'database' to be a str") pulumi.set(__self__, "database", database) @@ -74,6 +74,24 @@ def __init__(__self__, database=None, engine=None, host=None, id=None, maintenan if tags and not isinstance(tags, list): raise TypeError("Expected argument 'tags' to be a list") pulumi.set(__self__, "tags", tags) + if ui_database and not isinstance(ui_database, str): + raise TypeError("Expected argument 'ui_database' to be a str") + pulumi.set(__self__, "ui_database", ui_database) + if ui_host and not isinstance(ui_host, str): + raise TypeError("Expected argument 'ui_host' to be a str") + pulumi.set(__self__, "ui_host", ui_host) + if ui_password and not isinstance(ui_password, str): + raise TypeError("Expected argument 'ui_password' to be a str") + pulumi.set(__self__, "ui_password", ui_password) + if ui_port and not isinstance(ui_port, int): + raise TypeError("Expected argument 'ui_port' to be a int") + pulumi.set(__self__, "ui_port", ui_port) + if ui_uri and not isinstance(ui_uri, str): + raise TypeError("Expected argument 'ui_uri' to be a str") + pulumi.set(__self__, "ui_uri", ui_uri) + if ui_user and not isinstance(ui_user, str): + raise TypeError("Expected argument 'ui_user' to be a str") + pulumi.set(__self__, "ui_user", ui_user) if uri and not isinstance(uri, str): raise TypeError("Expected argument 'uri' to be a str") pulumi.set(__self__, "uri", uri) @@ -214,6 +232,54 @@ def storage_size_mib(self) -> str: def tags(self) -> Optional[Sequence[str]]: return pulumi.get(self, "tags") + @property + @pulumi.getter(name="uiDatabase") + def ui_database(self) -> str: + """ + Name of the OpenSearch dashboard db. + """ + return pulumi.get(self, "ui_database") + + @property + @pulumi.getter(name="uiHost") + def ui_host(self) -> str: + """ + Hostname for the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_host") + + @property + @pulumi.getter(name="uiPassword") + def ui_password(self) -> str: + """ + Password for the OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_password") + + @property + @pulumi.getter(name="uiPort") + def ui_port(self) -> int: + """ + Network port that the OpenSearch dashboard is listening on. + """ + return pulumi.get(self, "ui_port") + + @property + @pulumi.getter(name="uiUri") + def ui_uri(self) -> str: + """ + The full URI for connecting to the OpenSearch dashboard. + """ + return pulumi.get(self, "ui_uri") + + @property + @pulumi.getter(name="uiUser") + def ui_user(self) -> str: + """ + Username for OpenSearch dashboard's default user. + """ + return pulumi.get(self, "ui_user") + @property @pulumi.getter def uri(self) -> str: @@ -270,6 +336,12 @@ def __await__(self): size=self.size, storage_size_mib=self.storage_size_mib, tags=self.tags, + ui_database=self.ui_database, + ui_host=self.ui_host, + ui_password=self.ui_password, + ui_port=self.ui_port, + ui_uri=self.ui_uri, + ui_user=self.ui_user, uri=self.uri, urn=self.urn, user=self.user, @@ -319,6 +391,12 @@ def get_database_cluster(name: Optional[str] = None, size=pulumi.get(__ret__, 'size'), storage_size_mib=pulumi.get(__ret__, 'storage_size_mib'), tags=pulumi.get(__ret__, 'tags'), + ui_database=pulumi.get(__ret__, 'ui_database'), + ui_host=pulumi.get(__ret__, 'ui_host'), + ui_password=pulumi.get(__ret__, 'ui_password'), + ui_port=pulumi.get(__ret__, 'ui_port'), + ui_uri=pulumi.get(__ret__, 'ui_uri'), + ui_user=pulumi.get(__ret__, 'ui_user'), uri=pulumi.get(__ret__, 'uri'), urn=pulumi.get(__ret__, 'urn'), user=pulumi.get(__ret__, 'user'), diff --git a/upstream b/upstream index 12eceb8d..7ef4b10d 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 12eceb8dd4f3fa76aaa74f990040f282405ff88e +Subproject commit 7ef4b10da1e1a8bcf553abf3b6adeb46496f2442