Interface CfnEventSourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnEventSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:52.403Z")
@Stability(Stable)
public interface CfnEventSourceProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnEventSource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eventsv2.*;
CfnEventSourceProps cfnEventSourceProps = CfnEventSourceProps.builder()
.configuration(EventSourceConfigurationProperty.builder()
.awsServiceEventsConfiguration(AwsServiceEventsConfigurationProperty.builder()
.awsService("awsService")
// the properties below are optional
.onFailureConfiguration(OnFailureConfigurationProperty.builder()
.arn("arn")
.build())
.pattern("pattern")
.build())
.partnerEventsConfiguration(PartnerEventsConfigurationProperty.builder()
.partnerEventSourceArn("partnerEventSourceArn")
// the properties below are optional
.onFailureConfiguration(OnFailureConfigurationProperty.builder()
.arn("arn")
.build())
.partnerBusKmsKeyIdentifier("partnerBusKmsKeyIdentifier")
.pattern("pattern")
.build())
.build())
.eventBusArn("eventBusArn")
.name("name")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnEventSourcePropsstatic final classAn implementation forCfnEventSourceProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnEventSourceProps.Builderbuilder()Event source configuration.default StringA description of the event source.The ARN of the custom event bus the event source forwards onto.getName()The name of the event source.getTags()The tags assigned to the event source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConfiguration
Event source configuration.Exactly one of the two variants must be set.
Returns union: either
IResolvableorCfnEventSource.EventSourceConfigurationProperty- See Also:
-
getEventBusArn
The ARN of the custom event bus the event source forwards onto.- See Also:
-
getName
The name of the event source.The first character must be alphanumeric; the remaining characters may also include '.', '-', and '_'. Names cannot begin with the reserved aws. prefix.
- See Also:
-
getDescription
A description of the event source.Control characters and Unicode line separators are not allowed.
- See Also:
-
getTags
The tags assigned to the event source.- See Also:
-
builder
- Returns:
- a
CfnEventSourceProps.BuilderofCfnEventSourceProps
-