Class CfnEventSource.PartnerEventsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnEventSource.PartnerEventsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSource.PartnerEventsConfigurationProperty>
- Enclosing interface:
CfnEventSource.PartnerEventsConfigurationProperty
@Stability(Stable)
public static final class CfnEventSource.PartnerEventsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSource.PartnerEventsConfigurationProperty>
A builder for
CfnEventSource.PartnerEventsConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onFailureConfiguration(IResolvable onFailureConfiguration) onFailureConfiguration(CfnEventSource.OnFailureConfigurationProperty onFailureConfiguration) partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) partnerEventSourceArn(String partnerEventSourceArn) Sets the value ofCfnEventSource.PartnerEventsConfigurationProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
partnerEventSourceArn
@Stability(Stable) public CfnEventSource.PartnerEventsConfigurationProperty.Builder partnerEventSourceArn(String partnerEventSourceArn) - Parameters:
partnerEventSourceArn- The ARN of the partner event source to forward. This parameter is required. The partner owns the event source, so the ARN's account segment is empty. Changing this property replaces the event source. Because Name and EventBusArn together identify an event source, and the replacement is created before the old resource is deleted, change Name in the same update.- Returns:
this
-
onFailureConfiguration
@Stability(Stable) public CfnEventSource.PartnerEventsConfigurationProperty.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.PartnerEventsConfigurationProperty.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
-
partnerBusKmsKeyIdentifier
@Stability(Stable) public CfnEventSource.PartnerEventsConfigurationProperty.Builder partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) - Parameters:
partnerBusKmsKeyIdentifier- The identifier of the AWS KMS customer managed key for EventBridge to use, if you choose to use a customer managed key to encrypt events on the managed partner event bus. The identifier can be the key Amazon Resource Name (ARN), KeyId, key alias, or key alias ARN. If you do not specify a customer managed key identifier, EventBridge uses an AWS owned key to encrypt events on the event bus.- Returns:
this
-
pattern
@Stability(Stable) public CfnEventSource.PartnerEventsConfigurationProperty.Builder pattern(String pattern) Sets the value ofCfnEventSource.PartnerEventsConfigurationProperty.getPattern()- Parameters:
pattern- A filter pattern, as a JSON string, that defines which events from the specified partner event source are forwarded to the event bus. If you do not specify a pattern, all events from the partner event source are forwarded.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventSource.PartnerEventsConfigurationProperty>- Returns:
- a new instance of
CfnEventSource.PartnerEventsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-