Class 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 = falsemust 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
{
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Qldb
Assembly: Pulumi.Aws.dll
Syntax
public class Ledger : CustomResource
Constructors
View SourceLedger(String, LedgerArgs, CustomResourceOptions)
Create a Ledger resource with the given unique name, arguments, and options.
Declaration
public Ledger(string name, LedgerArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| LedgerArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
The ARN of the QLDB Ledger
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
DeletionProtection
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.
Declaration
public Output<bool?> DeletionProtection { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The friendly name for the QLDB Ledger instance. This is atuo generated by default.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value mapping of resource tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(String, Input<String>, LedgerState, CustomResourceOptions)
Get an existing Ledger resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Ledger Get(string name, Input<string> id, LedgerState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| LedgerState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Ledger |