UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

160 lines (159 loc) 7.61 kB
import * as pulumi from "@pulumi/pulumi"; /** * 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 * * ```typescript * 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 * * Using `pulumi import`, import QLDB Ledgers using the `name`. For example: * * ```sh * $ pulumi import aws:qldb/ledger:Ledger sample-ledger sample-ledger * ``` */ export declare class Ledger extends pulumi.CustomResource { /** * Get an existing Ledger resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LedgerState, opts?: pulumi.CustomResourceOptions): Ledger; /** * Returns true if the given object is an instance of Ledger. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Ledger; /** * The ARN of the QLDB Ledger */ readonly arn: pulumi.Output<string>; /** * 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. */ readonly deletionProtection: pulumi.Output<boolean | undefined>; /** * 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](https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html). 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. */ readonly kmsKey: pulumi.Output<string>; /** * The friendly name for the QLDB Ledger instance. By default generated by the provider. */ readonly name: pulumi.Output<string>; /** * The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDARD`. */ readonly permissionsMode: pulumi.Output<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output<string>; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Create a Ledger resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LedgerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Ledger resources. */ export interface LedgerState { /** * The ARN of the QLDB Ledger */ arn?: pulumi.Input<string>; /** * 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. */ deletionProtection?: pulumi.Input<boolean>; /** * 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](https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html). 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. */ kmsKey?: pulumi.Input<string>; /** * The friendly name for the QLDB Ledger instance. By default generated by the provider. */ name?: pulumi.Input<string>; /** * The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDARD`. */ permissionsMode?: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; } /** * The set of arguments for constructing a Ledger resource. */ export interface LedgerArgs { /** * 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. */ deletionProtection?: pulumi.Input<boolean>; /** * 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](https://docs.aws.amazon.com/qldb/latest/developerguide/encryption-at-rest.html). 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. */ kmsKey?: pulumi.Input<string>; /** * The friendly name for the QLDB Ledger instance. By default generated by the provider. */ name?: pulumi.Input<string>; /** * The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDARD`. */ permissionsMode: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; /** * Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; }