Viewing docs for AWS v7.51.0
published on Thursday, Oct 15, 2026 by Pulumi
published on Thursday, Oct 15, 2026 by Pulumi
Viewing docs for AWS v7.51.0
published on Thursday, Oct 15, 2026 by Pulumi
published on Thursday, Oct 15, 2026 by Pulumi
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/v7/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.ArrayList;
import java.util.Arrays;
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}
pulumi {
required_providers {
aws = {
source = "pulumi/aws"
}
}
}
data "aws_timestreamwrite_gettable" "test" {
database_name = 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?: InvokeOutputOptions): Output<GetTableResult>def get_table(database_name: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTableResult
def get_table_output(database_name: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = 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 Output<GetTableResult> Invoke(GetTableInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
public static Output<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
public static Output<GetTableResult> getTable(GetTableArgs args, InvokeOutputOptions options)
fn::invoke:
function: aws:timestreamwrite/getTable:getTable
arguments:
# arguments dictionarydata "aws_timestreamwrite_get_table" "name" {
# arguments
}The following arguments are supported:
- Database
Name string - Name of the Timestream database.
- Name string
- Name of the Timestream table.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Database
Name string - Name of the Timestream database.
- Name string
- Name of the Timestream table.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- database_
name string - Name of the Timestream database.
- name string
- Name of the Timestream table.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- database
Name String - Name of the Timestream database.
- name String
- Name of the Timestream table.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- database
Name string - Name of the Timestream database.
- name string
- Name of the Timestream table.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- database_
name str - Name of the Timestream database.
- name str
- Name of the Timestream table.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- database
Name String - Name of the Timestream database.
- name String
- Name of the Timestream table.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getTable Result
The following output properties are available:
- Arn string
- ARN that uniquely identifies the table.
- Creation
Time string - Time that table was created.
- Database
Name string - Name of database.
- Last
Updated stringTime - Last time table was updated.
- Magnetic
Store List<GetWrite Properties Table Magnetic Store Write Property> - Object containing the following attributes to describe magnetic store writes.
- Name string
- Name of the timestream attribute used for a dimension key.
- Region string
- Retention
Properties List<GetTable Retention Property> - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- Schemas
List<Get
Table Schema> - Object containing the following attributes to describe the schema of the table.
- Table
Status string - Current state of table.
- Arn string
- ARN that uniquely identifies the table.
- Creation
Time string - Time that table was created.
- Database
Name string - Name of database.
- Last
Updated stringTime - Last time table was updated.
- Magnetic
Store []GetWrite Properties Table Magnetic Store Write Property - Object containing the following attributes to describe magnetic store writes.
- Name string
- Name of the timestream attribute used for a dimension key.
- Region string
- Retention
Properties []GetTable Retention Property - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- Schemas
[]Get
Table Schema - Object containing the following attributes to describe the schema of the table.
- Table
Status string - Current state of table.
- arn string
- ARN that uniquely identifies the table.
- creation_
time string - Time that table was created.
- database_
name string - Name of database.
- last_
updated_ stringtime - Last time table was updated.
- magnetic_
store_ list(object)write_ properties - Object containing the following attributes to describe magnetic store writes.
- name string
- Name of the timestream attribute used for a dimension key.
- region string
- retention_
properties list(object) - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas list(object)
- Object containing the following attributes to describe the schema of the table.
- table_
status string - Current state of table.
- arn String
- ARN that uniquely identifies the table.
- creation
Time String - Time that table was created.
- database
Name String - Name of database.
- last
Updated StringTime - Last time table was updated.
- magnetic
Store List<GetWrite Properties Table Magnetic Store Write Property> - Object containing the following attributes to describe magnetic store writes.
- name String
- Name of the timestream attribute used for a dimension key.
- region String
- retention
Properties List<GetTable Retention Property> - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
List<Get
Table Schema> - Object containing the following attributes to describe the schema of the table.
- table
Status String - Current state of table.
- arn string
- ARN that uniquely identifies the table.
- creation
Time string - Time that table was created.
- database
Name string - Name of database.
- last
Updated stringTime - Last time table was updated.
- magnetic
Store GetWrite Properties Table Magnetic Store Write Property[] - Object containing the following attributes to describe magnetic store writes.
- name string
- Name of the timestream attribute used for a dimension key.
- region string
- retention
Properties GetTable Retention Property[] - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
Get
Table Schema[] - Object containing the following attributes to describe the schema of the table.
- table
Status 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.
- last_
updated_ strtime - Last time table was updated.
- magnetic_
store_ Sequence[Getwrite_ properties Table Magnetic Store Write Property] - Object containing the following attributes to describe magnetic store writes.
- name str
- Name of the timestream attribute used for a dimension key.
- region str
- retention_
properties Sequence[GetTable Retention Property] - Object containing the following attributes to describe the retention duration for the memory and magnetic stores.
- schemas
Sequence[Get
Table 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.
- creation
Time String - Time that table was created.
- database
Name String - Name of database.
- last
Updated StringTime - Last time table was updated.
- magnetic
Store List<Property Map>Write Properties - Object containing the following attributes to describe magnetic store writes.
- name String
- Name of the timestream attribute used for a dimension key.
- region String
- retention
Properties 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.
- table
Status String - Current state of table.
Supporting Types
GetTableMagneticStoreWriteProperty
- Enable
Magnetic boolStore Writes - Flag that is set based on if magnetic store writes are enabled.
- Magnetic
Store 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.
- Enable
Magnetic boolStore Writes - Flag that is set based on if magnetic store writes are enabled.
- Magnetic
Store []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_ list(object)rejected_ data_ locations - Object containing the following attributes to describe error reports for records rejected during magnetic store writes.
- enable
Magnetic BooleanStore Writes - Flag that is set based on if magnetic store writes are enabled.
- magnetic
Store 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.
- enable
Magnetic booleanStore Writes - Flag that is set based on if magnetic store writes are enabled.
- magnetic
Store 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.
- enable
Magnetic BooleanStore Writes - Flag that is set based on if magnetic store writes are enabled.
- magnetic
Store 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<Get
Table 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
[]Get
Table 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 list(object) - Object containing the following attributes to describe the configuration of an s3 location to write error reports for records rejected.
- s3Configurations
List<Get
Table 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
Get
Table 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
- Bucket
Name string - Name of S3 bucket.
- Encryption
Option string - Encryption option for S3 location.
- Kms
Key stringId - AWS KMS key ID for S3 location with AWS managed key.
- Object
Key stringPrefix - Object key prefix for S3 location.
- Bucket
Name string - Name of S3 bucket.
- Encryption
Option string - Encryption option for S3 location.
- Kms
Key stringId - AWS KMS key ID for S3 location with AWS managed key.
- Object
Key stringPrefix - Object key prefix for S3 location.
- bucket_
name string - Name of S3 bucket.
- encryption_
option string - Encryption option for S3 location.
- kms_
key_ stringid - AWS KMS key ID for S3 location with AWS managed key.
- object_
key_ stringprefix - Object key prefix for S3 location.
- bucket
Name String - Name of S3 bucket.
- encryption
Option String - Encryption option for S3 location.
- kms
Key StringId - AWS KMS key ID for S3 location with AWS managed key.
- object
Key StringPrefix - Object key prefix for S3 location.
- bucket
Name string - Name of S3 bucket.
- encryption
Option string - Encryption option for S3 location.
- kms
Key stringId - AWS KMS key ID for S3 location with AWS managed key.
- object
Key stringPrefix - Object key prefix for S3 location.
- bucket_
name str - Name of S3 bucket.
- encryption_
option str - Encryption option for S3 location.
- kms_
key_ strid - AWS KMS key ID for S3 location with AWS managed key.
- object_
key_ strprefix - Object key prefix for S3 location.
- bucket
Name String - Name of S3 bucket.
- encryption
Option String - Encryption option for S3 location.
- kms
Key StringId - AWS KMS key ID for S3 location with AWS managed key.
- object
Key StringPrefix - Object key prefix for S3 location.
GetTableRetentionProperty
- 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.
- 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.
- magnetic_
store_ numberretention_ period_ in_ days - Duration in days in which the data must be stored in magnetic store.
- memory_
store_ numberretention_ period_ in_ hours - Duration in hours in which the data must be stored in memory store.
- magnetic
Store IntegerRetention Period In Days - Duration in days in which the data must be stored in magnetic store.
- memory
Store IntegerRetention Period In Hours - Duration in hours in which the data must be stored in memory store.
- magnetic
Store numberRetention Period In Days - Duration in days in which the data must be stored in magnetic store.
- memory
Store 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.
- magnetic
Store NumberRetention Period In Days - Duration in days in which the data must be stored in magnetic store.
- memory
Store NumberRetention Period In Hours - Duration in hours in which the data must be stored in memory store.
GetTableSchema
- Composite
Partition List<GetKeys Table Schema Composite Partition Key> - Object containing the attributes to describe a composite partition key for the table.
- Composite
Partition []GetKeys Table Schema Composite Partition Key - Object containing the attributes to describe a composite partition key for the table.
- composite_
partition_ list(object)keys - Object containing the attributes to describe a composite partition key for the table.
- composite
Partition List<GetKeys Table Schema Composite Partition Key> - Object containing the attributes to describe a composite partition key for the table.
- composite
Partition GetKeys Table Schema Composite Partition Key[] - Object containing the attributes to describe a composite partition key for the table.
- composite_
partition_ Sequence[Getkeys Table Schema Composite Partition Key] - Object containing the attributes to describe a composite partition key for the table.
- composite
Partition List<Property Map>Keys - Object containing the attributes to describe a composite partition key for the table.
GetTableSchemaCompositePartitionKey
- Enforcement
In stringRecord - Level of enforcement for the specification of a dimension key in ingested records.
- Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- Enforcement
In stringRecord - Level of enforcement for the specification of a dimension key in ingested records.
- Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- enforcement_
in_ stringrecord - Level of enforcement for the specification of a dimension key in ingested records.
- name string
- Name of the Timestream table.
- type string
- Type of partition key.
- enforcement
In StringRecord - Level of enforcement for the specification of a dimension key in ingested records.
- name String
- Name of the Timestream table.
- type String
- Type of partition key.
- enforcement
In stringRecord - Level of enforcement for the specification of a dimension key in ingested records.
- name string
- Name of the Timestream table.
- type string
- Type of partition key.
- enforcement_
in_ strrecord - Level of enforcement for the specification of a dimension key in ingested records.
- name str
- Name of the Timestream table.
- type str
- Type of partition key.
- enforcement
In StringRecord - Level of enforcement for the specification of a dimension key in ingested records.
- 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.
Viewing docs for AWS v7.51.0
published on Thursday, Oct 15, 2026 by Pulumi
published on Thursday, Oct 15, 2026 by Pulumi