@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:30:02.414Z") @Stability(value=Experimental) public class Stream extends Resource implements IStream
Can be encrypted with a KMS key.
| Modifier and Type | Class and Description |
|---|---|
static class |
Stream.Builder
(experimental) A fluent builder for
Stream. |
software.amazon.jsii.JsiiObject.InitializationModeIStream.Jsii$Default, IStream.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
Stream(software.constructs.Construct scope,
String id) |
|
Stream(software.constructs.Construct scope,
String id,
StreamProps props) |
protected |
Stream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Stream(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IStream |
fromStreamArn(software.constructs.Construct scope,
String id,
String streamArn)
(experimental) Import an existing Kinesis Stream provided an ARN.
|
static IStream |
fromStreamAttributes(software.constructs.Construct scope,
String id,
StreamAttributes attrs)
(experimental) Creates a Stream construct that represents an external stream.
|
IKey |
getEncryptionKey()
(experimental) Optional KMS encryption key associated with this stream.
|
String |
getStreamArn()
(experimental) The ARN of the stream.
|
String |
getStreamName()
(experimental) The name of the stream.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the indicated permissions on this stream to the given IAM principal (Role/Group/User).
|
Grant |
grantRead(IGrantable grantee)
(experimental) Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
Grant |
grantReadWrite(IGrantable grantee)
(experimental) Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
Grant |
grantWrite(IGrantable grantee)
(experimental) Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Stream(software.amazon.jsii.JsiiObjectRef objRef)
protected Stream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Stream(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
StreamProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Experimental)
public Stream(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Experimental) @NotNull public static IStream fromStreamArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String streamArn)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.streamArn - Stream ARN (i.e. arn:aws:kinesis:@Stability(value=Experimental) @NotNull public static IStream fromStreamAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull StreamAttributes attrs)
scope - The parent creating construct (usually `this`). This parameter is required.id - The construct's name. This parameter is required.attrs - Stream import properties. This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
@Stability(value=Experimental) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
If an encryption key is used, permission to ues the key to decrypt the contents of the stream will also be granted.
@Stability(value=Experimental) @NotNull public Grant grantReadWrite(@NotNull IGrantable grantee)
If an encryption key is used, permission to use the key for encrypt/decrypt will also be granted.
grantReadWrite in interface IStreamgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantWrite(@NotNull IGrantable grantee)
If an encryption key is used, permission to ues the key to decrypt the contents of the stream will also be granted.
grantWrite in interface IStreamgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public String getStreamArn()
getStreamArn in interface IStream@Stability(value=Experimental) @NotNull public String getStreamName()
getStreamName in interface IStream@Stability(value=Experimental) @Nullable public IKey getEncryptionKey()
getEncryptionKey in interface IStreamCopyright © 2021. All rights reserved.