AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:timestreamwrite/getTable:getTable
arguments:
# arguments dictionary
The following arguments are supported:
- Database
Name string - Name of the Timestream database.
- Name string
- Name of the Timestream table.
- Database
Name string - Name of the Timestream database.
- Name string
- Name of the Timestream table.
- database
Name String - Name of the Timestream database.
- name String
- Name of the Timestream table.
- database
Name 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.
- database
Name 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.
- Creation
Time string - Time that table was created.
- Database
Name string - Name of database.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last time table was updated.
- Magnetic
Store List<GetWrite Properties Table Magnetic Store Write Property> - Object containing the following attributes to desribe magnetic store writes.
- Name string
- Name of the table.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringTime - Last time table was updated.
- Magnetic
Store []GetWrite Properties Table Magnetic Store Write Property - Object containing the following attributes to desribe magnetic store writes.
- Name string
- Name of the table.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last time table was updated.
- magnetic
Store List<GetWrite Properties Table Magnetic Store Write Property> - Object containing the following attributes to desribe magnetic store writes.
- name String
- Name of the table.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringTime - Last time table was updated.
- magnetic
Store GetWrite Properties Table Magnetic Store Write Property[] - Object containing the following attributes to desribe magnetic store writes.
- name string
- Name of the table.
- 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.
- 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[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.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringTime - Last time table was updated.
- magnetic
Store List<Property Map>Write Properties - Object containing the following attributes to desribe magnetic store writes.
- name String
- Name of the table.
- 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 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.
- 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 - Kms
Key stringId - AWS KMS key ID for S3 location with AWS maanged key.
- Object
Key stringPrefix - Object key preview for S3 location.
- Bucket
Name string - Name of S3 bucket.
- Encryption
Option string - Kms
Key stringId - AWS KMS key ID for S3 location with AWS maanged key.
- Object
Key stringPrefix - Object key preview for S3 location.
- bucket
Name String - Name of S3 bucket.
- encryption
Option String - kms
Key StringId - AWS KMS key ID for S3 location with AWS maanged key.
- object
Key StringPrefix - Object key preview for S3 location.
- bucket
Name string - Name of S3 bucket.
- encryption
Option string - kms
Key stringId - AWS KMS key ID for S3 location with AWS maanged key.
- object
Key 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.
- bucket
Name String - Name of S3 bucket.
- encryption
Option String - kms
Key StringId - AWS KMS key ID for S3 location with AWS maanged key.
- object
Key StringPrefix - Object key preview 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 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
GetTableSchemaCompositePartitionKey
- Enforcement
In stringRecord - Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- Enforcement
In stringRecord - Name string
- Name of the Timestream table.
- Type string
- Type of partition key.
- enforcement
In StringRecord - name String
- Name of the Timestream table.
- type String
- Type of partition key.
- enforcement
In 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.
- enforcement
In 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
aws
Terraform Provider.