import * as core from "@terrascript/core"; export interface ReplicaArgs extends core.SchemaArgs { regionName: string | core.StringOut; } export class Replica extends core.Schema { @core.attr(String) public regionName!: string | core.StringOut; } export interface GlobalTableArgs extends core.ResourceArgs { /** * (Required) The name of the global table. Must match underlying DynamoDB Table names in all regions. */ name: string | core.StringOut; /** * (Required) Underlying DynamoDB Table. At least 1 replica must be defined. See below. */ replica: core.Array | core.ArrayOut; } export class GlobalTable extends core.Resource { /** * The ARN of the DynamoDB Global Table */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The name of the DynamoDB Global Table */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The name of the global table. Must match underlying DynamoDB Table names in all regions. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) Underlying DynamoDB Table. At least 1 replica must be defined. See below. */ @core.attr(Replica, { kind: "array" }) public replica!: core.Array | core.ArrayOut; constructor(name: string, args?: GlobalTableArgs) { super(name, "aws_dynamodb_global_table", args); } public override getNamespace(): string { return "aws_dynamodb"; } }