Class StreamAttributes
A reference to a stream.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Kinesis
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StreamAttributes : Object, IStreamAttributes
Syntax (vb)
Public Class StreamAttributes
Inherits Object
Implements IStreamAttributes
Remarks
The easiest way to instantiate is to call
stream.export()
. Then, the consumer can use Stream.import(this, ref)
and
get a Stream
.
ExampleMetadata: infused
Examples
var importedStream = Stream.FromStreamAttributes(this, "ImportedEncryptedStream", new StreamAttributes {
StreamArn = "arn:aws:kinesis:us-east-2:123456789012:stream/f3j09j2230j",
EncryptionKey = Key.FromKeyArn(this, "key", "arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012")
});
Synopsis
Constructors
Stream |
Properties
Encryption |
The KMS key securing the contents of the stream if encryption is enabled. |
Stream |
The ARN of the stream. |
Constructors
StreamAttributes()
public StreamAttributes()
Properties
EncryptionKey
The KMS key securing the contents of the stream if encryption is enabled.
public IKey EncryptionKey { get; set; }
Property Value
Remarks
Default: - No encryption
StreamArn
The ARN of the stream.
public string StreamArn { get; set; }
Property Value
System.