Table constructor

Table(
  1. String name, {
  2. TableArgs? args,
  3. CustomResourceOptions? options,
})

Creates a new Table. name The Pulumi resource name. args Arguments used to configure this Table. The set of arguments for Table. options Resource options controlling this resource's behavior.

Implementation

Table(
  String name, {
  TableArgs? args,
  pulumi.CustomResourceOptions? options,
}) : super(
        'aws:timestreamwrite/table:Table',
        name,
        pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
        pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
      ) {
  arn = registerOutput<String>('arn');
  databaseName = registerOutput<String>('databaseName');
  magneticStoreWriteProperties = registerOutput<TableMagneticStoreWriteProperties>('magneticStoreWriteProperties', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return TableMagneticStoreWriteProperties.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  region = registerOutput<String>('region');
  retentionProperties = registerOutput<TableRetentionProperties>('retentionProperties', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return TableRetentionProperties.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  schema = registerOutput<TableSchema>('schema', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return TableSchema.fromMap((guardedValue as Map).cast<String, dynamic>()); });
  tableName = registerOutput<String>('tableName');
  tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
  tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
}