Viewing docs for AWS v7.30.0
published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
Viewing docs for AWS v7.30.0
published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
Provides information about a DynamoDB table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tableName = aws.dynamodb.getTable({
name: "tableName",
});
import pulumi
import pulumi_aws as aws
table_name = aws.dynamodb.get_table(name="tableName")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/dynamodb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dynamodb.LookupTable(ctx, &dynamodb.LookupTableArgs{
Name: "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 tableName = Aws.DynamoDB.GetTable.Invoke(new()
{
Name = "tableName",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dynamodb.DynamodbFunctions;
import com.pulumi.aws.dynamodb.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 tableName = DynamodbFunctions.getTable(GetTableArgs.builder()
.name("tableName")
.build());
}
}
variables:
tableName:
fn::invoke:
function: aws:dynamodb:getTable
arguments:
name: tableName
Example coming soon!
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(name: Optional[str] = None,
region: Optional[str] = None,
server_side_encryption: Optional[GetTableServerSideEncryption] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetTableResult
def get_table_output(name: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
server_side_encryption: pulumi.Input[Optional[GetTableServerSideEncryptionArgs]] = None,
tags: pulumi.Input[Optional[Mapping[str, 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:dynamodb/getTable:getTable
arguments:
# arguments dictionarydata "aws_dynamodb_gettable" "name" {
# arguments
}The following arguments are supported:
- Name string
- Name of the DynamoDB table.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Server
Side GetEncryption Table Server Side Encryption - Dictionary<string, string>
- Name string
- Name of the DynamoDB table.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Server
Side GetEncryption Table Server Side Encryption - map[string]string
- name string
- Name of the DynamoDB table.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- server_
side_ objectencryption - map(string)
- name String
- Name of the DynamoDB table.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- server
Side GetEncryption Table Server Side Encryption - Map<String,String>
- name string
- Name of the DynamoDB table.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- server
Side GetEncryption Table Server Side Encryption - {[key: string]: string}
- name str
- Name of the DynamoDB table.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- server_
side_ Getencryption Table Server Side Encryption - Mapping[str, str]
- name String
- Name of the DynamoDB table.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- server
Side Property MapEncryption - Map<String>
getTable Result
The following output properties are available:
- Arn string
- Attributes
List<Get
Table Attribute> - Billing
Mode string - Deletion
Protection boolEnabled - Global
Secondary List<GetIndexes Table Global Secondary Index> - Hash
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Local
Secondary List<GetIndexes Table Local Secondary Index> - Name string
- On
Demand List<GetThroughputs Table On Demand Throughput> - Point
In GetTime Recovery Table Point In Time Recovery - Range
Key string - Read
Capacity int - Region string
- Replicas
List<Get
Table Replica> - Server
Side GetEncryption Table Server Side Encryption - Stream
Arn string - Stream
Enabled bool - Stream
Label string - Stream
View stringType - Table
Class string - Dictionary<string, string>
- Ttl
Get
Table Ttl - Warm
Throughputs List<GetTable Warm Throughput> - Write
Capacity int
- Arn string
- Attributes
[]Get
Table Attribute - Billing
Mode string - Deletion
Protection boolEnabled - Global
Secondary []GetIndexes Table Global Secondary Index - Hash
Key string - Id string
- The provider-assigned unique ID for this managed resource.
- Local
Secondary []GetIndexes Table Local Secondary Index - Name string
- On
Demand []GetThroughputs Table On Demand Throughput - Point
In GetTime Recovery Table Point In Time Recovery - Range
Key string - Read
Capacity int - Region string
- Replicas
[]Get
Table Replica Type - Server
Side GetEncryption Table Server Side Encryption - Stream
Arn string - Stream
Enabled bool - Stream
Label string - Stream
View stringType - Table
Class string - map[string]string
- Ttl
Get
Table Ttl - Warm
Throughputs []GetTable Warm Throughput - Write
Capacity int
- arn string
- attributes list(object)
- billing_
mode string - deletion_
protection_ boolenabled - global_
secondary_ list(object)indexes - hash_
key string - id string
- The provider-assigned unique ID for this managed resource.
- local_
secondary_ list(object)indexes - name string
- on_
demand_ list(object)throughputs - point_
in_ objecttime_ recovery - range_
key string - read_
capacity number - region string
- replicas list(object)
- server_
side_ objectencryption - stream_
arn string - stream_
enabled bool - stream_
label string - stream_
view_ stringtype - table_
class string - map(string)
- ttl object
- warm_
throughputs list(object) - write_
capacity number
- arn String
- attributes
List<Get
Table Attribute> - billing
Mode String - deletion
Protection BooleanEnabled - global
Secondary List<GetIndexes Table Global Secondary Index> - hash
Key String - id String
- The provider-assigned unique ID for this managed resource.
- local
Secondary List<GetIndexes Table Local Secondary Index> - name String
- on
Demand List<GetThroughputs Table On Demand Throughput> - point
In GetTime Recovery Table Point In Time Recovery - range
Key String - read
Capacity Integer - region String
- replicas
List<Get
Table Replica> - server
Side GetEncryption Table Server Side Encryption - stream
Arn String - stream
Enabled Boolean - stream
Label String - stream
View StringType - table
Class String - Map<String,String>
- ttl
Get
Table Ttl - warm
Throughputs List<GetTable Warm Throughput> - write
Capacity Integer
- arn string
- attributes
Get
Table Attribute[] - billing
Mode string - deletion
Protection booleanEnabled - global
Secondary GetIndexes Table Global Secondary Index[] - hash
Key string - id string
- The provider-assigned unique ID for this managed resource.
- local
Secondary GetIndexes Table Local Secondary Index[] - name string
- on
Demand GetThroughputs Table On Demand Throughput[] - point
In GetTime Recovery Table Point In Time Recovery - range
Key string - read
Capacity number - region string
- replicas
Get
Table Replica[] - server
Side GetEncryption Table Server Side Encryption - stream
Arn string - stream
Enabled boolean - stream
Label string - stream
View stringType - table
Class string - {[key: string]: string}
- ttl
Get
Table Ttl - warm
Throughputs GetTable Warm Throughput[] - write
Capacity number
- arn str
- attributes
Sequence[Get
Table Attribute] - billing_
mode str - deletion_
protection_ boolenabled - global_
secondary_ Sequence[Getindexes Table Global Secondary Index] - hash_
key str - id str
- The provider-assigned unique ID for this managed resource.
- local_
secondary_ Sequence[Getindexes Table Local Secondary Index] - name str
- on_
demand_ Sequence[Getthroughputs Table On Demand Throughput] - point_
in_ Gettime_ recovery Table Point In Time Recovery - range_
key str - read_
capacity int - region str
- replicas
Sequence[Get
Table Replica] - server_
side_ Getencryption Table Server Side Encryption - stream_
arn str - stream_
enabled bool - stream_
label str - stream_
view_ strtype - table_
class str - Mapping[str, str]
- ttl
Get
Table Ttl - warm_
throughputs Sequence[GetTable Warm Throughput] - write_
capacity int
- arn String
- attributes List<Property Map>
- billing
Mode String - deletion
Protection BooleanEnabled - global
Secondary List<Property Map>Indexes - hash
Key String - id String
- The provider-assigned unique ID for this managed resource.
- local
Secondary List<Property Map>Indexes - name String
- on
Demand List<Property Map>Throughputs - point
In Property MapTime Recovery - range
Key String - read
Capacity Number - region String
- replicas List<Property Map>
- server
Side Property MapEncryption - stream
Arn String - stream
Enabled Boolean - stream
Label String - stream
View StringType - table
Class String - Map<String>
- ttl Property Map
- warm
Throughputs List<Property Map> - write
Capacity Number
Supporting Types
GetTableAttribute
GetTableGlobalSecondaryIndex
- Hash
Key string - Key
Schemas List<GetTable Global Secondary Index Key Schema> - Name string
- Name of the DynamoDB table.
- Non
Key List<string>Attributes - On
Demand List<GetThroughputs Table Global Secondary Index On Demand Throughput> - Projection
Type string - Range
Key string - Read
Capacity int - Warm
Throughputs List<GetTable Global Secondary Index Warm Throughput> - Write
Capacity int
- Hash
Key string - Key
Schemas []GetTable Global Secondary Index Key Schema - Name string
- Name of the DynamoDB table.
- Non
Key []stringAttributes - On
Demand []GetThroughputs Table Global Secondary Index On Demand Throughput - Projection
Type string - Range
Key string - Read
Capacity int - Warm
Throughputs []GetTable Global Secondary Index Warm Throughput - Write
Capacity int
- hash_
key string - key_
schemas list(object) - name string
- Name of the DynamoDB table.
- non_
key_ list(string)attributes - on_
demand_ list(object)throughputs - projection_
type string - range_
key string - read_
capacity number - warm_
throughputs list(object) - write_
capacity number
- hash
Key String - key
Schemas List<GetTable Global Secondary Index Key Schema> - name String
- Name of the DynamoDB table.
- non
Key List<String>Attributes - on
Demand List<GetThroughputs Table Global Secondary Index On Demand Throughput> - projection
Type String - range
Key String - read
Capacity Integer - warm
Throughputs List<GetTable Global Secondary Index Warm Throughput> - write
Capacity Integer
- hash
Key string - key
Schemas GetTable Global Secondary Index Key Schema[] - name string
- Name of the DynamoDB table.
- non
Key string[]Attributes - on
Demand GetThroughputs Table Global Secondary Index On Demand Throughput[] - projection
Type string - range
Key string - read
Capacity number - warm
Throughputs GetTable Global Secondary Index Warm Throughput[] - write
Capacity number
- hash_
key str - key_
schemas Sequence[GetTable Global Secondary Index Key Schema] - name str
- Name of the DynamoDB table.
- non_
key_ Sequence[str]attributes - on_
demand_ Sequence[Getthroughputs Table Global Secondary Index On Demand Throughput] - projection_
type str - range_
key str - read_
capacity int - warm_
throughputs Sequence[GetTable Global Secondary Index Warm Throughput] - write_
capacity int
- hash
Key String - key
Schemas List<Property Map> - name String
- Name of the DynamoDB table.
- non
Key List<String>Attributes - on
Demand List<Property Map>Throughputs - projection
Type String - range
Key String - read
Capacity Number - warm
Throughputs List<Property Map> - write
Capacity Number
GetTableGlobalSecondaryIndexKeySchema
- Attribute
Name string - Key
Type string
- Attribute
Name string - Key
Type string
- attribute_
name string - key_
type string
- attribute
Name String - key
Type String
- attribute
Name string - key
Type string
- attribute_
name str - key_
type str
- attribute
Name String - key
Type String
GetTableGlobalSecondaryIndexOnDemandThroughput
- max_
read_ numberrequest_ units - max_
write_ numberrequest_ units
- max
Read IntegerRequest Units - max
Write IntegerRequest Units
- max
Read numberRequest Units - max
Write numberRequest Units
- max
Read NumberRequest Units - max
Write NumberRequest Units
GetTableGlobalSecondaryIndexWarmThroughput
- read_
units_ numberper_ second - write_
units_ numberper_ second
- read
Units IntegerPer Second - write
Units IntegerPer Second
- read
Units numberPer Second - write
Units numberPer Second
- read
Units NumberPer Second - write
Units NumberPer Second
GetTableLocalSecondaryIndex
- Name string
- Name of the DynamoDB table.
- Non
Key List<string>Attributes - Projection
Type string - Range
Key string
- Name string
- Name of the DynamoDB table.
- Non
Key []stringAttributes - Projection
Type string - Range
Key string
- name string
- Name of the DynamoDB table.
- non_
key_ list(string)attributes - projection_
type string - range_
key string
- name String
- Name of the DynamoDB table.
- non
Key List<String>Attributes - projection
Type String - range
Key String
- name string
- Name of the DynamoDB table.
- non
Key string[]Attributes - projection
Type string - range
Key string
- name str
- Name of the DynamoDB table.
- non_
key_ Sequence[str]attributes - projection_
type str - range_
key str
- name String
- Name of the DynamoDB table.
- non
Key List<String>Attributes - projection
Type String - range
Key String
GetTableOnDemandThroughput
- max_
read_ numberrequest_ units - max_
write_ numberrequest_ units
- max
Read IntegerRequest Units - max
Write IntegerRequest Units
- max
Read numberRequest Units - max
Write numberRequest Units
- max
Read NumberRequest Units - max
Write NumberRequest Units
GetTablePointInTimeRecovery
- Enabled bool
- Recovery
Period intIn Days
- Enabled bool
- Recovery
Period intIn Days
- enabled bool
- recovery_
period_ numberin_ days
- enabled Boolean
- recovery
Period IntegerIn Days
- enabled boolean
- recovery
Period numberIn Days
- enabled bool
- recovery_
period_ intin_ days
- enabled Boolean
- recovery
Period NumberIn Days
GetTableReplica
- Kms
Key stringArn - Region
Name string
- Kms
Key stringArn - Region
Name string
- kms_
key_ stringarn - region_
name string
- kms
Key StringArn - region
Name String
- kms
Key stringArn - region
Name string
- kms_
key_ strarn - region_
name str
- kms
Key StringArn - region
Name String
GetTableServerSideEncryption
- enabled bool
- kms_
key_ stringarn
- enabled bool
- kms_
key_ strarn
GetTableTtl
- Attribute
Name string - Enabled bool
- Attribute
Name string - Enabled bool
- attribute_
name string - enabled bool
- attribute
Name String - enabled Boolean
- attribute
Name string - enabled boolean
- attribute_
name str - enabled bool
- attribute
Name String - enabled Boolean
GetTableWarmThroughput
- read_
units_ numberper_ second - write_
units_ numberper_ second
- read
Units IntegerPer Second - write
Units IntegerPer Second
- read
Units numberPer Second - write
Units numberPer Second
- read
Units NumberPer Second - write
Units NumberPer Second
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.30.0
published on Thursday, May 14, 2026 by Pulumi
published on Thursday, May 14, 2026 by Pulumi
