@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.197Z") @Stability(value=Stable) public interface StreamAttributes extends software.amazon.jsii.JsiiSerializable
The easiest way to instantiate is to call
stream.export(). Then, the consumer can use Stream.import(this, ref) and
get a Stream.
Example:
IStream importedStream = Stream.fromStreamAttributes(this, "ImportedEncryptedStream", StreamAttributes.builder()
.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"))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
StreamAttributes.Builder
A builder for
StreamAttributes |
static class |
StreamAttributes.Jsii$Proxy
An implementation for
StreamAttributes |
| Modifier and Type | Method and Description |
|---|---|
static StreamAttributes.Builder |
builder() |
default IKey |
getEncryptionKey()
The KMS key securing the contents of the stream if encryption is enabled.
|
String |
getStreamArn()
The ARN of the stream.
|
@Stability(value=Stable) @NotNull String getStreamArn()
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
Default: - No encryption
@Stability(value=Stable) static StreamAttributes.Builder builder()
StreamAttributes.Builder of StreamAttributesCopyright © 2022. All rights reserved.