Class CfnSubscriber
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.eventsv2.CfnSubscriber
- All Implemented Interfaces:
IInspectable,ISubscriberRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:52.405Z")
@Stability(Stable)
public class CfnSubscriber
extends CfnResource
implements IInspectable, ISubscriberRef, ITaggableV2
Resource type definition for AWS::EventsV2::Subscriber, an Amazon EventBridge subscription that delivers events from an event bus to a target.
Canonical identity is the combination of bus, name, and target. Replacement uses delete_then_create.
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.*;
CfnSubscriber cfnSubscriber = CfnSubscriber.Builder.create(this, "MyCfnSubscriber")
.eventBusArn("eventBusArn")
.name("name")
// the properties below are optional
.batchConfiguration(BatchConfigurationProperty.builder()
.maxBatchSize(123)
.maxBatchWindowInSeconds(123)
.build())
.description("description")
.filterConfiguration(FilterConfigurationProperty.builder()
.filters(List.of(FilterProperty.builder()
.pattern("pattern")
.scope("scope")
.build()))
// the properties below are optional
.language("language")
.build())
.logConfiguration(LogConfigurationProperty.builder()
.includePayload("includePayload")
.level("level")
.build())
.onFailureConfiguration(OnFailureConfigurationProperty.builder()
.arn("arn")
.build())
.pointInTimeConfiguration(PointInTimeConfigurationProperty.builder()
.pointType("pointType")
// the properties below are optional
.endPoint(123)
.startingPoint(123)
.build())
.resumePosition("resumePosition")
.retryPolicy(RetryPolicyProperty.builder()
.maxEventAgeInSeconds(123)
.maxRetryAttempts(123)
.retryStrategy("retryStrategy")
.build())
.startingPosition("startingPosition")
.state("state")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.transformer(TransformerProperty.builder()
.jsonataConfiguration(JsonataConfigurationProperty.builder()
.expression("expression")
.build())
.type("type")
.build())
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConfiguration for batching events into a single delivery.static final classA fluent builder forCfnSubscriber.static interfaceConfiguration for filtering which events are delivered to the target.static interfaceA single filter entry: an event pattern and the scope of the event it is evaluated against.static interfaceJSONata transform settings.static interfaceDelivery logging configuration.static interfaceThe destination for events that could not be delivered.static interfaceThe point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.static interfaceThe retry policy for failed deliveries.static interfaceConfiguration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.eventsv2.ISubscriberRef
ISubscriberRef.Jsii$Default, ISubscriberRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnSubscriber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnSubscriber(software.amazon.jsii.JsiiObjectRef objRef) CfnSubscriber(software.constructs.Construct scope, String id, CfnSubscriberProps props) Create a newAWS::EventsV2::Subscriber. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForSubscriber(ISubscriberRef resource) The name of the event bus this subscriber belongs to.Creation timestamp (ISO-8601), read-only.Last-modification timestamp (ISO-8601), read-only.The Amazon Resource Name (ARN) of the subscriber.Configuration for batching events into a single delivery.Tag Manager which manages the tags for this resource.A description of the subscriber.The ARN of the event bus this subscriber belongs to.Configuration for filtering which events are delivered to the target.Delivery logging configuration.getName()The name of the subscriber.The destination for events that could not be delivered.The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.Resume-time control, never returned by the service.The retry policy for failed deliveries.Where the subscriber starts reading events: LATEST starts from the newest events;getState()The run state of the subscriber.A reference to a Subscriber resource.getTags()The tags assigned to the subscriber.Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.getType()The delivery ordering mode of the subscriber.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnSubscriber.renderProperties(Map<String, Object> props) voidsetBatchConfiguration(IResolvable value) Configuration for batching events into a single delivery.voidConfiguration for batching events into a single delivery.voidsetDescription(String value) A description of the subscriber.voidsetEventBusArn(String value) The ARN of the event bus this subscriber belongs to.voidConfiguration for filtering which events are delivered to the target.voidConfiguration for filtering which events are delivered to the target.voidsetLogConfiguration(IResolvable value) Delivery logging configuration.voidDelivery logging configuration.voidThe name of the subscriber.voidThe destination for events that could not be delivered.voidThe destination for events that could not be delivered.voidThe point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.voidThe point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.voidsetResumePosition(String value) Resume-time control, never returned by the service.voidsetRetryPolicy(IResolvable value) The retry policy for failed deliveries.voidThe retry policy for failed deliveries.voidsetStartingPosition(String value) Where the subscriber starts reading events: LATEST starts from the newest events;voidThe run state of the subscriber.voidThe tags assigned to the subscriber.voidsetTransformer(IResolvable value) Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.voidConfiguration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.voidThe delivery ordering mode of the subscriber.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnSubscriber
protected CfnSubscriber(software.amazon.jsii.JsiiObjectRef objRef) -
CfnSubscriber
protected CfnSubscriber(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnSubscriber
@Stability(Stable) public CfnSubscriber(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSubscriberProps props) Create a newAWS::EventsV2::Subscriber.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForSubscriber
- Parameters:
resource- This parameter is required.
-
isCfnSubscriber
Checks whether the given object is a CfnSubscriber.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrBusName
The name of the event bus this subscriber belongs to.This property is read-only.
-
getAttrCreationTime
Creation timestamp (ISO-8601), read-only. -
getAttrLastModifiedTime
Last-modification timestamp (ISO-8601), read-only. -
getAttrSubscriberArn
The Amazon Resource Name (ARN) of the subscriber. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getSubscriberRef
A reference to a Subscriber resource.- Specified by:
getSubscriberRefin interfaceISubscriberRef
-
getEventBusArn
The ARN of the event bus this subscriber belongs to. -
setEventBusArn
The ARN of the event bus this subscriber belongs to. -
getName
The name of the subscriber. -
setName
The name of the subscriber. -
getBatchConfiguration
Configuration for batching events into a single delivery.Returns union: either
IResolvableorCfnSubscriber.BatchConfigurationProperty -
setBatchConfiguration
Configuration for batching events into a single delivery. -
setBatchConfiguration
@Stability(Stable) public void setBatchConfiguration(@Nullable CfnSubscriber.BatchConfigurationProperty value) Configuration for batching events into a single delivery. -
getDescription
A description of the subscriber. -
setDescription
A description of the subscriber. -
getFilterConfiguration
Configuration for filtering which events are delivered to the target.Returns union: either
IResolvableorCfnSubscriber.FilterConfigurationProperty -
setFilterConfiguration
Configuration for filtering which events are delivered to the target. -
setFilterConfiguration
@Stability(Stable) public void setFilterConfiguration(@Nullable CfnSubscriber.FilterConfigurationProperty value) Configuration for filtering which events are delivered to the target. -
getLogConfiguration
Delivery logging configuration.Returns union: either
IResolvableorCfnSubscriber.LogConfigurationProperty -
setLogConfiguration
Delivery logging configuration. -
setLogConfiguration
@Stability(Stable) public void setLogConfiguration(@Nullable CfnSubscriber.LogConfigurationProperty value) Delivery logging configuration. -
getOnFailureConfiguration
The destination for events that could not be delivered.Returns union: either
IResolvableorCfnSubscriber.OnFailureConfigurationProperty -
setOnFailureConfiguration
The destination for events that could not be delivered. -
setOnFailureConfiguration
@Stability(Stable) public void setOnFailureConfiguration(@Nullable CfnSubscriber.OnFailureConfigurationProperty value) The destination for events that could not be delivered. -
getPointInTimeConfiguration
The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME.Returns union: either
IResolvableorCfnSubscriber.PointInTimeConfigurationProperty -
setPointInTimeConfiguration
The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME. -
setPointInTimeConfiguration
@Stability(Stable) public void setPointInTimeConfiguration(@Nullable CfnSubscriber.PointInTimeConfigurationProperty value) The point in time to start delivering events from, used when StartingPosition is POINT_IN_TIME. -
getResumePosition
Resume-time control, never returned by the service. -
setResumePosition
Resume-time control, never returned by the service. -
getRetryPolicy
The retry policy for failed deliveries.Returns union: either
IResolvableorCfnSubscriber.RetryPolicyProperty -
setRetryPolicy
The retry policy for failed deliveries. -
setRetryPolicy
The retry policy for failed deliveries. -
getStartingPosition
Where the subscriber starts reading events: LATEST starts from the newest events; -
setStartingPosition
Where the subscriber starts reading events: LATEST starts from the newest events; -
getState
The run state of the subscriber. -
setState
The run state of the subscriber. -
getTags
The tags assigned to the subscriber. -
setTags
The tags assigned to the subscriber. -
getTransformer
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression.Returns union: either
IResolvableorCfnSubscriber.TransformerProperty -
setTransformer
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression. -
setTransformer
Configuration for transforming events before delivery: the raw payload, the payload with its metadata envelope, or the output of a JSONata expression. -
getType
The delivery ordering mode of the subscriber. -
setType
The delivery ordering mode of the subscriber.
-