public static final class EventPattern.Builder extends Object
EventPattern| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventPattern |
build()
Builds the configured instance.
|
EventPattern.Builder |
withAccount(List<String> value)
Sets the value of Account
|
EventPattern.Builder |
withDetail(Object value)
Sets the value of Detail
|
EventPattern.Builder |
withDetailType(List<String> value)
Sets the value of DetailType
|
EventPattern.Builder |
withId(List<String> value)
Sets the value of Id
|
EventPattern.Builder |
withRegion(List<String> value)
Sets the value of Region
|
EventPattern.Builder |
withResources(List<String> value)
Sets the value of Resources
|
EventPattern.Builder |
withSource(List<String> value)
Sets the value of Source
|
EventPattern.Builder |
withTime(List<String> value)
Sets the value of Time
|
EventPattern.Builder |
withVersion(List<String> value)
Sets the value of Version
|
public EventPattern.Builder withAccount(@Nullable List<String> value)
value - The 12-digit number identifying an AWS account.thispublic EventPattern.Builder withDetail(@Nullable Object value)
value - A JSON object, whose content is at the discretion of the service
originating the event.thispublic EventPattern.Builder withDetailType(@Nullable List<String> value)
value - Identifies, in combination with the source field, the fields and values
that appear in the detail field.
Represents the "detail-type" event field.thispublic EventPattern.Builder withId(@Nullable List<String> value)
value - A unique value is generated for every event. This can be helpful in
tracing events as they move through rules to targets, and are processed.thispublic EventPattern.Builder withRegion(@Nullable List<String> value)
value - Identifies the AWS region where the event originated.thispublic EventPattern.Builder withResources(@Nullable List<String> value)
value - This JSON array contains ARNs that identify resources that are involved
in the event. Inclusion of these ARNs is at the discretion of the
service.
For example, Amazon EC2 instance state-changes include Amazon EC2
instance ARNs, Auto Scaling events include ARNs for both instances and
Auto Scaling groups, but API calls with AWS CloudTrail do not include
resource ARNs.thispublic EventPattern.Builder withSource(@Nullable List<String> value)
value - Identifies the service that sourced the event. All events sourced from
within AWS begin with "aws." Customer-generated events can have any value
here, as long as it doesn't begin with "aws." We recommend the use of
Java package-name style reverse domain-name strings.
To find the correct value for source for an AWS service, see the table in
AWS Service Namespaces. For example, the source value for Amazon
CloudFront is aws.cloudfront.thispublic EventPattern.Builder withTime(@Nullable List<String> value)
value - The event timestamp, which can be specified by the service originating
the event. If the event spans a time interval, the service might choose
to report the start time, so this value can be noticeably before the time
the event is actually received.thispublic EventPattern.Builder withVersion(@Nullable List<String> value)
value - By default, this is set to 0 (zero) in all events.thispublic EventPattern build()
EventPatternNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.