TableArgs constructor

const TableArgs({
  1. Input<List<TableAttribute>?>? attributes,
  2. Input<String?>? billingMode,
  3. Input<bool?>? deletionProtectionEnabled,
  4. Input<List<TableGlobalSecondaryIndex>?>? globalSecondaryIndexes,
  5. Input<TableGlobalTableWitness?>? globalTableWitness,
  6. Input<String?>? hashKey,
  7. Input<TableImportTable?>? importTable,
  8. Input<List<TableLocalSecondaryIndex>?>? localSecondaryIndexes,
  9. Input<String?>? name,
  10. Input<TableOnDemandThroughput?>? onDemandThroughput,
  11. Input<TablePointInTimeRecovery?>? pointInTimeRecovery,
  12. Input<String?>? rangeKey,
  13. Input<int?>? readCapacity,
  14. Input<String?>? region,
  15. Input<List<TableReplica>?>? replicas,
  16. Input<String?>? restoreBackupArn,
  17. Input<String?>? restoreDateTime,
  18. Input<String?>? restoreSourceName,
  19. Input<String?>? restoreSourceTableArn,
  20. Input<bool?>? restoreToLatestTime,
  21. Input<TableServerSideEncryption?>? serverSideEncryption,
  22. Input<bool?>? streamEnabled,
  23. Input<String?>? streamViewType,
  24. Input<String?>? tableClass,
  25. Input<Map<String, String>?>? tags,
  26. Input<TableTtl?>? ttl,
  27. Input<TableWarmThroughput?>? warmThroughput,
  28. Input<int?>? writeCapacity,
})

Creates a new TableArgs. attributes Set of nested attribute definitions. Only required for hashKey and rangeKey attributes. See below. billingMode Controls how you are charged for read and write throughput and how you manage capacity. The valid values are PROVISIONED and PAY_PER_REQUEST. Defaults to PROVISIONED. deletionProtectionEnabled Enables deletion protection for table. Defaults to false. globalSecondaryIndexes Describe a GSI for the table; subject to the normal limits on the number of GSIs, projected attributes, etc. See below. globalTableWitness Witness Region in a Multi-Region Strong Consistency deployment. Note This must be used alongside a single replica with consistencyMode set to STRONG. Other combinations will fail to provision. See below. hashKey Attribute to use as the hash (partition) key. Must also be defined as an attribute. See below. importTable Import Amazon S3 data into a new table. See below. localSecondaryIndexes Describe an LSI on the table; these can only be allocated at creation so you cannot change this definition after you have created the resource. See below. name Unique within a region name of the table. onDemandThroughput Sets the maximum number of read and write units for the specified on-demand table. See below. pointInTimeRecovery Enable point-in-time recovery options. See below. rangeKey Attribute to use as the range (sort) key. Must also be defined as an attribute, see below. readCapacity Number of read units for this table. If the billingMode is PROVISIONED, this field is required. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. replicas Configuration block(s) with DynamoDB Global Tables V2 (version 2019.11.21) replication configurations. See below. restoreBackupArn ARN of backup to restore. restoreDateTime Time of the point-in-time recovery point to restore. restoreSourceName Name of the table to restore. Must match the name of an existing table. restoreSourceTableArn ARN of the source table to restore. Must be supplied for cross-region restores. restoreToLatestTime If set, restores table to the most recent point-in-time recovery point. serverSideEncryption Encryption at rest options. AWS DynamoDB tables are automatically encrypted at rest with an AWS-owned Customer Master Key if this argument isn't specified. Must be supplied for cross-region restores. See below. streamEnabled Whether Streams are enabled. streamViewType When an item in the table is modified, StreamViewType determines what information is written to the table's stream. tableClass Storage class of the table. tags A map of tags to populate on the created table. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level. ttl Configuration block for TTL. See below. warmThroughput Sets the number of warm read and write units for the specified table. See below. writeCapacity Number of write units for this table. If the billingMode is PROVISIONED, this field is required.

Implementation

const TableArgs({
  this.attributes,
  this.billingMode,
  this.deletionProtectionEnabled,
  this.globalSecondaryIndexes,
  this.globalTableWitness,
  this.hashKey,
  this.importTable,
  this.localSecondaryIndexes,
  this.name,
  this.onDemandThroughput,
  this.pointInTimeRecovery,
  this.rangeKey,
  this.readCapacity,
  this.region,
  this.replicas,
  this.restoreBackupArn,
  this.restoreDateTime,
  this.restoreSourceName,
  this.restoreSourceTableArn,
  this.restoreToLatestTime,
  this.serverSideEncryption,
  this.streamEnabled,
  this.streamViewType,
  this.tableClass,
  this.tags,
  this.ttl,
  this.warmThroughput,
  this.writeCapacity,
});