1. Packages
  2. Scaleway
  3. API Docs
  4. getDocumentdbDatabase
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.getDocumentdbDatabase

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Gets information about DocumentDB database.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumi/scaleway";
    
    const main = scaleway.getDocumentdbDatabase({
        instanceId: "11111111-1111-1111-1111-111111111111",
        name: "foobar",
    });
    
    import pulumi
    import pulumi_scaleway as scaleway
    
    main = scaleway.get_documentdb_database(instance_id="11111111-1111-1111-1111-111111111111",
        name="foobar")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := scaleway.LookupDocumentdbDatabase(ctx, &scaleway.LookupDocumentdbDatabaseArgs{
    			InstanceId: "11111111-1111-1111-1111-111111111111",
    			Name:       pulumi.StringRef("foobar"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumi.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var main = Scaleway.GetDocumentdbDatabase.Invoke(new()
        {
            InstanceId = "11111111-1111-1111-1111-111111111111",
            Name = "foobar",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetDocumentdbDatabaseArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var main = ScalewayFunctions.getDocumentdbDatabase(GetDocumentdbDatabaseArgs.builder()
                .instanceId("11111111-1111-1111-1111-111111111111")
                .name("foobar")
                .build());
    
        }
    }
    
    variables:
      main:
        fn::invoke:
          Function: scaleway:getDocumentdbDatabase
          Arguments:
            instanceId: 11111111-1111-1111-1111-111111111111
            name: foobar
    

    Using getDocumentdbDatabase

    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 getDocumentdbDatabase(args: GetDocumentdbDatabaseArgs, opts?: InvokeOptions): Promise<GetDocumentdbDatabaseResult>
    function getDocumentdbDatabaseOutput(args: GetDocumentdbDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDocumentdbDatabaseResult>
    def get_documentdb_database(instance_id: Optional[str] = None,
                                name: Optional[str] = None,
                                region: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetDocumentdbDatabaseResult
    def get_documentdb_database_output(instance_id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                region: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetDocumentdbDatabaseResult]
    func LookupDocumentdbDatabase(ctx *Context, args *LookupDocumentdbDatabaseArgs, opts ...InvokeOption) (*LookupDocumentdbDatabaseResult, error)
    func LookupDocumentdbDatabaseOutput(ctx *Context, args *LookupDocumentdbDatabaseOutputArgs, opts ...InvokeOption) LookupDocumentdbDatabaseResultOutput

    > Note: This function is named LookupDocumentdbDatabase in the Go SDK.

    public static class GetDocumentdbDatabase 
    {
        public static Task<GetDocumentdbDatabaseResult> InvokeAsync(GetDocumentdbDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetDocumentdbDatabaseResult> Invoke(GetDocumentdbDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDocumentdbDatabaseResult> getDocumentdbDatabase(GetDocumentdbDatabaseArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getDocumentdbDatabase:getDocumentdbDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The DocumentDB instance ID.
    Name string
    The name of the DocumentDB instance.
    Region string
    InstanceId string
    The DocumentDB instance ID.
    Name string
    The name of the DocumentDB instance.
    Region string
    instanceId String
    The DocumentDB instance ID.
    name String
    The name of the DocumentDB instance.
    region String
    instanceId string
    The DocumentDB instance ID.
    name string
    The name of the DocumentDB instance.
    region string
    instance_id str
    The DocumentDB instance ID.
    name str
    The name of the DocumentDB instance.
    region str
    instanceId String
    The DocumentDB instance ID.
    name String
    The name of the DocumentDB instance.
    region String

    getDocumentdbDatabase Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Managed bool
    Whether the database is managed or not.
    Owner string
    The name of the owner of the database.
    ProjectId string
    Size string
    Size of the database (in bytes).
    Name string
    Region string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    Managed bool
    Whether the database is managed or not.
    Owner string
    The name of the owner of the database.
    ProjectId string
    Size string
    Size of the database (in bytes).
    Name string
    Region string
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    managed Boolean
    Whether the database is managed or not.
    owner String
    The name of the owner of the database.
    projectId String
    size String
    Size of the database (in bytes).
    name String
    region String
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    managed boolean
    Whether the database is managed or not.
    owner string
    The name of the owner of the database.
    projectId string
    size string
    Size of the database (in bytes).
    name string
    region string
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    managed bool
    Whether the database is managed or not.
    owner str
    The name of the owner of the database.
    project_id str
    size str
    Size of the database (in bytes).
    name str
    region str
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    managed Boolean
    Whether the database is managed or not.
    owner String
    The name of the owner of the database.
    projectId String
    size String
    Size of the database (in bytes).
    name String
    region String

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse