Class EventApiBase
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appsync.ApiBase
software.amazon.awscdk.services.appsync.EventApiBase
- All Implemented Interfaces:
IResource,IApi,IEventApi,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
EventApi
@Generated(value="jsii-pacmak/1.110.0 (build 336b265)",
date="2025-04-22T23:08:07.372Z")
@Stability(Stable)
public abstract class EventApiBase
extends ApiBase
implements IEventApi
Base Class for Event API.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IApi
IApi.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IEventApi
IEventApi.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEventApiBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedEventApiBase(software.amazon.jsii.JsiiObjectRef objRef) protectedEventApiBase(software.constructs.Construct scope, String id) protectedEventApiBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionadd a new Channel Namespace to this API.addChannelNamespace(String id, ChannelNamespaceOptions options) add a new Channel Namespace to this API.abstract List<AppSyncAuthorizationType>The Authorization Types for this Event Api.abstract StringThe domain name of the Api's HTTP endpoint.abstract StringThe domain name of the Api's real-time endpoint.grant(IGrantable grantee, AppSyncEventResource resources, @NotNull String... actions) Adds an IAM policy statement associated with this Event API to an IAM principal's policy.grantConnect(IGrantable grantee) Adds an IAM policy statement for EventConnect access to this EventApi to an IAM principal's policy.grantPublish(IGrantable grantee) Adds an IAM policy statement for EventPublish access to this EventApi to an IAM principal's policy.grantPublishAndSubscribe(IGrantable grantee) Adds an IAM policy statement to publish and subscribe to this API for an IAM principal's policy.grantSubscribe(IGrantable grantee) Adds an IAM policy statement for EventSubscribe access to this EventApi to an IAM principal's policy.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
EventApiBase
protected EventApiBase(software.amazon.jsii.JsiiObjectRef objRef) -
EventApiBase
protected EventApiBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
EventApiBase
@Stability(Stable) protected EventApiBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
EventApiBase
@Stability(Stable) protected EventApiBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
addChannelNamespace
@Stability(Stable) @NotNull public ChannelNamespace addChannelNamespace(@NotNull String id, @Nullable ChannelNamespaceOptions options) add a new Channel Namespace to this API.- Specified by:
addChannelNamespacein interfaceIEventApi- Parameters:
id- This parameter is required.options-- Returns:
- the channel namespace
-
addChannelNamespace
add a new Channel Namespace to this API.- Specified by:
addChannelNamespacein interfaceIEventApi- Parameters:
id- This parameter is required.- Returns:
- the channel namespace
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull AppSyncEventResource resources, @NotNull @NotNull String... actions) Adds an IAM policy statement associated with this Event API to an IAM principal's policy.- Specified by:
grantin interfaceIEventApi- Parameters:
grantee- The principal. This parameter is required.resources- The set of resources to allow (i.e. ...:[region]:[accountId]:apis/EventApiId/...). This parameter is required.actions- The actions that should be granted to the principal (i.e. appsync:EventPublish ). This parameter is required.
-
grantConnect
Adds an IAM policy statement for EventConnect access to this EventApi to an IAM principal's policy.- Specified by:
grantConnectin interfaceIEventApi- Parameters:
grantee- The principal. This parameter is required.
-
grantPublish
Adds an IAM policy statement for EventPublish access to this EventApi to an IAM principal's policy.This grants publish permission for all channels within the API.
- Specified by:
grantPublishin interfaceIEventApi- Parameters:
grantee- The principal. This parameter is required.
-
grantPublishAndSubscribe
Adds an IAM policy statement to publish and subscribe to this API for an IAM principal's policy.This grants publish & subscribe permission for all channels within the API.
- Specified by:
grantPublishAndSubscribein interfaceIEventApi- Parameters:
grantee- The principal. This parameter is required.
-
grantSubscribe
Adds an IAM policy statement for EventSubscribe access to this EventApi to an IAM principal's policy.This grants subscribe permission for all channels within the API.
- Specified by:
grantSubscribein interfaceIEventApi- Parameters:
grantee- The principal. This parameter is required.
-
getAuthProviderTypes
The Authorization Types for this Event Api.- Specified by:
getAuthProviderTypesin interfaceIEventApi
-
getHttpDns
The domain name of the Api's HTTP endpoint.- Specified by:
getHttpDnsin interfaceIEventApi
-
getRealtimeDns
The domain name of the Api's real-time endpoint.- Specified by:
getRealtimeDnsin interfaceIEventApi
-