LedgerArgs

data class LedgerArgs(val deletionProtection: Output<Boolean>? = null, val kmsKey: Output<String>? = null, val name: Output<String>? = null, val permissionsMode: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LedgerArgs>

Provides an AWS Quantum Ledger Database (QLDB) resource

NOTE: Deletion protection is enabled by default. To successfully delete this resource via this provider, deletion_protection = false must be applied before attempting deletion.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const sample_ledger = new aws.qldb.Ledger("sample-ledger", {
name: "sample-ledger",
permissionsMode: "STANDARD",
});
import pulumi
import pulumi_aws as aws
sample_ledger = aws.qldb.Ledger("sample-ledger",
name="sample-ledger",
permissions_mode="STANDARD")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var sample_ledger = new Aws.Qldb.Ledger("sample-ledger", new()
{
Name = "sample-ledger",
PermissionsMode = "STANDARD",
});
});
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.NewLedger(ctx, "sample-ledger", &qldb.LedgerArgs{
Name: pulumi.String("sample-ledger"),
PermissionsMode: pulumi.String("STANDARD"),
})
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.Ledger;
import com.pulumi.aws.qldb.LedgerArgs;
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) {
var sample_ledger = new Ledger("sample-ledger", LedgerArgs.builder()
.name("sample-ledger")
.permissionsMode("STANDARD")
.build());
}
}
resources:
sample-ledger:
type: aws:qldb:Ledger
properties:
name: sample-ledger
permissionsMode: STANDARD

Import

Using pulumi import, import QLDB Ledgers using the name. For example:

$ pulumi import aws:qldb/ledger:Ledger sample-ledger sample-ledger

Constructors

Link copied to clipboard
constructor(deletionProtection: Output<Boolean>? = null, kmsKey: Output<String>? = null, name: Output<String>? = null, permissionsMode: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val deletionProtection: Output<Boolean>? = null

The deletion protection for the QLDB Ledger instance. By default it is true. To delete this resource via the provider, this value must be configured to false and applied first before attempting deletion.

Link copied to clipboard
val kmsKey: Output<String>? = null

The key in AWS Key Management Service (AWS KMS) to use for encryption of data at rest in the ledger. For more information, see the AWS documentation. Valid values are "AWS_OWNED_KMS_KEY" to use an AWS KMS key that is owned and managed by AWS on your behalf, or the ARN of a valid symmetric customer managed KMS key.

Link copied to clipboard
val name: Output<String>? = null

The friendly name for the QLDB Ledger instance. By default generated by the provider.

Link copied to clipboard
val permissionsMode: Output<String>? = null

The permissions mode for the QLDB ledger instance. Specify either ALLOW_ALL or STANDARD.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): LedgerArgs