GetLedger

Use this data source to fetch information about a Quantum Ledger Database.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Qldb.GetLedger.InvokeAsync(new Aws.Qldb.GetLedgerArgs
        {
            Name = "an_example_ledger",
        }));
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/qldb"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := qldb.LookupLedger(ctx, &qldb.LookupLedgerArgs{
            Name: "an_example_ledger",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

example = aws.qldb.get_ledger(name="an_example_ledger")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.qldb.getLedger({
    name: "an_example_ledger",
}, { async: true }));

Using GetLedger

function getLedger(args: GetLedgerArgs, opts?: InvokeOptions): Promise<GetLedgerResult>
function  get_ledger(name=None, opts=None)
func LookupLedger(ctx *Context, args *LookupLedgerArgs, opts ...InvokeOption) (*LookupLedgerResult, error)

Note: This function is named LookupLedger in the Go SDK.

public static class GetLedger {
    public static Task<GetLedgerResult> InvokeAsync(GetLedgerArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The friendly name of the ledger to match.

Name string

The friendly name of the ledger to match.

name string

The friendly name of the ledger to match.

name str

The friendly name of the ledger to match.

GetLedger Result

The following output properties are available:

Arn string

Amazon Resource Name (ARN) of the ledger.

DeletionProtection bool

Deletion protection on the QLDB Ledger instance. Set to true by default.

Id string

The provider-assigned unique ID for this managed resource.

Name string
Arn string

Amazon Resource Name (ARN) of the ledger.

DeletionProtection bool

Deletion protection on the QLDB Ledger instance. Set to true by default.

Id string

The provider-assigned unique ID for this managed resource.

Name string
arn string

Amazon Resource Name (ARN) of the ledger.

deletionProtection boolean

Deletion protection on the QLDB Ledger instance. Set to true by default.

id string

The provider-assigned unique ID for this managed resource.

name string
arn str

Amazon Resource Name (ARN) of the ledger.

deletion_protection bool

Deletion protection on the QLDB Ledger instance. Set to true by default.

id str

The provider-assigned unique ID for this managed resource.

name str

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.