Class CfnEventBus
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.CfnEventBus
- All Implemented Interfaces:
IInspectable,IEventBusRef,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.398Z")
@Stability(Stable)
public class CfnEventBus
extends CfnResource
implements IInspectable, IEventBusRef, ITaggableV2
Resource type definition for AWS::EventsV2::EventBus, an Amazon EventBridge custom event bus that receives events and delivers them to matching subscribers.
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.*;
CfnEventBus cfnEventBus = CfnEventBus.Builder.create(this, "MyCfnEventBus")
.name("name")
// the properties below are optional
.description("description")
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.kmsKeyIdentifier("kmsKeyIdentifier")
.build())
.storageConfiguration(StorageConfigurationProperty.builder()
.retentionPeriodInDays(123)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnEventBus.static interfaceEncryption configuration for an event bus.static interfaceStorage (retention) configuration for the event bus.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.interfaces.eventsv2.IEventBusRef
IEventBusRef.Jsii$Default, IEventBusRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.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
ConstructorsModifierConstructorDescriptionprotectedCfnEventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEventBus(software.amazon.jsii.JsiiObjectRef objRef) CfnEventBus(software.constructs.Construct scope, String id, CfnEventBusProps props) Create a newAWS::EventsV2::EventBus. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForEventBus(IEventBusRef resource) The time the event bus was created, as an ISO 8601 timestamp.The Amazon Resource Name (ARN) of the event bus.The time the event bus was last modified, as an ISO 8601 timestamp.The lifecycle state of the event bus.Tag Manager which manages the tags for this resource.A description of the event bus.Encryption configuration for an event bus.A reference to a EventBus resource.getName()The name of the event bus.Storage (retention) configuration for the event bus.getTags()The tags assigned to the event bus.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnEventBus.renderProperties(Map<String, Object> props) voidsetDescription(String value) A description of the event bus.voidEncryption configuration for an event bus.voidEncryption configuration for an event bus.voidThe name of the event bus.voidStorage (retention) configuration for the event bus.voidStorage (retention) configuration for the event bus.voidThe tags assigned to the event bus.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
-
CfnEventBus
protected CfnEventBus(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEventBus
protected CfnEventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEventBus
@Stability(Stable) public CfnEventBus(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnEventBusProps props) Create a newAWS::EventsV2::EventBus.- 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
-
arnForEventBus
- Parameters:
resource- This parameter is required.
-
isCfnEventBus
Checks whether the given object is a CfnEventBus.- 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.
-
getAttrCreationTime
The time the event bus was created, as an ISO 8601 timestamp. -
getAttrEventBusArn
The Amazon Resource Name (ARN) of the event bus. -
getAttrLastModifiedTime
The time the event bus was last modified, as an ISO 8601 timestamp. -
getAttrState
The lifecycle state of the event bus.The settled operational state is ACTIVE.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getEventBusRef
A reference to a EventBus resource.- Specified by:
getEventBusRefin interfaceIEventBusRef
-
getName
The name of the event bus. -
setName
The name of the event bus. -
getDescription
A description of the event bus. -
setDescription
A description of the event bus. -
getEncryptionConfiguration
Encryption configuration for an event bus.Returns union: either
IResolvableorCfnEventBus.EncryptionConfigurationProperty -
setEncryptionConfiguration
Encryption configuration for an event bus. -
setEncryptionConfiguration
@Stability(Stable) public void setEncryptionConfiguration(@Nullable CfnEventBus.EncryptionConfigurationProperty value) Encryption configuration for an event bus. -
getStorageConfiguration
Storage (retention) configuration for the event bus.Returns union: either
IResolvableorCfnEventBus.StorageConfigurationProperty -
setStorageConfiguration
Storage (retention) configuration for the event bus. -
setStorageConfiguration
@Stability(Stable) public void setStorageConfiguration(@Nullable CfnEventBus.StorageConfigurationProperty value) Storage (retention) configuration for the event bus. -
getTags
The tags assigned to the event bus. -
setTags
The tags assigned to the event bus.
-