import * as core from "@terrascript/core"; export interface LedgerArgs extends core.ResourceArgs { /** * (Optional) The deletion protection for the QLDB Ledger instance. By default it is `true`. To delete * this resource via Terraform, this value must be configured to `false` and applied first before attem * pting deletion. */ deletionProtection?: boolean | core.BooleanOut; /** * (Optional) 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/lates * t/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 manage * d KMS key. */ kmsKey?: string | core.StringOut; /** * (Optional) The friendly name for the QLDB Ledger instance. By default generated by Terraform. */ name?: string | core.StringOut; /** * (Required) The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDAR * D`. */ permissionsMode: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Ledger extends core.Resource { /** * The ARN of the QLDB Ledger */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The deletion protection for the QLDB Ledger instance. By default it is `true`. To delete * this resource via Terraform, this value must be configured to `false` and applied first before attem * pting deletion. */ @core.attr(Boolean) public deletionProtection?: boolean | core.BooleanOut; /** * The Name of the QLDB Ledger */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) 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/lates * t/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 manage * d KMS key. */ @core.attr(String, { computed: true }) public kmsKey?: string | core.StringOut; /** * (Optional) The friendly name for the QLDB Ledger instance. By default generated by Terraform. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Required) The permissions mode for the QLDB ledger instance. Specify either `ALLOW_ALL` or `STANDAR * D`. */ @core.attr(String) public permissionsMode!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: LedgerArgs) { super(name, "aws_qldb_ledger", args); } public override getNamespace(): string { return "aws_qldb"; } }