Table.reference constructor

Table.reference(
  1. String urn
)

Creates a typed reference to an existing Table resource.

Implementation

Table.reference(String urn)
  : super(
      'aws:timestreamwrite/table:Table',
      pulumi.parseUrn(urn).urnName,
      const <String, pulumi.Input<dynamic>>{},
      pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
      isResourceReference: true,
    ) {
  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>(); });
}