1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. dsql
  6. Stream
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an AWS DSQL Stream.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleCluster = new aws.dsql.Cluster("example", {});
    const exampleStream = new aws.kinesis.Stream("example", {
        name: "example",
        shardCount: 1,
    });
    const example = new aws.dsql.Stream("example", {
        targetDefinition: {
            kinesis: {
                roleArn: exampleAwsIamRole.arn,
                streamArn: exampleStream.arn,
            },
        },
        clusterIdentifier: exampleCluster.identifier,
        format: "JSON",
        ordering: "UNORDERED",
    }, {
        dependsOn: [exampleAwsIamRolePolicy],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example_cluster = aws.dsql.Cluster("example")
    example_stream = aws.kinesis.Stream("example",
        name="example",
        shard_count=1)
    example = aws.dsql.Stream("example",
        target_definition={
            "kinesis": {
                "role_arn": example_aws_iam_role["arn"],
                "stream_arn": example_stream.arn,
            },
        },
        cluster_identifier=example_cluster.identifier,
        format="JSON",
        ordering="UNORDERED",
        opts = pulumi.ResourceOptions(depends_on=[example_aws_iam_role_policy]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/dsql"
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/kinesis"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleCluster, err := dsql.NewCluster(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		exampleStream, err := kinesis.NewStream(ctx, "example", &kinesis.StreamArgs{
    			Name:       pulumi.String("example"),
    			ShardCount: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = dsql.NewStream(ctx, "example", &dsql.StreamArgs{
    			TargetDefinition: &dsql.StreamTargetDefinitionArgs{
    				Kinesis: &dsql.StreamTargetDefinitionKinesisArgs{
    					RoleArn:   pulumi.Any(exampleAwsIamRole.Arn),
    					StreamArn: exampleStream.Arn,
    				},
    			},
    			ClusterIdentifier: exampleCluster.Identifier,
    			Format:            pulumi.String("JSON"),
    			Ordering:          pulumi.String("UNORDERED"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleAwsIamRolePolicy,
    		}))
    		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 exampleCluster = new Aws.Dsql.Cluster("example");
    
        var exampleStream = new Aws.Kinesis.Stream("example", new()
        {
            Name = "example",
            ShardCount = 1,
        });
    
        var example = new Aws.Dsql.Stream("example", new()
        {
            TargetDefinition = new Aws.Dsql.Inputs.StreamTargetDefinitionArgs
            {
                Kinesis = new Aws.Dsql.Inputs.StreamTargetDefinitionKinesisArgs
                {
                    RoleArn = exampleAwsIamRole.Arn,
                    StreamArn = exampleStream.Arn,
                },
            },
            ClusterIdentifier = exampleCluster.Identifier,
            Format = "JSON",
            Ordering = "UNORDERED",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleAwsIamRolePolicy,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.dsql.Cluster;
    import com.pulumi.aws.dsql.inputs.StreamTargetDefinitionArgs;
    import com.pulumi.aws.dsql.inputs.StreamTargetDefinitionKinesisArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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) {
            var exampleCluster = new Cluster("exampleCluster");
    
            var exampleStream = new com.pulumi.aws.kinesis.Stream("exampleStream", com.pulumi.aws.kinesis.StreamArgs.builder()
                .name("example")
                .shardCount(1)
                .build());
    
            var example = new com.pulumi.aws.dsql.Stream("example", com.pulumi.aws.dsql.StreamArgs.builder()
                .targetDefinition(StreamTargetDefinitionArgs.builder()
                    .kinesis(StreamTargetDefinitionKinesisArgs.builder()
                        .roleArn(exampleAwsIamRole.get("arn"))
                        .streamArn(exampleStream.arn())
                        .build())
                    .build())
                .clusterIdentifier(exampleCluster.identifier())
                .format("JSON")
                .ordering("UNORDERED")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleAwsIamRolePolicy)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:dsql:Stream
        properties:
          targetDefinition:
            kinesis:
              roleArn: ${exampleAwsIamRole.arn}
              streamArn: ${exampleStream.arn}
          clusterIdentifier: ${exampleCluster.identifier}
          format: JSON
          ordering: UNORDERED
        options:
          dependsOn:
            - ${exampleAwsIamRolePolicy}
      exampleCluster:
        type: aws:dsql:Cluster
        name: example
      exampleStream:
        type: aws:kinesis:Stream
        name: example
        properties:
          name: example
          shardCount: 1
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_dsql_stream" "example" {
      depends_on = [exampleAwsIamRolePolicy]
      lifecycle {
        create_before_destroy = true
      }
      target_definition {
        kinesis {
          role_arn   = exampleAwsIamRole.arn
          stream_arn = aws_kinesis_stream.example.arn
        }
      }
      cluster_identifier = aws_dsql_cluster.example.identifier
      format             = "JSON"
      ordering           = "UNORDERED"
    }
    resource "aws_dsql_cluster" "example" {
      lifecycle {
        create_before_destroy = true
      }
    }
    resource "aws_kinesis_stream" "example" {
      lifecycle {
        create_before_destroy = true
      }
      name        = "example"
      shard_count = 1
    }
    

    Create Stream Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Stream(name: string, args: StreamArgs, opts?: CustomResourceOptions);
    @overload
    def Stream(resource_name: str,
               args: StreamArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Stream(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               cluster_identifier: Optional[str] = None,
               format: Optional[str] = None,
               ordering: Optional[str] = None,
               target_definition: Optional[StreamTargetDefinitionArgs] = None,
               region: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None,
               timeouts: Optional[StreamTimeoutsArgs] = None)
    func NewStream(ctx *Context, name string, args StreamArgs, opts ...ResourceOption) (*Stream, error)
    public Stream(string name, StreamArgs args, CustomResourceOptions? opts = null)
    public Stream(String name, StreamArgs args)
    public Stream(String name, StreamArgs args, CustomResourceOptions options)
    
    type: aws:dsql:Stream
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_dsql_stream" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args StreamArgs
    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 StreamArgs
    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 StreamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamArgs
    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 streamResource = new Aws.Dsql.Stream("streamResource", new()
    {
        ClusterIdentifier = "string",
        Format = "string",
        Ordering = "string",
        TargetDefinition = new Aws.Dsql.Inputs.StreamTargetDefinitionArgs
        {
            Kinesis = new Aws.Dsql.Inputs.StreamTargetDefinitionKinesisArgs
            {
                RoleArn = "string",
                StreamArn = "string",
            },
        },
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Dsql.Inputs.StreamTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
    });
    
    example, err := dsql.NewStream(ctx, "streamResource", &dsql.StreamArgs{
    	ClusterIdentifier: pulumi.String("string"),
    	Format:            pulumi.String("string"),
    	Ordering:          pulumi.String("string"),
    	TargetDefinition: &dsql.StreamTargetDefinitionArgs{
    		Kinesis: &dsql.StreamTargetDefinitionKinesisArgs{
    			RoleArn:   pulumi.String("string"),
    			StreamArn: pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &dsql.StreamTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    })
    
    resource "aws_dsql_stream" "streamResource" {
      lifecycle {
        create_before_destroy = true
      }
      cluster_identifier = "string"
      format             = "string"
      ordering           = "string"
      target_definition = {
        kinesis = {
          role_arn   = "string"
          stream_arn = "string"
        }
      }
      region = "string"
      tags = {
        "string" = "string"
      }
      _ {
        timeouts = {
          create = "string"
          delete = "string"
        }
      }
    }
    
    var streamResource = new com.pulumi.aws.dsql.Stream("streamResource", com.pulumi.aws.dsql.StreamArgs.builder()
        .clusterIdentifier("string")
        .format("string")
        .ordering("string")
        .targetDefinition(StreamTargetDefinitionArgs.builder()
            .kinesis(StreamTargetDefinitionKinesisArgs.builder()
                .roleArn("string")
                .streamArn("string")
                .build())
            .build())
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(StreamTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .build());
    
    stream_resource = aws.dsql.Stream("streamResource",
        cluster_identifier="string",
        format="string",
        ordering="string",
        target_definition={
            "kinesis": {
                "role_arn": "string",
                "stream_arn": "string",
            },
        },
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
        })
    
    const streamResource = new aws.dsql.Stream("streamResource", {
        clusterIdentifier: "string",
        format: "string",
        ordering: "string",
        targetDefinition: {
            kinesis: {
                roleArn: "string",
                streamArn: "string",
            },
        },
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
        },
    });
    
    type: aws:dsql:Stream
    properties:
        clusterIdentifier: string
        format: string
        ordering: string
        region: string
        tags:
            string: string
        targetDefinition:
            kinesis:
                roleArn: string
                streamArn: string
        timeouts:
            create: string
            delete: string
    

    Stream 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 Stream resource accepts the following input properties:

    ClusterIdentifier string
    ID of the cluster for which to create the stream.
    Format string
    Format of the stream records. Valid values: JSON.
    Ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    TargetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts StreamTimeouts
    ClusterIdentifier string
    ID of the cluster for which to create the stream.
    Format string
    Format of the stream records. Valid values: JSON.
    Ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    TargetDefinition StreamTargetDefinitionArgs

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts StreamTimeoutsArgs
    cluster_identifier string
    ID of the cluster for which to create the stream.
    format string
    Format of the stream records. Valid values: JSON.
    ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    target_definition object

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts object
    clusterIdentifier String
    ID of the cluster for which to create the stream.
    format String
    Format of the stream records. Valid values: JSON.
    ordering String
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    targetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts StreamTimeouts
    clusterIdentifier string
    ID of the cluster for which to create the stream.
    format string
    Format of the stream records. Valid values: JSON.
    ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    targetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts StreamTimeouts
    cluster_identifier str
    ID of the cluster for which to create the stream.
    format str
    Format of the stream records. Valid values: JSON.
    ordering str
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    target_definition StreamTargetDefinitionArgs

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts StreamTimeoutsArgs
    clusterIdentifier String
    ID of the cluster for which to create the stream.
    format String
    Format of the stream records. Valid values: JSON.
    ordering String
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    targetDefinition Property Map

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Stream resource produces the following output properties:

    Arn string
    ARN of the retrieved stream.
    CreationTime string
    Time when the stream was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    StreamIdentifier string
    ID of the retrieved stream.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Arn string
    ARN of the retrieved stream.
    CreationTime string
    Time when the stream was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    StreamIdentifier string
    ID of the retrieved stream.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the retrieved stream.
    creation_time string
    Time when the stream was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    stream_identifier string
    ID of the retrieved stream.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the retrieved stream.
    creationTime String
    Time when the stream was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier String
    ID of the retrieved stream.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn string
    ARN of the retrieved stream.
    creationTime string
    Time when the stream was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier string
    ID of the retrieved stream.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn str
    ARN of the retrieved stream.
    creation_time str
    Time when the stream was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    stream_identifier str
    ID of the retrieved stream.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    arn String
    ARN of the retrieved stream.
    creationTime String
    Time when the stream was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier String
    ID of the retrieved stream.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing Stream Resource

    Get an existing Stream 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?: StreamState, opts?: CustomResourceOptions): Stream
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            cluster_identifier: Optional[str] = None,
            creation_time: Optional[str] = None,
            format: Optional[str] = None,
            ordering: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            stream_identifier: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            target_definition: Optional[StreamTargetDefinitionArgs] = None,
            timeouts: Optional[StreamTimeoutsArgs] = None) -> Stream
    func GetStream(ctx *Context, name string, id IDInput, state *StreamState, opts ...ResourceOption) (*Stream, error)
    public static Stream Get(string name, Input<string> id, StreamState? state, CustomResourceOptions? opts = null)
    public static Stream get(String name, Output<String> id, StreamState state, CustomResourceOptions options)
    resources:  existingStream:    type: aws:dsql:Stream    get:      id: ${id}
    import {
      to = aws_dsql_stream.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state StreamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state StreamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state StreamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state StreamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    Arn string
    ARN of the retrieved stream.
    ClusterIdentifier string
    ID of the cluster for which to create the stream.
    CreationTime string
    Time when the stream was created.
    Format string
    Format of the stream records. Valid values: JSON.
    Ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    StreamIdentifier string
    ID of the retrieved stream.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TargetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    Timeouts StreamTimeouts
    Arn string
    ARN of the retrieved stream.
    ClusterIdentifier string
    ID of the cluster for which to create the stream.
    CreationTime string
    Time when the stream was created.
    Format string
    Format of the stream records. Valid values: JSON.
    Ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    StreamIdentifier string
    ID of the retrieved stream.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    TargetDefinition StreamTargetDefinitionArgs

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    Timeouts StreamTimeoutsArgs
    arn string
    ARN of the retrieved stream.
    cluster_identifier string
    ID of the cluster for which to create the stream.
    creation_time string
    Time when the stream was created.
    format string
    Format of the stream records. Valid values: JSON.
    ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    stream_identifier string
    ID of the retrieved stream.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    target_definition object

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    timeouts object
    arn String
    ARN of the retrieved stream.
    clusterIdentifier String
    ID of the cluster for which to create the stream.
    creationTime String
    Time when the stream was created.
    format String
    Format of the stream records. Valid values: JSON.
    ordering String
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier String
    ID of the retrieved stream.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    targetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    timeouts StreamTimeouts
    arn string
    ARN of the retrieved stream.
    clusterIdentifier string
    ID of the cluster for which to create the stream.
    creationTime string
    Time when the stream was created.
    format string
    Format of the stream records. Valid values: JSON.
    ordering string
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status string
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier string
    ID of the retrieved stream.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    targetDefinition StreamTargetDefinition

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    timeouts StreamTimeouts
    arn str
    ARN of the retrieved stream.
    cluster_identifier str
    ID of the cluster for which to create the stream.
    creation_time str
    Time when the stream was created.
    format str
    Format of the stream records. Valid values: JSON.
    ordering str
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status str
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    stream_identifier str
    ID of the retrieved stream.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    target_definition StreamTargetDefinitionArgs

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    timeouts StreamTimeoutsArgs
    arn String
    ARN of the retrieved stream.
    clusterIdentifier String
    ID of the cluster for which to create the stream.
    creationTime String
    Time when the stream was created.
    format String
    Format of the stream records. Valid values: JSON.
    ordering String
    Ordering mode for the stream. Determines how change events are ordered when delivered to the target. Valid values: UNORDERED.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    status String
    Current status of the retrieved stream. Valid values: CREATING, ACTIVE, DELETING, DELETED, FAILED, IMPAIRED.
    streamIdentifier String
    ID of the retrieved stream.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    targetDefinition Property Map

    Target destination configuration for the stream. Contains Kinesis stream configuration including stream ARN and IAM role ARN. See targetDefinition Block below.

    The following arguments are optional:

    timeouts Property Map

    Supporting Types

    StreamTargetDefinition, StreamTargetDefinitionArgs

    Kinesis StreamTargetDefinitionKinesis
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    Kinesis StreamTargetDefinitionKinesis
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    kinesis object
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    kinesis StreamTargetDefinitionKinesis
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    kinesis StreamTargetDefinitionKinesis
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    kinesis StreamTargetDefinitionKinesis
    Kinesis stream target configuration. See target_definition.kinesis Block below.
    kinesis Property Map
    Kinesis stream target configuration. See target_definition.kinesis Block below.

    StreamTargetDefinitionKinesis, StreamTargetDefinitionKinesisArgs

    RoleArn string
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    StreamArn string
    ARN of the Kinesis stream.
    RoleArn string
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    StreamArn string
    ARN of the Kinesis stream.
    role_arn string
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    stream_arn string
    ARN of the Kinesis stream.
    roleArn String
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    streamArn String
    ARN of the Kinesis stream.
    roleArn string
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    streamArn string
    ARN of the Kinesis stream.
    role_arn str
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    stream_arn str
    ARN of the Kinesis stream.
    roleArn String
    ARN of the IAM role that grants permission to write to the Kinesis stream. This can be a standard role ( arn:aws:iam::account-id:role/role-name ) or a role with a path prefix ( arn:aws:iam::account-id:role/service-role/role-name ), such as roles auto-created by the console.
    streamArn String
    ARN of the Kinesis stream.

    StreamTimeouts, StreamTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

    Import

    Identity Schema

    Required

    • clusterIdentifier (String) ID of the cluster for which to create the stream.
    • streamIdentifier (String) ID of the retrieved stream.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import DSQL Stream using the clusterIdentifier and streamIdentifier, separated by a comma. For example:

    $ pulumi import aws:dsql/stream:Stream example "cluster-identifier-0123456789abcdef0,stream-identifier-0123456789abcdef0"
    

    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 aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial