getLedger

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

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.qldb.getLedger({
name: "an_example_ledger",
});
import pulumi
import pulumi_aws as aws
example = aws.qldb.get_ledger(name="an_example_ledger")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Qldb.GetLedger.Invoke(new()
{
Name = "an_example_ledger",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/qldb"
"github.com/pulumi/pulumi/sdk/v3/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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.qldb.QldbFunctions;
import com.pulumi.aws.qldb.inputs.GetLedgerArgs;
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 example = QldbFunctions.getLedger(GetLedgerArgs.builder()
.name("an_example_ledger")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:qldb:getLedger
arguments:
name: an_example_ledger

Return

A collection of values returned by getLedger.

Parameters

argument

A collection of arguments for invoking getLedger.


suspend fun getLedger(name: String, tags: Map<String, String>? = null): GetLedgerResult

Return

A collection of values returned by getLedger.

Parameters

name

Friendly name of the ledger to match.

tags

See also


suspend fun getLedger(argument: suspend GetLedgerPlainArgsBuilder.() -> Unit): GetLedgerResult

Return

A collection of values returned by getLedger.

Parameters

argument

Builder for com.pulumi.aws.qldb.kotlin.inputs.GetLedgerPlainArgs.

See also