Class CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty>
- Enclosing interface:
CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty
@Stability(Stable)
public static final class CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onFailureConfiguration(CfnEventSourcePropsMixin.OnFailureConfigurationProperty onFailureConfiguration) onFailureConfiguration(IResolvable onFailureConfiguration) partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) partnerEventSourceArn(String partnerEventSourceArn) Sets the value ofCfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.getPattern()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
onFailureConfiguration
@Stability(Stable) public CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder onFailureConfiguration(IResolvable onFailureConfiguration) Sets the value ofCfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.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.PartnerEventsConfigurationProperty.Builder onFailureConfiguration(CfnEventSourcePropsMixin.OnFailureConfigurationProperty onFailureConfiguration) Sets the value ofCfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.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
-
partnerBusKmsKeyIdentifier
@Stability(Stable) public CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder partnerBusKmsKeyIdentifier(String partnerBusKmsKeyIdentifier) Sets the value ofCfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.getPartnerBusKmsKeyIdentifier()- 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
-
partnerEventSourceArn
@Stability(Stable) public CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder partnerEventSourceArn(String partnerEventSourceArn) Sets the value ofCfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.getPartnerEventSourceArn()- Parameters:
partnerEventSourceArn- The ARN of the partner event source to forward. 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
-
pattern
@Stability(Stable) public CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty.Builder pattern(String pattern) Sets the value ofCfnEventSourcePropsMixin.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<CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty>- Returns:
- a new instance of
CfnEventSourcePropsMixin.PartnerEventsConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-