Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
published on Wednesday, Oct 28, 2026 by Pulumi
Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
published on Wednesday, Oct 28, 2026 by Pulumi
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")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/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
})
}
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 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.ArrayList;
import java.util.Arrays;
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
terraform {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_qldb_ledger" "example" {
name = "an_example_ledger"
}
Using getLedger
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 getLedger(args: GetLedgerArgs, opts?: InvokeOptions): Promise<GetLedgerResult>
function getLedgerOutput(args: GetLedgerOutputArgs, opts?: InvokeOutputOptions): Output<GetLedgerResult>def get_ledger(name: Optional[str] = None,
region: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetLedgerResult
def get_ledger_output(name: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
tags: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetLedgerResult]func LookupLedger(ctx *Context, args *LookupLedgerArgs, opts ...InvokeOption) (*LookupLedgerResult, error)
func LookupLedgerOutput(ctx *Context, args *LookupLedgerOutputArgs, opts ...InvokeOption) LookupLedgerResultOutput> Note: This function is named LookupLedger in the Go SDK.
public static class GetLedger
{
public static Task<GetLedgerResult> InvokeAsync(GetLedgerArgs args, InvokeOptions? opts = null)
public static Output<GetLedgerResult> Invoke(GetLedgerInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetLedgerResult> Invoke(GetLedgerInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetLedgerResult> getLedger(GetLedgerArgs args, InvokeOptions options)
public static Output<GetLedgerResult> getLedger(GetLedgerArgs args, InvokeOptions options)
public static Output<GetLedgerResult> getLedger(GetLedgerArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:qldb/getLedger:getLedger
arguments:
# arguments dictionarydata "aws_qldb_get_ledger" "name" {
# arguments
}The following arguments are supported:
getLedger Result
The following output properties are available:
- Arn string
- ARN of the QLDB Ledger.
- Deletion
Protection bool - Deletion protection setting of the QLDB Ledger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key string - KMS key used for encryption of data at rest in the ledger.
- Name string
- Permissions
Mode string - Permissions mode of the QLDB Ledger.
- Region string
- Dictionary<string, string>
- Map of tags assigned to the resource.
- Arn string
- ARN of the QLDB Ledger.
- Deletion
Protection bool - Deletion protection setting of the QLDB Ledger.
- Id string
- The provider-assigned unique ID for this managed resource.
- Kms
Key string - KMS key used for encryption of data at rest in the ledger.
- Name string
- Permissions
Mode string - Permissions mode of the QLDB Ledger.
- Region string
- map[string]string
- Map of tags assigned to the resource.
- arn string
- ARN of the QLDB Ledger.
- deletion_
protection bool - Deletion protection setting of the QLDB Ledger.
- id string
- The provider-assigned unique ID for this managed resource.
- kms_
key string - KMS key used for encryption of data at rest in the ledger.
- name string
- permissions_
mode string - Permissions mode of the QLDB Ledger.
- region string
- map(string)
- Map of tags assigned to the resource.
- arn String
- ARN of the QLDB Ledger.
- deletion
Protection Boolean - Deletion protection setting of the QLDB Ledger.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key String - KMS key used for encryption of data at rest in the ledger.
- name String
- permissions
Mode String - Permissions mode of the QLDB Ledger.
- region String
- Map<String,String>
- Map of tags assigned to the resource.
- arn string
- ARN of the QLDB Ledger.
- deletion
Protection boolean - Deletion protection setting of the QLDB Ledger.
- id string
- The provider-assigned unique ID for this managed resource.
- kms
Key string - KMS key used for encryption of data at rest in the ledger.
- name string
- permissions
Mode string - Permissions mode of the QLDB Ledger.
- region string
- {[key: string]: string}
- Map of tags assigned to the resource.
- arn str
- ARN of the QLDB Ledger.
- deletion_
protection bool - Deletion protection setting of the QLDB Ledger.
- id str
- The provider-assigned unique ID for this managed resource.
- kms_
key str - KMS key used for encryption of data at rest in the ledger.
- name str
- permissions_
mode str - Permissions mode of the QLDB Ledger.
- region str
- Mapping[str, str]
- Map of tags assigned to the resource.
- arn String
- ARN of the QLDB Ledger.
- deletion
Protection Boolean - Deletion protection setting of the QLDB Ledger.
- id String
- The provider-assigned unique ID for this managed resource.
- kms
Key String - KMS key used for encryption of data at rest in the ledger.
- name String
- permissions
Mode String - Permissions mode of the QLDB Ledger.
- region String
- Map<String>
- Map of tags assigned to the resource.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.52.1
published on Wednesday, Oct 28, 2026 by Pulumi
published on Wednesday, Oct 28, 2026 by Pulumi