@Stability(value=Stable) public static final class EventPattern.Builder extends Object
EventPattern| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EventPattern.Builder |
account(List<String> account)
Sets the value of
EventPattern.getAccount() |
EventPattern |
build()
Builds the configured instance.
|
EventPattern.Builder |
detail(Map<String,Object> detail)
Sets the value of
EventPattern.getDetail() |
EventPattern.Builder |
detailType(List<String> detailType)
Sets the value of
EventPattern.getDetailType() |
EventPattern.Builder |
id(List<String> id)
Sets the value of
EventPattern.getId() |
EventPattern.Builder |
region(List<String> region)
Sets the value of
EventPattern.getRegion() |
EventPattern.Builder |
resources(List<String> resources)
Sets the value of
EventPattern.getResources() |
EventPattern.Builder |
source(List<String> source)
Sets the value of
EventPattern.getSource() |
EventPattern.Builder |
time(List<String> time)
Sets the value of
EventPattern.getTime() |
EventPattern.Builder |
version(List<String> version)
Sets the value of
EventPattern.getVersion() |
@Stability(value=Stable) public EventPattern.Builder account(List<String> account)
EventPattern.getAccount()account - The 12-digit number identifying an AWS account.this@Stability(value=Stable) public EventPattern.Builder detail(Map<String,Object> detail)
EventPattern.getDetail()detail - A JSON object, whose content is at the discretion of the service originating the event.this@Stability(value=Stable) public EventPattern.Builder detailType(List<String> detailType)
EventPattern.getDetailType()detailType - Identifies, in combination with the source field, the fields and values that appear in the detail field.
Represents the "detail-type" event field.this@Stability(value=Stable) public EventPattern.Builder id(List<String> id)
EventPattern.getId()id - 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.this@Stability(value=Stable) public EventPattern.Builder region(List<String> region)
EventPattern.getRegion()region - Identifies the AWS region where the event originated.this@Stability(value=Stable) public EventPattern.Builder resources(List<String> resources)
EventPattern.getResources()resources - 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.
this@Stability(value=Stable) public EventPattern.Builder source(List<String> source)
EventPattern.getSource()source - 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.
this@Stability(value=Stable) public EventPattern.Builder time(List<String> time)
EventPattern.getTime()time - 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.this@Stability(value=Stable) public EventPattern.Builder version(List<String> version)
EventPattern.getVersion()version - By default, this is set to 0 (zero) in all events.this@Stability(value=Stable) public EventPattern build()
EventPatternNullPointerException - if any required attribute was not providedCopyright © 2020. All rights reserved.