AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.timestreamwrite.getTable
Explore with Pulumi AI
Data source for managing an AWS Timestream Write Table.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.timestreamwrite.getTable({
    databaseName: testAwsTimestreamwriteDatabase.databaseName,
    name: testAwsTimestreamwriteTable.tableName,
});
import pulumi
import pulumi_aws as aws
test = aws.timestreamwrite.get_table(database_name=test_aws_timestreamwrite_database["databaseName"],
    name=test_aws_timestreamwrite_table["tableName"])
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/timestreamwrite"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := timestreamwrite.LookupTable(ctx, ×treamwrite.LookupTableArgs{
			DatabaseName: testAwsTimestreamwriteDatabase.DatabaseName,
			Name:         testAwsTimestreamwriteTable.TableName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.TimestreamWrite.GetTable.Invoke(new()
    {
        DatabaseName = testAwsTimestreamwriteDatabase.DatabaseName,
        Name = testAwsTimestreamwriteTable.TableName,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.timestreamwrite.TimestreamwriteFunctions;
import com.pulumi.aws.timestreamwrite.inputs.GetTableArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var test = TimestreamwriteFunctions.getTable(GetTableArgs.builder()
            .databaseName(testAwsTimestreamwriteDatabase.databaseName())
            .name(testAwsTimestreamwriteTable.tableName())
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:timestreamwrite:getTable
      arguments:
        databaseName: ${testAwsTimestreamwriteDatabase.databaseName}
        name: ${testAwsTimestreamwriteTable.tableName}
Using getTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTable(args: GetTableArgs, opts?: InvokeOptions): Promise<GetTableResult>
function getTableOutput(args: GetTableOutputArgs, opts?: InvokeOptions): Output<GetTableResult>def get_table(database_name: Optional[str] = None,
              name: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetTableResult
def get_table_output(database_name: Optional[pulumi.Input[str]] = None,
              name: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetTableResult]func LookupTable(ctx *Context, args *LookupTableArgs, opts ...InvokeOption) (*LookupTableResult, error)
func LookupTableOutput(ctx *Context, args *LookupTableOutputArgs, opts ...InvokeOption) LookupTableResultOutput> Note: This function is named LookupTable in the Go SDK.
public static class GetTable 
{
    public static Task<GetTableResult> InvokeAsync(GetTableArgs args, InvokeOptions? opts = null)
    public static Output<GetTableResult> Invoke(GetTableInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
public static Output<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
fn::invoke:
  function: aws:timestreamwrite/getTable:getTable
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseName string
- Name of the Timestream database.
- Name string
- Name of the Timestream table.
- DatabaseName string
- Name of the Timestream database.
- Name string
- Name of the Timestream table.
- databaseName String
- Name of the Timestream database.
- name String
- Name of the Timestream table.
- databaseName string
- Name of the Timestream database.
- name string
- Name of the Timestream table.
- database_name str
- Name of the Timestream database.
- name str
- Name of the Timestream table.
- databaseName String
- Name of the Timestream database.
- name String
- Name of the Timestream table.
getTable Result
The following output properties are available:
- Arn string
- ARN that uniquely identifies the table.
- CreationTime string
- Time that table was created.
- DatabaseName string
- Name of database.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringTime 
- Last time table was updated.
- MagneticStore List<GetWrite Properties Table Magnetic Store Write Property> 
- Object containing the following attributes to desribe magnetic store writes.
- Name string
- Name of the table.
- RetentionProperties List<GetTable Retention Property> 
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- Schemas
List<GetTable Schema> 
- Object containing the following attributes to describe the schema of the table.
- TableStatus string
- Current state of table.
- Arn string
- ARN that uniquely identifies the table.
- CreationTime string
- Time that table was created.
- DatabaseName string
- Name of database.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringTime 
- Last time table was updated.
- MagneticStore []GetWrite Properties Table Magnetic Store Write Property 
- Object containing the following attributes to desribe magnetic store writes.
- Name string
- Name of the table.
- RetentionProperties []GetTable Retention Property 
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- Schemas
[]GetTable Schema 
- Object containing the following attributes to describe the schema of the table.
- TableStatus string
- Current state of table.
- arn String
- ARN that uniquely identifies the table.
- creationTime String
- Time that table was created.
- databaseName String
- Name of database.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringTime 
- Last time table was updated.
- magneticStore List<GetWrite Properties Table Magnetic Store Write Property> 
- Object containing the following attributes to desribe magnetic store writes.
- name String
- Name of the table.
- retentionProperties List<GetTable Retention Property> 
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
List<GetTable Schema> 
- Object containing the following attributes to describe the schema of the table.
- tableStatus String
- Current state of table.
- arn string
- ARN that uniquely identifies the table.
- creationTime string
- Time that table was created.
- databaseName string
- Name of database.
- id string
- The provider-assigned unique ID for this managed resource.
- lastUpdated stringTime 
- Last time table was updated.
- magneticStore GetWrite Properties Table Magnetic Store Write Property[] 
- Object containing the following attributes to desribe magnetic store writes.
- name string
- Name of the table.
- retentionProperties GetTable Retention Property[] 
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
GetTable Schema[] 
- Object containing the following attributes to describe the schema of the table.
- tableStatus string
- Current state of table.
- arn str
- ARN that uniquely identifies the table.
- creation_time str
- Time that table was created.
- database_name str
- Name of database.
- id str
- The provider-assigned unique ID for this managed resource.
- last_updated_ strtime 
- Last time table was updated.
- magnetic_store_ Sequence[Getwrite_ properties Table Magnetic Store Write Property] 
- Object containing the following attributes to desribe magnetic store writes.
- name str
- Name of the table.
- retention_properties Sequence[GetTable Retention Property] 
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
Sequence[GetTable Schema] 
- Object containing the following attributes to describe the schema of the table.
- table_status str
- Current state of table.
- arn String
- ARN that uniquely identifies the table.
- creationTime String
- Time that table was created.
- databaseName String
- Name of database.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringTime 
- Last time table was updated.
- magneticStore List<Property Map>Write Properties 
- Object containing the following attributes to desribe magnetic store writes.
- name String
- Name of the table.
- retentionProperties List<Property Map>
- Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas List<Property Map>
- Object containing the following attributes to describe the schema of the table.
- tableStatus String
- Current state of table.
Supporting Types
GetTableMagneticStoreWriteProperty     
- EnableMagnetic boolStore Writes 
- Flag that is set based on if magnetic store writes are enabled.
- MagneticStore List<GetRejected Data Locations Table Magnetic Store Write Property Magnetic Store Rejected Data Location> 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- EnableMagnetic boolStore Writes 
- Flag that is set based on if magnetic store writes are enabled.
- MagneticStore []GetRejected Data Locations Table Magnetic Store Write Property Magnetic Store Rejected Data Location 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- enableMagnetic BooleanStore Writes 
- Flag that is set based on if magnetic store writes are enabled.
- magneticStore List<GetRejected Data Locations Table Magnetic Store Write Property Magnetic Store Rejected Data Location> 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- enableMagnetic booleanStore Writes 
- Flag that is set based on if magnetic store writes are enabled.
- magneticStore GetRejected Data Locations Table Magnetic Store Write Property Magnetic Store Rejected Data Location[] 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- enable_magnetic_ boolstore_ writes 
- Flag that is set based on if magnetic store writes are enabled.
- magnetic_store_ Sequence[Getrejected_ data_ locations Table Magnetic Store Write Property Magnetic Store Rejected Data Location] 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- enableMagnetic BooleanStore Writes 
- Flag that is set based on if magnetic store writes are enabled.
- magneticStore List<Property Map>Rejected Data Locations 
- Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
GetTableMagneticStoreWritePropertyMagneticStoreRejectedDataLocation          
- S3Configurations
List<GetTable Magnetic Store Write Property Magnetic Store Rejected Data Location S3Configuration> 
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- S3Configurations
[]GetTable Magnetic Store Write Property Magnetic Store Rejected Data Location S3Configuration 
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- s3Configurations
List<GetTable Magnetic Store Write Property Magnetic Store Rejected Data Location S3Configuration> 
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- s3Configurations
GetTable Magnetic Store Write Property Magnetic Store Rejected Data Location S3Configuration[] 
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- s3_configurations Sequence[GetTable Magnetic Store Write Property Magnetic Store Rejected Data Location S3Configuration] 
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- s3Configurations List<Property Map>
- Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
GetTableMagneticStoreWritePropertyMagneticStoreRejectedDataLocationS3Configuration           
- BucketName string
- Name of S3 bucket.
- EncryptionOption string
- KmsKey stringId 
- AWS KMS key ID for S3 location with AWS maanged key.
- ObjectKey stringPrefix 
- Object key preview for S3 location.
- BucketName string
- Name of S3 bucket.
- EncryptionOption string
- KmsKey stringId 
- AWS KMS key ID for S3 location with AWS maanged key.
- ObjectKey stringPrefix 
- Object key preview for S3 location.
- bucketName String
- Name of S3 bucket.
- encryptionOption String
- kmsKey StringId 
- AWS KMS key ID for S3 location with AWS maanged key.
- objectKey StringPrefix 
- Object key preview for S3 location.
- bucketName string
- Name of S3 bucket.
- encryptionOption string
- kmsKey stringId 
- AWS KMS key ID for S3 location with AWS maanged key.
- objectKey stringPrefix 
- Object key preview for S3 location.
- bucket_name str
- Name of S3 bucket.
- encryption_option str
- kms_key_ strid 
- AWS KMS key ID for S3 location with AWS maanged key.
- object_key_ strprefix 
- Object key preview for S3 location.
- bucketName String
- Name of S3 bucket.
- encryptionOption String
- kmsKey StringId 
- AWS KMS key ID for S3 location with AWS maanged key.
- objectKey StringPrefix 
- Object key preview for S3 location.
GetTableRetentionProperty   
- MagneticStore intRetention Period In Days 
- Duration in days in which the data must be stored in magnetic store.
- MemoryStore intRetention Period In Hours 
- Duration in hours in which the data must be stored in memory store.
- MagneticStore intRetention Period In Days 
- Duration in days in which the data must be stored in magnetic store.
- MemoryStore intRetention Period In Hours 
- Duration in hours in which the data must be stored in memory store.
- magneticStore IntegerRetention Period In Days 
- Duration in days in which the data must be stored in magnetic store.
- memoryStore IntegerRetention Period In Hours 
- Duration in hours in which the data must be stored in memory store.
- magneticStore numberRetention Period In Days 
- Duration in days in which the data must be stored in magnetic store.
- memoryStore numberRetention Period In Hours 
- Duration in hours in which the data must be stored in memory store.
- magnetic_store_ intretention_ period_ in_ days 
- Duration in days in which the data must be stored in magnetic store.
- memory_store_ intretention_ period_ in_ hours 
- Duration in hours in which the data must be stored in memory store.
- magneticStore NumberRetention Period In Days 
- Duration in days in which the data must be stored in magnetic store.
- memoryStore NumberRetention Period In Hours 
- Duration in hours in which the data must be stored in memory store.
GetTableSchema  
GetTableSchemaCompositePartitionKey     
- EnforcementIn stringRecord 
- Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- EnforcementIn stringRecord 
- Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- enforcementIn StringRecord 
- name String
- Name of the Timestream table.
- type String
- Type of partition key.
- enforcementIn stringRecord 
- name string
- Name of the Timestream table.
- type string
- Type of partition key.
- enforcement_in_ strrecord 
- name str
- Name of the Timestream table.
- type str
- Type of partition key.
- enforcementIn StringRecord 
- name String
- Name of the Timestream table.
- type String
- Type of partition key.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.