import * as core from "@terrascript/core"; export interface ClusterConfigurationArgs extends core.SchemaArgs { description: string | core.StringOut; engineVersion: string | core.StringOut; maintenanceWindow: string | core.StringOut; name: string | core.StringOut; nodeType: string | core.StringOut; numShards: number | core.NumberOut; parameterGroupName: string | core.StringOut; port: number | core.NumberOut; snapshotRetentionLimit: number | core.NumberOut; snapshotWindow: string | core.StringOut; subnetGroupName: string | core.StringOut; topicArn: string | core.StringOut; vpcId: string | core.StringOut; } export class ClusterConfiguration extends core.Schema { @core.attr(String, { computed: true }) public description!: string | core.StringOut; @core.attr(String, { computed: true }) public engineVersion!: string | core.StringOut; @core.attr(String, { computed: true }) public maintenanceWindow!: string | core.StringOut; @core.attr(String, { computed: true }) public name!: string | core.StringOut; @core.attr(String, { computed: true }) public nodeType!: string | core.StringOut; @core.attr(Number, { computed: true }) public numShards!: number | core.NumberOut; @core.attr(String, { computed: true }) public parameterGroupName!: string | core.StringOut; @core.attr(Number, { computed: true }) public port!: number | core.NumberOut; @core.attr(Number, { computed: true }) public snapshotRetentionLimit!: number | core.NumberOut; @core.attr(String, { computed: true }) public snapshotWindow!: string | core.StringOut; @core.attr(String, { computed: true }) public subnetGroupName!: string | core.StringOut; @core.attr(String, { computed: true }) public topicArn!: string | core.StringOut; @core.attr(String, { computed: true }) public vpcId!: string | core.StringOut; } export interface SnapshotArgs extends core.ResourceArgs { /** * (Required, Forces new resource) Name of the MemoryDB cluster to take a snapshot of. */ clusterName: string | core.StringOut; /** * (Optional, Forces new resource) ARN of the KMS key used to encrypt the snapshot at rest. */ kmsKeyArn?: string | core.StringOut; /** * (Optional, Forces new resource) Name of the snapshot. If omitted, Terraform will assign a random, un * ique name. Conflicts with `name_prefix`. */ name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ namePrefix?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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 Snapshot extends core.Resource { /** * The ARN of the snapshot. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The configuration of the cluster from which the snapshot was taken. */ @core.attr(ClusterConfiguration, { computed: true, kind: "array" }) public clusterConfiguration!: | core.Array | core.ArrayOut; /** * (Required, Forces new resource) Name of the MemoryDB cluster to take a snapshot of. */ @core.attr(String) public clusterName!: string | core.StringOut; /** * The name of the snapshot. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional, Forces new resource) ARN of the KMS key used to encrypt the snapshot at rest. */ @core.attr(String) public kmsKeyArn?: string | core.StringOut; /** * (Optional, Forces new resource) Name of the snapshot. If omitted, Terraform will assign a random, un * ique name. Conflicts with `name_prefix`. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional, Forces new resource) Creates a unique name beginning with the specified prefix. Conflicts * with `name`. */ @core.attr(String, { computed: true }) public namePrefix?: string | core.StringOut; /** * Indicates whether the snapshot is from an automatic backup (`automated`) or was created manually (`m * anual`). */ @core.attr(String, { computed: true }) public source!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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?: SnapshotArgs) { super(name, "aws_memorydb_snapshot", args); } public override getNamespace(): string { return "aws_memorydb"; } }