Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash
upstash.getRedisDatabase
Explore with Pulumi AI
Example Usage
using Pulumi;
using Upstash = Pulumi.Upstash;
class MyStack : Stack
{
public MyStack()
{
var exampleDBData = Output.Create(Upstash.GetRedisDatabase.InvokeAsync(new Upstash.GetRedisDatabaseArgs
{
DatabaseId = resource.Upstash_redis_database.ExampleDB.Database_id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-upstash/sdk/go/upstash"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/upstash/pulumi-upstash/sdk/go/upstash"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := upstash.LookupRedisDatabase(ctx, &GetRedisDatabaseArgs{
DatabaseId: resource.Upstash_redis_database.ExampleDB.Database_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleDBData = Output.of(UpstashFunctions.getRedisDatabase(GetRedisDatabaseArgs.builder()
.databaseId(resource.upstash_redis_database().exampleDB().database_id())
.build()));
}
}
import pulumi
import pulumi_upstash as upstash
example_db_data = upstash.get_redis_database(database_id=resource["upstash_redis_database"]["exampleDB"]["database_id"])
import * as pulumi from "@pulumi/pulumi";
import * as upstash from "@pulumi/upstash";
const exampleDBData = upstash.getRedisDatabase({
databaseId: resource.upstash_redis_database.exampleDB.database_id,
});
variables:
exampleDBData:
Fn::Invoke:
Function: upstash:getRedisDatabase
Arguments:
databaseId: ${resource.upstash_redis_database.exampleDB.database_id}
Using getRedisDatabase
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRedisDatabase(args: GetRedisDatabaseArgs, opts?: InvokeOptions): Promise<GetRedisDatabaseResult>
function getRedisDatabaseOutput(args: GetRedisDatabaseOutputArgs, opts?: InvokeOptions): Output<GetRedisDatabaseResult>
def get_redis_database(database_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRedisDatabaseResult
def get_redis_database_output(database_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRedisDatabaseResult]
func LookupRedisDatabase(ctx *Context, args *LookupRedisDatabaseArgs, opts ...InvokeOption) (*LookupRedisDatabaseResult, error)
func LookupRedisDatabaseOutput(ctx *Context, args *LookupRedisDatabaseOutputArgs, opts ...InvokeOption) LookupRedisDatabaseResultOutput
> Note: This function is named LookupRedisDatabase
in the Go SDK.
public static class GetRedisDatabase
{
public static Task<GetRedisDatabaseResult> InvokeAsync(GetRedisDatabaseArgs args, InvokeOptions? opts = null)
public static Output<GetRedisDatabaseResult> Invoke(GetRedisDatabaseInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRedisDatabaseResult> getRedisDatabase(GetRedisDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: upstash:index/getRedisDatabase:getRedisDatabase
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Id string
- Database
Id string
- database
Id String
- database
Id string
- database_
id str
- database
Id String
getRedisDatabase Result
The following output properties are available:
- Auto
Scale bool - Consistent bool
- Creation
Time int - Database
Id string - Database
Name string - Database
Type string - Db
Daily intBandwidth Limit - Db
Disk intThreshold - Db
Max intClients - Db
Max intCommands Per Second - Db
Max intEntry Size - Db
Max intRequest Size - Db
Memory intThreshold - Endpoint string
- Eviction bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Multizone bool
- Password string
- Port int
- Primary
Region string - Read
Only stringRest Token - Read
Regions List<string> - Region string
- Rest
Token string - State string
- Tls bool
- User
Email string
- Auto
Scale bool - Consistent bool
- Creation
Time int - Database
Id string - Database
Name string - Database
Type string - Db
Daily intBandwidth Limit - Db
Disk intThreshold - Db
Max intClients - Db
Max intCommands Per Second - Db
Max intEntry Size - Db
Max intRequest Size - Db
Memory intThreshold - Endpoint string
- Eviction bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Multizone bool
- Password string
- Port int
- Primary
Region string - Read
Only stringRest Token - Read
Regions []string - Region string
- Rest
Token string - State string
- Tls bool
- User
Email string
- auto
Scale Boolean - consistent Boolean
- creation
Time Integer - database
Id String - database
Name String - database
Type String - db
Daily IntegerBandwidth Limit - db
Disk IntegerThreshold - db
Max IntegerClients - db
Max IntegerCommands Per Second - db
Max IntegerEntry Size - db
Max IntegerRequest Size - db
Memory IntegerThreshold - endpoint String
- eviction Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- multizone Boolean
- password String
- port Integer
- primary
Region String - read
Only StringRest Token - read
Regions List<String> - region String
- rest
Token String - state String
- tls Boolean
- user
Email String
- auto
Scale boolean - consistent boolean
- creation
Time number - database
Id string - database
Name string - database
Type string - db
Daily numberBandwidth Limit - db
Disk numberThreshold - db
Max numberClients - db
Max numberCommands Per Second - db
Max numberEntry Size - db
Max numberRequest Size - db
Memory numberThreshold - endpoint string
- eviction boolean
- id string
- The provider-assigned unique ID for this managed resource.
- multizone boolean
- password string
- port number
- primary
Region string - read
Only stringRest Token - read
Regions string[] - region string
- rest
Token string - state string
- tls boolean
- user
Email string
- auto_
scale bool - consistent bool
- creation_
time int - database_
id str - database_
name str - database_
type str - db_
daily_ intbandwidth_ limit - db_
disk_ intthreshold - db_
max_ intclients - db_
max_ intcommands_ per_ second - db_
max_ intentry_ size - db_
max_ intrequest_ size - db_
memory_ intthreshold - endpoint str
- eviction bool
- id str
- The provider-assigned unique ID for this managed resource.
- multizone bool
- password str
- port int
- primary_
region str - read_
only_ strrest_ token - read_
regions Sequence[str] - region str
- rest_
token str - state str
- tls bool
- user_
email str
- auto
Scale Boolean - consistent Boolean
- creation
Time Number - database
Id String - database
Name String - database
Type String - db
Daily NumberBandwidth Limit - db
Disk NumberThreshold - db
Max NumberClients - db
Max NumberCommands Per Second - db
Max NumberEntry Size - db
Max NumberRequest Size - db
Memory NumberThreshold - endpoint String
- eviction Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- multizone Boolean
- password String
- port Number
- primary
Region String - read
Only StringRest Token - read
Regions List<String> - region String
- rest
Token String - state String
- tls Boolean
- user
Email String
Package Details
- Repository
- upstash upstash/pulumi-upstash
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
upstash
Terraform Provider.