@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.079Z") @Stability(value=Stable) public enum StreamViewType extends Enum<StreamViewType>
Example:
import software.amazon.awscdk.services.lambda.eventsources.*;
import software.amazon.awscdk.services.dynamodb.*;
Function fn;
Table table = Table.Builder.create(this, "Table")
.partitionKey(Attribute.builder()
.name("id")
.type(AttributeType.STRING)
.build())
.stream(StreamViewType.NEW_IMAGE)
.build();
fn.addEventSource(DynamoEventSource.Builder.create(table)
.startingPosition(StartingPosition.LATEST)
.filters(List.of(Map.of("eventName", FilterRule.isEqual("INSERT"))))
.build());
| Enum Constant and Description |
|---|
KEYS_ONLY
Only the key attributes of the modified item are written to the stream.
|
NEW_AND_OLD_IMAGES
Both the new and the old item images of the item are written to the stream.
|
NEW_IMAGE
The entire item, as it appears after it was modified, is written to the stream.
|
OLD_IMAGE
The entire item, as it appeared before it was modified, is written to the stream.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamViewType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamViewType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final StreamViewType NEW_IMAGE
@Stability(value=Stable) public static final StreamViewType OLD_IMAGE
@Stability(value=Stable) public static final StreamViewType NEW_AND_OLD_IMAGES
@Stability(value=Stable) public static final StreamViewType KEYS_ONLY
public static StreamViewType[] values()
for (StreamViewType c : StreamViewType.values()) System.out.println(c);
public static StreamViewType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.