Ledger

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var sample_ledger = new Aws.Qldb.Ledger("sample-ledger", new Aws.Qldb.LedgerArgs
        {
        });
    }

}
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.NewLedger(ctx, "sample_ledger", nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

sample_ledger = aws.qldb.Ledger("sample-ledger")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const sample_ledger = new aws.qldb.Ledger("sample-ledger", {});

Create a Ledger Resource

new Ledger(name: string, args?: LedgerArgs, opts?: CustomResourceOptions);
def Ledger(resource_name, opts=None, deletion_protection=None, name=None, tags=None, __props__=None);
func NewLedger(ctx *Context, name string, args *LedgerArgs, opts ...ResourceOption) (*Ledger, error)
public Ledger(string name, LedgerArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args LedgerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LedgerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LedgerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Ledger Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Ledger resource accepts the following input properties:

DeletionProtection bool

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

Name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

Tags Dictionary<string, string>

Key-value mapping of resource tags

DeletionProtection bool

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

Name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

Tags map[string]string

Key-value mapping of resource tags

deletionProtection boolean

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

name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

tags {[key: string]: string}

Key-value mapping of resource tags

deletion_protection bool

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

name str

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

tags Dict[str, str]

Key-value mapping of resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the Ledger resource produces the following output properties:

Arn string

The ARN of the QLDB Ledger

Id string
The provider-assigned unique ID for this managed resource.
Arn string

The ARN of the QLDB Ledger

Id string
The provider-assigned unique ID for this managed resource.
arn string

The ARN of the QLDB Ledger

id string
The provider-assigned unique ID for this managed resource.
arn str

The ARN of the QLDB Ledger

id str
The provider-assigned unique ID for this managed resource.

Look up an Existing Ledger Resource

Get an existing Ledger resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: LedgerState, opts?: CustomResourceOptions): Ledger
static get(resource_name, id, opts=None, arn=None, deletion_protection=None, name=None, tags=None, __props__=None);
func GetLedger(ctx *Context, name string, id IDInput, state *LedgerState, opts ...ResourceOption) (*Ledger, error)
public static Ledger Get(string name, Input<string> id, LedgerState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Arn string

The ARN of the QLDB Ledger

DeletionProtection bool

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

Name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

Tags Dictionary<string, string>

Key-value mapping of resource tags

Arn string

The ARN of the QLDB Ledger

DeletionProtection bool

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

Name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

Tags map[string]string

Key-value mapping of resource tags

arn string

The ARN of the QLDB Ledger

deletionProtection boolean

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

name string

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

tags {[key: string]: string}

Key-value mapping of resource tags

arn str

The ARN of the QLDB Ledger

deletion_protection bool

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

name str

The friendly name for the QLDB Ledger instance. This is atuo generated by default.

tags Dict[str, str]

Key-value mapping of resource tags

Package Details

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