@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.305Z") @Stability(value=Stable) public interface EventCommonOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.events.*;
import software.constructs.*;
Construct construct;
Object detail;
EventCommonOptions eventCommonOptions = EventCommonOptions.builder()
.crossStackScope(construct)
.description("description")
.eventPattern(EventPattern.builder()
.account(List.of("account"))
.detail(Map.of(
"detailKey", detail))
.detailType(List.of("detailType"))
.id(List.of("id"))
.region(List.of("region"))
.resources(List.of("resources"))
.source(List.of("source"))
.time(List.of("time"))
.version(List.of("version"))
.build())
.ruleName("ruleName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventCommonOptions.Builder
A builder for
EventCommonOptions |
static class |
EventCommonOptions.Jsii$Proxy
An implementation for
EventCommonOptions |
| Modifier and Type | Method and Description |
|---|---|
static EventCommonOptions.Builder |
builder() |
default software.constructs.Construct |
getCrossStackScope()
The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region).
|
default String |
getDescription()
A description of the rule's purpose.
|
default EventPattern |
getEventPattern()
Additional restrictions for the event to route to the specified target.
|
default String |
getRuleName()
A name for the rule.
|
@Stability(value=Stable) @Nullable default software.constructs.Construct getCrossStackScope()
This helps dealing with cycles that often arise in these situations.
Default: - none (the main scope will be used, even for cross-stack Events)
@Stability(value=Stable) @Nullable default String getDescription()
Default: - No description
@Stability(value=Stable) @Nullable default EventPattern getEventPattern()
The method that generates the rule probably imposes some type of event filtering. The filtering implied by what you pass here is added on top of that filtering.
Default: - No additional filtering based on an event pattern.
@Stability(value=Stable) @Nullable default String getRuleName()
Default: AWS CloudFormation generates a unique physical ID.
@Stability(value=Stable) static EventCommonOptions.Builder builder()
EventCommonOptions.Builder of EventCommonOptionsCopyright © 2022. All rights reserved.