Class CfnEventSource.AwsServiceEventsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnEventSource.AwsServiceEventsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSource.AwsServiceEventsConfigurationProperty>
- Enclosing interface:
CfnEventSource.AwsServiceEventsConfigurationProperty
@Stability(Stable)
public static final class CfnEventSource.AwsServiceEventsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSource.AwsServiceEventsConfigurationProperty>
A builder for
CfnEventSource.AwsServiceEventsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsService(String awsService) Sets the value ofCfnEventSource.AwsServiceEventsConfigurationProperty.getAwsService()build()Builds the configured instance.onFailureConfiguration(IResolvable onFailureConfiguration) onFailureConfiguration(CfnEventSource.OnFailureConfigurationProperty onFailureConfiguration) Sets the value ofCfnEventSource.AwsServiceEventsConfigurationProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsService
@Stability(Stable) public CfnEventSource.AwsServiceEventsConfigurationProperty.Builder awsService(String awsService) Sets the value ofCfnEventSource.AwsServiceEventsConfigurationProperty.getAwsService()- Parameters:
awsService- A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed. This parameter is required.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnEventSource.AwsServiceEventsConfigurationProperty.Builder onFailureConfiguration(IResolvable onFailureConfiguration) - Parameters:
onFailureConfiguration- The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus. Arn is optional. An empty object removes a configured destination on update.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnEventSource.AwsServiceEventsConfigurationProperty.Builder onFailureConfiguration(CfnEventSource.OnFailureConfigurationProperty onFailureConfiguration) - Parameters:
onFailureConfiguration- The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus. Arn is optional. An empty object removes a configured destination on update.- Returns:
this
-
pattern
@Stability(Stable) public CfnEventSource.AwsServiceEventsConfigurationProperty.Builder pattern(String pattern) Sets the value ofCfnEventSource.AwsServiceEventsConfigurationProperty.getPattern()- Parameters:
pattern- A filter pattern, as a JSON string, that defines which events from the specified AWS service are forwarded to the event bus. Do not include source, account, or region as top-level fields. If you do not specify a pattern, all events from the service are forwarded.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSource.AwsServiceEventsConfigurationProperty>- Returns:
- a new instance of
CfnEventSource.AwsServiceEventsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-