Class CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty>
- Enclosing interface:
CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty
@Stability(Stable)
public static final class CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionawsService(String awsService) build()Builds the configured instance.onFailureConfiguration(CfnEventSourcePropsMixin.OnFailureConfigurationProperty onFailureConfiguration) onFailureConfiguration(IResolvable onFailureConfiguration)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
awsService
@Stability(Stable) public CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder awsService(String awsService) - Parameters:
awsService- A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder onFailureConfiguration(IResolvable onFailureConfiguration) Sets the value ofCfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.getOnFailureConfiguration()- 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 CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder onFailureConfiguration(CfnEventSourcePropsMixin.OnFailureConfigurationProperty onFailureConfiguration) Sets the value ofCfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.getOnFailureConfiguration()- 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 CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty.Builder pattern(String pattern) - 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<CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty>- Returns:
- a new instance of
CfnEventSourcePropsMixin.AwsServiceEventsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-