Documentation ¶
Index ¶
- type Ledger
- func (*Ledger) ElementType() reflect.Type
- func (i *Ledger) ToLedgerOutput() LedgerOutput
- func (i *Ledger) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput
- func (i *Ledger) ToLedgerPtrOutput() LedgerPtrOutput
- func (i *Ledger) ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput
- type LedgerArgs
- type LedgerArray
- type LedgerArrayInput
- type LedgerArrayOutput
- type LedgerInput
- type LedgerMap
- type LedgerMapInput
- type LedgerMapOutput
- type LedgerOutput
- func (LedgerOutput) ElementType() reflect.Type
- func (o LedgerOutput) ToLedgerOutput() LedgerOutput
- func (o LedgerOutput) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput
- func (o LedgerOutput) ToLedgerPtrOutput() LedgerPtrOutput
- func (o LedgerOutput) ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput
- type LedgerPtrInput
- type LedgerPtrOutput
- type LedgerState
- type LookupLedgerArgs
- type LookupLedgerResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct { pulumi.CustomResourceState // The ARN of the QLDB Ledger Arn pulumi.StringOutput `pulumi:"arn"` // 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. DeletionProtection pulumi.BoolPtrOutput `pulumi:"deletionProtection"` // The friendly name for the QLDB Ledger instance. This is atuo generated by default. Name pulumi.StringOutput `pulumi:"name"` // Key-value mapping of resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` // A map of tags assigned to the resource, including those inherited from the provider. TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"` }
Provides an AWS Quantum Ledger Database (QLDB) resource
> **NOTE:** Deletion protection is enabled by default. To successfully delete this resource via this provider, `deletionProtection = false` must be applied before attempting deletion.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/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", nil) if err != nil { return err } return nil }) }
```
## Import
QLDB Ledgers can be imported using the `name`, e.g.
```sh
$ pulumi import aws:qldb/ledger:Ledger sample-ledger sample-ledger
```
func GetLedger ¶
func GetLedger(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LedgerState, opts ...pulumi.ResourceOption) (*Ledger, error)
GetLedger gets an existing Ledger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLedger ¶
func NewLedger(ctx *pulumi.Context, name string, args *LedgerArgs, opts ...pulumi.ResourceOption) (*Ledger, error)
NewLedger registers a new resource with the given unique name, arguments, and options.
func (*Ledger) ElementType ¶
func (*Ledger) ToLedgerOutput ¶
func (i *Ledger) ToLedgerOutput() LedgerOutput
func (*Ledger) ToLedgerOutputWithContext ¶
func (i *Ledger) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput
func (*Ledger) ToLedgerPtrOutput ¶
func (i *Ledger) ToLedgerPtrOutput() LedgerPtrOutput
func (*Ledger) ToLedgerPtrOutputWithContext ¶
func (i *Ledger) ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput
type LedgerArgs ¶
type LedgerArgs struct { // 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. DeletionProtection pulumi.BoolPtrInput // The friendly name for the QLDB Ledger instance. This is atuo generated by default. Name pulumi.StringPtrInput // Key-value mapping of resource tags Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider. TagsAll pulumi.StringMapInput }
The set of arguments for constructing a Ledger resource.
func (LedgerArgs) ElementType ¶
func (LedgerArgs) ElementType() reflect.Type
type LedgerArray ¶
type LedgerArray []LedgerInput
func (LedgerArray) ElementType ¶
func (LedgerArray) ElementType() reflect.Type
func (LedgerArray) ToLedgerArrayOutput ¶
func (i LedgerArray) ToLedgerArrayOutput() LedgerArrayOutput
func (LedgerArray) ToLedgerArrayOutputWithContext ¶
func (i LedgerArray) ToLedgerArrayOutputWithContext(ctx context.Context) LedgerArrayOutput
type LedgerArrayInput ¶
type LedgerArrayInput interface { pulumi.Input ToLedgerArrayOutput() LedgerArrayOutput ToLedgerArrayOutputWithContext(context.Context) LedgerArrayOutput }
LedgerArrayInput is an input type that accepts LedgerArray and LedgerArrayOutput values. You can construct a concrete instance of `LedgerArrayInput` via:
LedgerArray{ LedgerArgs{...} }
type LedgerArrayOutput ¶
type LedgerArrayOutput struct{ *pulumi.OutputState }
func (LedgerArrayOutput) ElementType ¶
func (LedgerArrayOutput) ElementType() reflect.Type
func (LedgerArrayOutput) Index ¶
func (o LedgerArrayOutput) Index(i pulumi.IntInput) LedgerOutput
func (LedgerArrayOutput) ToLedgerArrayOutput ¶
func (o LedgerArrayOutput) ToLedgerArrayOutput() LedgerArrayOutput
func (LedgerArrayOutput) ToLedgerArrayOutputWithContext ¶
func (o LedgerArrayOutput) ToLedgerArrayOutputWithContext(ctx context.Context) LedgerArrayOutput
type LedgerInput ¶
type LedgerInput interface { pulumi.Input ToLedgerOutput() LedgerOutput ToLedgerOutputWithContext(ctx context.Context) LedgerOutput }
type LedgerMap ¶
type LedgerMap map[string]LedgerInput
func (LedgerMap) ElementType ¶
func (LedgerMap) ToLedgerMapOutput ¶
func (i LedgerMap) ToLedgerMapOutput() LedgerMapOutput
func (LedgerMap) ToLedgerMapOutputWithContext ¶
func (i LedgerMap) ToLedgerMapOutputWithContext(ctx context.Context) LedgerMapOutput
type LedgerMapInput ¶
type LedgerMapInput interface { pulumi.Input ToLedgerMapOutput() LedgerMapOutput ToLedgerMapOutputWithContext(context.Context) LedgerMapOutput }
LedgerMapInput is an input type that accepts LedgerMap and LedgerMapOutput values. You can construct a concrete instance of `LedgerMapInput` via:
LedgerMap{ "key": LedgerArgs{...} }
type LedgerMapOutput ¶
type LedgerMapOutput struct{ *pulumi.OutputState }
func (LedgerMapOutput) ElementType ¶
func (LedgerMapOutput) ElementType() reflect.Type
func (LedgerMapOutput) MapIndex ¶
func (o LedgerMapOutput) MapIndex(k pulumi.StringInput) LedgerOutput
func (LedgerMapOutput) ToLedgerMapOutput ¶
func (o LedgerMapOutput) ToLedgerMapOutput() LedgerMapOutput
func (LedgerMapOutput) ToLedgerMapOutputWithContext ¶
func (o LedgerMapOutput) ToLedgerMapOutputWithContext(ctx context.Context) LedgerMapOutput
type LedgerOutput ¶
type LedgerOutput struct {
*pulumi.OutputState
}
func (LedgerOutput) ElementType ¶
func (LedgerOutput) ElementType() reflect.Type
func (LedgerOutput) ToLedgerOutput ¶
func (o LedgerOutput) ToLedgerOutput() LedgerOutput
func (LedgerOutput) ToLedgerOutputWithContext ¶
func (o LedgerOutput) ToLedgerOutputWithContext(ctx context.Context) LedgerOutput
func (LedgerOutput) ToLedgerPtrOutput ¶
func (o LedgerOutput) ToLedgerPtrOutput() LedgerPtrOutput
func (LedgerOutput) ToLedgerPtrOutputWithContext ¶
func (o LedgerOutput) ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput
type LedgerPtrInput ¶
type LedgerPtrInput interface { pulumi.Input ToLedgerPtrOutput() LedgerPtrOutput ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput }
type LedgerPtrOutput ¶
type LedgerPtrOutput struct {
*pulumi.OutputState
}
func (LedgerPtrOutput) ElementType ¶
func (LedgerPtrOutput) ElementType() reflect.Type
func (LedgerPtrOutput) ToLedgerPtrOutput ¶
func (o LedgerPtrOutput) ToLedgerPtrOutput() LedgerPtrOutput
func (LedgerPtrOutput) ToLedgerPtrOutputWithContext ¶
func (o LedgerPtrOutput) ToLedgerPtrOutputWithContext(ctx context.Context) LedgerPtrOutput
type LedgerState ¶
type LedgerState struct { // The ARN of the QLDB Ledger Arn pulumi.StringPtrInput // 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. DeletionProtection pulumi.BoolPtrInput // The friendly name for the QLDB Ledger instance. This is atuo generated by default. Name pulumi.StringPtrInput // Key-value mapping of resource tags Tags pulumi.StringMapInput // A map of tags assigned to the resource, including those inherited from the provider. TagsAll pulumi.StringMapInput }
func (LedgerState) ElementType ¶
func (LedgerState) ElementType() reflect.Type
type LookupLedgerArgs ¶
type LookupLedgerArgs struct { // The friendly name of the ledger to match. Name string `pulumi:"name"` }
A collection of arguments for invoking getLedger.
type LookupLedgerResult ¶
type LookupLedgerResult struct { // Amazon Resource Name (ARN) of the ledger. Arn string `pulumi:"arn"` // Deletion protection on the QLDB Ledger instance. Set to `true` by default. DeletionProtection bool `pulumi:"deletionProtection"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Name string `pulumi:"name"` }
A collection of values returned by getLedger.
func LookupLedger ¶
func LookupLedger(ctx *pulumi.Context, args *LookupLedgerArgs, opts ...pulumi.InvokeOption) (*LookupLedgerResult, error)
Use this data source to fetch information about a Quantum Ledger Database.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/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 }) }
```