Skip to content
v2.278.0

StreamReference Struct ​

A reference to a Stream resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesis as interfaces_kinesis } from 'aws-cdk-lib/interfaces';
const streamReference: interfaces_kinesis.StreamReference = {
  streamArn: 'streamArn',
  streamName: 'streamName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_kinesis as interfaces_kinesis

stream_reference = interfaces_kinesis.StreamReference(
    stream_arn="streamArn",
    stream_name="streamName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.kinesis.*;

StreamReference streamReference = StreamReference.builder()
        .streamArn("streamArn")
        .streamName("streamName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Interfaces.Kinesis;

var streamReference = new StreamReference {
    StreamArn = "streamArn",
    StreamName = "streamName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

streamReference := &StreamReference{
	StreamArn: jsii.String("streamArn"),
	StreamName: jsii.String("streamName"),
}

Properties ​

streamArnstringstream_arnstrstreamArnStringStreamArnstringStreamArn*string required #
The ARN of the Stream resource.
streamNamestringstream_namestrstreamNameStringStreamNamestringStreamName*string required #
The Name of the Stream resource.