GetTable
Provides information about a DynamoDB table.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var tableName = Output.Create(Aws.DynamoDB.GetTable.InvokeAsync(new Aws.DynamoDB.GetTableArgs
{
Name = "tableName",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/dynamodb"
"github.com/pulumi/pulumi/sdk/v2/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
})
}import pulumi
import pulumi_aws as aws
table_name = aws.dynamodb.get_table(name="tableName")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const tableName = pulumi.output(aws.dynamodb.getTable({
name: "tableName",
}, { async: true }));Using GetTable
function getTable(args: GetTableArgs, opts?: InvokeOptions): Promise<GetTableResult>function get_table(name=None, server_side_encryption=None, tags=None, opts=None)func LookupTable(ctx *Context, args *LookupTableArgs, opts ...InvokeOption) (*LookupTableResult, error)Note: This function is named
LookupTablein the Go SDK.
public static class GetTable {
public static Task<GetTableResult> InvokeAsync(GetTableArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the DynamoDB table.
- Server
Side GetEncryption Table Server Side Encryption Args - Dictionary<string, string>
- Name string
The name of the DynamoDB table.
- Server
Side GetEncryption Table Server Side Encryption - map[string]string
- name string
The name of the DynamoDB table.
- server
Side GetEncryption Table Server Side Encryption - {[key: string]: string}
- name str
The name of the DynamoDB table.
- server_
side_ Dict[Getencryption Table Server Side Encryption] - Dict[str, str]
GetTable Result
The following output properties are available:
- Arn string
- Attributes
List<Get
Table Attribute> - Billing
Mode string - 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
- Point
In GetTime Recovery Table Point In Time Recovery - Range
Key string - Read
Capacity int - Replicas
List<Get
Table Replica> - Server
Side GetEncryption Table Server Side Encryption - Stream
Arn string - Stream
Enabled bool - Stream
Label string - Stream
View stringType - Dictionary<string, string>
- Ttl
Get
Table Ttl - Write
Capacity int
- Arn string
- Attributes
[]Get
Table Attribute - Billing
Mode string - 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
- Point
In GetTime Recovery Table Point In Time Recovery - Range
Key string - Read
Capacity int - Replicas
[]Get
Table Replica - Server
Side GetEncryption Table Server Side Encryption - Stream
Arn string - Stream
Enabled bool - Stream
Label string - Stream
View stringType - map[string]string
- Ttl
Get
Table Ttl - Write
Capacity int
- arn string
- attributes
Get
Table Attribute[] - billing
Mode string - 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
- point
In GetTime Recovery Table Point In Time Recovery - range
Key string - read
Capacity number - replicas
Get
Table Replica[] - server
Side GetEncryption Table Server Side Encryption - stream
Arn string - stream
Enabled boolean - stream
Label string - stream
View stringType - {[key: string]: string}
- ttl
Get
Table Ttl - write
Capacity number
- arn str
- attributes
List[Get
Table Attribute] - billing_
mode str - global_
secondary_ List[Getindexes Table Global Secondary Index] - hash_
key str - id str
The provider-assigned unique ID for this managed resource.
- local_
secondary_ List[Getindexes Table Local Secondary Index] - name str
- point_
in_ Dict[Gettime_ recovery Table Point In Time Recovery] - range_
key str - read_
capacity float - replicas
List[Get
Table Replica] - server_
side_ Dict[Getencryption Table Server Side Encryption] - stream_
arn str - stream_
enabled bool - stream_
label str - stream_
view_ strtype - Dict[str, str]
- ttl
Dict[Get
Table Ttl] - write_
capacity float
Supporting Types
GetTableAttribute
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetTableGlobalSecondaryIndex
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Hash
Key string - Name string
The name of the DynamoDB table.
- Non
Key List<string>Attributes - Projection
Type string - Range
Key string - Read
Capacity int - Write
Capacity int
- Hash
Key string - Name string
The name of the DynamoDB table.
- Non
Key []stringAttributes - Projection
Type string - Range
Key string - Read
Capacity int - Write
Capacity int
- hash
Key string - name string
The name of the DynamoDB table.
- non
Key string[]Attributes - projection
Type string - range
Key string - read
Capacity number - write
Capacity number
- hash_
key str - name str
The name of the DynamoDB table.
- non
Key List[str]Attributes - projection
Type str - range_
key str - read_
capacity float - write_
capacity float
GetTableLocalSecondaryIndex
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Name string
The name of the DynamoDB table.
- Non
Key List<string>Attributes - Projection
Type string - Range
Key string
- Name string
The name of the DynamoDB table.
- Non
Key []stringAttributes - Projection
Type string - Range
Key string
- name string
The name of the DynamoDB table.
- non
Key string[]Attributes - projection
Type string - range
Key string
- name str
The name of the DynamoDB table.
- non
Key List[str]Attributes - projection
Type str - range_
key str
GetTablePointInTimeRecovery
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetTableReplica
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetTableServerSideEncryption
GetTableTtl
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.