@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.270Z") @Stability(value=Stable) public class CfnEventBus extends CfnResource implements IInspectable
Creates a new event bus within your account. This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
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.events.*;
CfnEventBus cfnEventBus = CfnEventBus.Builder.create(this, "MyCfnEventBus")
.name("name")
// the properties below are optional
.eventSourceName("eventSourceName")
.tags(List.of(TagEntryProperty.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEventBus.Builder
A fluent builder for
CfnEventBus. |
static interface |
CfnEventBus.TagEntryProperty
A key-value pair associated with an AWS resource.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEventBus(software.constructs.Construct scope,
String id,
CfnEventBusProps props)
Create a new `AWS::Events::EventBus`.
|
protected |
CfnEventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEventBus(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The ARN of the event bus, such as `arn:aws:events:us-east-2:123456789012:event-bus/aws.partner/PartnerName/acct1/repo1` .
|
String |
getAttrName()
The name of the event bus, such as `PartnerName/acct1/repo1` .
|
String |
getAttrPolicy()
The policy for the event bus in JSON form.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getEventSourceName()
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
|
String |
getName()
The name of the new event bus.
|
List<CfnEventBus.TagEntryProperty> |
getTags()
Tags to associate with the event bus.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setEventSourceName(String value)
If you are creating a partner event bus, this specifies the partner event source that the new event bus will be matched with.
|
void |
setName(String value)
The name of the new event bus.
|
void |
setTags(List<CfnEventBus.TagEntryProperty> value)
Tags to associate with the event bus.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEventBus(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEventBus(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnEventBusProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull public String getAttrName()
@Stability(value=Stable) @NotNull public String getAttrPolicy()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getName()
Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.
If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.
@Stability(value=Stable)
public void setName(@NotNull
String value)
Event bus names cannot contain the / character. You can't use the name default for a custom event bus, as this name is already used for your account's default event bus.
If this is a partner event bus, the name must exactly match the name of the partner event source that this event bus is matched to.
@Stability(value=Stable) @Nullable public String getEventSourceName()
@Stability(value=Stable)
public void setEventSourceName(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<CfnEventBus.TagEntryProperty> getTags()
@Stability(value=Stable)
public void setTags(@Nullable
List<CfnEventBus.TagEntryProperty> value)
Copyright © 2022. All rights reserved.