@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:21.086Z") @Stability(value=Experimental) public class EventBus extends Resource implements IEventBus
Modifier and Type | Class and Description |
---|---|
static class |
EventBus.Builder
(experimental) A fluent builder for
EventBus . |
software.amazon.jsii.JsiiObject.InitializationMode
IEventBus.Jsii$Default, IEventBus.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
|
EventBus(software.constructs.Construct scope,
String id) |
|
EventBus(software.constructs.Construct scope,
String id,
EventBusProps props) |
protected |
EventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EventBus(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
Archive |
archive(String id,
BaseArchiveProps props)
(experimental) Create an EventBridge archive to send events to.
|
static IEventBus |
fromEventBusArn(software.constructs.Construct scope,
String id,
String eventBusArn)
(experimental) Import an existing event bus resource.
|
static IEventBus |
fromEventBusAttributes(software.constructs.Construct scope,
String id,
EventBusAttributes attrs)
(experimental) Import an existing event bus resource.
|
String |
getEventBusArn()
(experimental) The ARN of the event bus, such as: arn:aws:events:us-east-2:123456789012:event-bus/aws.partner/PartnerName/acct1/repo1.
|
String |
getEventBusName()
(experimental) The physical ID of this event bus resource.
|
String |
getEventBusPolicy()
(experimental) The policy for the event bus in JSON form.
|
String |
getEventSourceName()
(experimental) The name of the partner event source.
|
static Grant |
grantAllPutEvents(IGrantable grantee)
(experimental) Permits an IAM Principal to send custom events to EventBridge so that they can be matched to rules.
|
Grant |
grantPutEventsTo(IGrantable grantee)
(experimental) Grants an IAM Principal to send custom events to the eventBus so that they can be matched to rules.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected EventBus(software.amazon.jsii.JsiiObjectRef objRef)
protected EventBus(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) public EventBus(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable EventBusProps props)
scope
- This parameter is required.id
- This parameter is required.props
- @Stability(value=Experimental) public EventBus(@NotNull software.constructs.Construct scope, @NotNull String id)
scope
- This parameter is required.id
- This parameter is required.@Stability(value=Experimental) @NotNull public static IEventBus fromEventBusArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String eventBusArn)
scope
- Parent construct. This parameter is required.id
- Construct ID. This parameter is required.eventBusArn
- ARN of imported event bus. This parameter is required.@Stability(value=Experimental) @NotNull public static IEventBus fromEventBusAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull EventBusAttributes attrs)
scope
- Parent construct. This parameter is required.id
- Construct ID. This parameter is required.attrs
- Imported event bus properties. This parameter is required.@Stability(value=Experimental) @NotNull public static Grant grantAllPutEvents(@NotNull IGrantable grantee)
grantee
- The principal (no-op if undefined). This parameter is required.@Stability(value=Experimental) @NotNull public Archive archive(@NotNull String id, @NotNull BaseArchiveProps props)
When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect.
@Stability(value=Experimental) @NotNull public Grant grantPutEventsTo(@NotNull IGrantable grantee)
grantPutEventsTo
in interface IEventBus
grantee
- This parameter is required.@Stability(value=Experimental) @NotNull public String getEventBusArn()
getEventBusArn
in interface IEventBus
@Stability(value=Experimental) @NotNull public String getEventBusName()
getEventBusName
in interface IEventBus
@Stability(value=Experimental) @NotNull public String getEventBusPolicy()
getEventBusPolicy
in interface IEventBus
@Stability(value=Experimental) @Nullable public String getEventSourceName()
getEventSourceName
in interface IEventBus
Copyright © 2021. All rights reserved.