published on Tuesday, Mar 10, 2026 by Pulumi
published on Tuesday, Mar 10, 2026 by Pulumi
Enables a Kinesis streaming destination for data replication of a DynamoDB table.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var exampleTable = new Aws.DynamoDB.Table("exampleTable", new()
{
HashKey = "id",
Attributes = new[]
{
new Aws.DynamoDB.Inputs.TableAttributeArgs
{
Name = "id",
Type = "S",
},
},
});
var exampleStream = new Aws.Kinesis.Stream("exampleStream", new()
{
ShardCount = 1,
});
var exampleKinesisStreamingDestination = new Aws.DynamoDB.KinesisStreamingDestination("exampleKinesisStreamingDestination", new()
{
StreamArn = exampleStream.Arn,
TableName = exampleTable.Name,
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/dynamodb"
"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/kinesis"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleTable, err := dynamodb.NewTable(ctx, "exampleTable", &dynamodb.TableArgs{
HashKey: pulumi.String("id"),
Attributes: dynamodb.TableAttributeArray{
&dynamodb.TableAttributeArgs{
Name: pulumi.String("id"),
Type: pulumi.String("S"),
},
},
})
if err != nil {
return err
}
exampleStream, err := kinesis.NewStream(ctx, "exampleStream", &kinesis.StreamArgs{
ShardCount: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = dynamodb.NewKinesisStreamingDestination(ctx, "exampleKinesisStreamingDestination", &dynamodb.KinesisStreamingDestinationArgs{
StreamArn: exampleStream.Arn,
TableName: exampleTable.Name,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.dynamodb.Table;
import com.pulumi.aws.dynamodb.TableArgs;
import com.pulumi.aws.dynamodb.inputs.TableAttributeArgs;
import com.pulumi.aws.kinesis.Stream;
import com.pulumi.aws.kinesis.StreamArgs;
import com.pulumi.aws.dynamodb.KinesisStreamingDestination;
import com.pulumi.aws.dynamodb.KinesisStreamingDestinationArgs;
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) {
var exampleTable = new Table("exampleTable", TableArgs.builder()
.hashKey("id")
.attributes(TableAttributeArgs.builder()
.name("id")
.type("S")
.build())
.build());
var exampleStream = new Stream("exampleStream", StreamArgs.builder()
.shardCount(1)
.build());
var exampleKinesisStreamingDestination = new KinesisStreamingDestination("exampleKinesisStreamingDestination", KinesisStreamingDestinationArgs.builder()
.streamArn(exampleStream.arn())
.tableName(exampleTable.name())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleTable = new aws.dynamodb.Table("exampleTable", {
hashKey: "id",
attributes: [{
name: "id",
type: "S",
}],
});
const exampleStream = new aws.kinesis.Stream("exampleStream", {shardCount: 1});
const exampleKinesisStreamingDestination = new aws.dynamodb.KinesisStreamingDestination("exampleKinesisStreamingDestination", {
streamArn: exampleStream.arn,
tableName: exampleTable.name,
});
import pulumi
import pulumi_aws as aws
example_table = aws.dynamodb.Table("exampleTable",
hash_key="id",
attributes=[aws.dynamodb.TableAttributeArgs(
name="id",
type="S",
)])
example_stream = aws.kinesis.Stream("exampleStream", shard_count=1)
example_kinesis_streaming_destination = aws.dynamodb.KinesisStreamingDestination("exampleKinesisStreamingDestination",
stream_arn=example_stream.arn,
table_name=example_table.name)
resources:
exampleTable:
type: aws:dynamodb:Table
properties:
hashKey: id
attributes:
- name: id
type: S
exampleStream:
type: aws:kinesis:Stream
properties:
shardCount: 1
exampleKinesisStreamingDestination:
type: aws:dynamodb:KinesisStreamingDestination
properties:
streamArn: ${exampleStream.arn}
tableName: ${exampleTable.name}
Create KinesisStreamingDestination Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KinesisStreamingDestination(name: string, args: KinesisStreamingDestinationArgs, opts?: CustomResourceOptions);@overload
def KinesisStreamingDestination(resource_name: str,
args: KinesisStreamingDestinationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KinesisStreamingDestination(resource_name: str,
opts: Optional[ResourceOptions] = None,
stream_arn: Optional[str] = None,
table_name: Optional[str] = None)func NewKinesisStreamingDestination(ctx *Context, name string, args KinesisStreamingDestinationArgs, opts ...ResourceOption) (*KinesisStreamingDestination, error)public KinesisStreamingDestination(string name, KinesisStreamingDestinationArgs args, CustomResourceOptions? opts = null)
public KinesisStreamingDestination(String name, KinesisStreamingDestinationArgs args)
public KinesisStreamingDestination(String name, KinesisStreamingDestinationArgs args, CustomResourceOptions options)
type: aws:dynamodb:KinesisStreamingDestination
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args KinesisStreamingDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args KinesisStreamingDestinationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args KinesisStreamingDestinationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KinesisStreamingDestinationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KinesisStreamingDestinationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var kinesisStreamingDestinationResource = new Aws.DynamoDB.KinesisStreamingDestination("kinesisStreamingDestinationResource", new()
{
StreamArn = "string",
TableName = "string",
});
example, err := dynamodb.NewKinesisStreamingDestination(ctx, "kinesisStreamingDestinationResource", &dynamodb.KinesisStreamingDestinationArgs{
StreamArn: pulumi.String("string"),
TableName: pulumi.String("string"),
})
var kinesisStreamingDestinationResource = new KinesisStreamingDestination("kinesisStreamingDestinationResource", KinesisStreamingDestinationArgs.builder()
.streamArn("string")
.tableName("string")
.build());
kinesis_streaming_destination_resource = aws.dynamodb.KinesisStreamingDestination("kinesisStreamingDestinationResource",
stream_arn="string",
table_name="string")
const kinesisStreamingDestinationResource = new aws.dynamodb.KinesisStreamingDestination("kinesisStreamingDestinationResource", {
streamArn: "string",
tableName: "string",
});
type: aws:dynamodb:KinesisStreamingDestination
properties:
streamArn: string
tableName: string
KinesisStreamingDestination Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The KinesisStreamingDestination resource accepts the following input properties:
- stream_
arn str - The ARN for a Kinesis data stream. This must exist in the same account and region as the DynamoDB table.
- table_
name str - The name of the DynamoDB table. There can only be one Kinesis streaming destination for a given DynamoDB table.
Outputs
All input properties are implicitly available as output properties. Additionally, the KinesisStreamingDestination resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing KinesisStreamingDestination Resource
Get an existing KinesisStreamingDestination resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: KinesisStreamingDestinationState, opts?: CustomResourceOptions): KinesisStreamingDestination@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
stream_arn: Optional[str] = None,
table_name: Optional[str] = None) -> KinesisStreamingDestinationfunc GetKinesisStreamingDestination(ctx *Context, name string, id IDInput, state *KinesisStreamingDestinationState, opts ...ResourceOption) (*KinesisStreamingDestination, error)public static KinesisStreamingDestination Get(string name, Input<string> id, KinesisStreamingDestinationState? state, CustomResourceOptions? opts = null)public static KinesisStreamingDestination get(String name, Output<String> id, KinesisStreamingDestinationState state, CustomResourceOptions options)resources: _: type: aws:dynamodb:KinesisStreamingDestination get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- stream_
arn str - The ARN for a Kinesis data stream. This must exist in the same account and region as the DynamoDB table.
- table_
name str - The name of the DynamoDB table. There can only be one Kinesis streaming destination for a given DynamoDB table.
Import
DynamoDB Kinesis Streaming Destinations can be imported using the table_name and stream_arn separated by ,, e.g.,
$ pulumi import aws:dynamodb/kinesisStreamingDestination:KinesisStreamingDestination example example,arn:aws:kinesis:us-east-1:111122223333:exampleStreamName
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Tuesday, Mar 10, 2026 by Pulumi
