Class IEventApi.Jsii$Proxy
- All Implemented Interfaces:
IResource,IResource.Jsii$Default,IApi,IApi.Jsii$Default,IEventApi,IEventApi.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
IEventApi
-
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$Default, IApi.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.appsync.IEventApi
IEventApi.Jsii$Default, IEventApi.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ChannelNamespaceadd a new channel namespace.final ChannelNamespaceaddChannelNamespace(String id, ChannelNamespaceOptions options) add a new channel namespace.addDynamoDbDataSource(String id, ITable table) Add a new DynamoDB data source to this API.addDynamoDbDataSource(String id, ITable table, AppSyncDataSourceOptions options) Add a new DynamoDB data source to this API.addEventBridgeDataSource(String id, IEventBus eventBus) Add an EventBridge data source to this api.addEventBridgeDataSource(String id, IEventBus eventBus, AppSyncDataSourceOptions options) Add an EventBridge data source to this api.final AppSyncHttpDataSourceaddHttpDataSource(String id, String endpoint) add a new http data source to this API.final AppSyncHttpDataSourceaddHttpDataSource(String id, String endpoint, AppSyncHttpDataSourceOptions options) add a new http data source to this API.final AppSyncLambdaDataSourceaddLambdaDataSource(String id, IFunction lambdaFunction) add a new Lambda data source to this API.final AppSyncLambdaDataSourceaddLambdaDataSource(String id, IFunction lambdaFunction, AppSyncDataSourceOptions options) add a new Lambda data source to this API.addOpenSearchDataSource(String id, IDomain domain) Add a new OpenSearch data source to this API.addOpenSearchDataSource(String id, IDomain domain, AppSyncDataSourceOptions options) Add a new OpenSearch data source to this API.final AppSyncRdsDataSourceaddRdsDataSource(String id, Object serverlessCluster, ISecret secretStore) add a new Rds data source to this API.final AppSyncRdsDataSourceaddRdsDataSource(String id, Object serverlessCluster, ISecret secretStore, String databaseName) add a new Rds data source to this API.final AppSyncRdsDataSourceaddRdsDataSource(String id, Object serverlessCluster, ISecret secretStore, String databaseName, AppSyncDataSourceOptions options) add a new Rds data source to this API.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final StringThe ARN of the AWS AppSync Api.final StringgetApiId()The unique identifier for the AWS AppSync Api generated by the service.final List<AppSyncAuthorizationType> The Authorization Types for this Event Api.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final StringThe domain name of the Api's HTTP endpoint.final software.constructs.NodegetNode()The tree node.final StringThe domain name of the Api's real-time endpoint.final StackgetStack()The stack in which this resource is defined.final Grantgrant(IGrantable grantee, AppSyncEventResource resources, String... actions) Adds an IAM policy statement associated with this Event API to an IAM principal's policy.final GrantgrantConnect(IGrantable grantee) Adds an IAM policy statement for EventConnect access to this EventApi to an IAM principal's policy.final GrantgrantPublish(IGrantable grantee) Adds an IAM policy statement for EventPublish access to this EventApi to an IAM principal's policy.final GrantgrantPublishAndSubscribe(IGrantable grantee) Adds an IAM policy statement to publish and subscribe to this API for an IAM principal's policy.final GrantgrantSubscribe(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.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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfaceIApi.Jsii$Default- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIEventApi.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnvin interfaceIApi.Jsii$Default- Specified by:
getEnvin interfaceIEventApi.Jsii$Default- Specified by:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIApi.Jsii$Default- Specified by:
getStackin interfaceIEventApi.Jsii$Default- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getApiArn
The ARN of the AWS AppSync Api.- Specified by:
getApiArnin interfaceIApi- Specified by:
getApiArnin interfaceIApi.Jsii$Default- Specified by:
getApiArnin interfaceIEventApi.Jsii$Default
-
getApiId
The unique identifier for the AWS AppSync Api generated by the service.- Specified by:
getApiIdin interfaceIApi- Specified by:
getApiIdin interfaceIApi.Jsii$Default- Specified by:
getApiIdin interfaceIEventApi.Jsii$Default
-
getAuthProviderTypes
The Authorization Types for this Event Api.- Specified by:
getAuthProviderTypesin interfaceIEventApi- Specified by:
getAuthProviderTypesin interfaceIEventApi.Jsii$Default
-
getHttpDns
The domain name of the Api's HTTP endpoint.- Specified by:
getHttpDnsin interfaceIEventApi- Specified by:
getHttpDnsin interfaceIEventApi.Jsii$Default
-
getRealtimeDns
The domain name of the Api's real-time endpoint.- Specified by:
getRealtimeDnsin interfaceIEventApi- Specified by:
getRealtimeDnsin interfaceIEventApi.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
applyRemovalPolicyin interfaceIApi.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIEventApi.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
addChannelNamespace
@Stability(Stable) @NotNull public final ChannelNamespace addChannelNamespace(@NotNull String id, @Nullable ChannelNamespaceOptions options) add a new channel namespace.- Specified by:
addChannelNamespacein interfaceIEventApi- Specified by:
addChannelNamespacein interfaceIEventApi.Jsii$Default- Parameters:
id- the id of the channel namespace. This parameter is required.options- the options for the channel namespace.- Returns:
- the channel namespace
-
addChannelNamespace
add a new channel namespace.- Specified by:
addChannelNamespacein interfaceIEventApi- Parameters:
id- the id of the channel namespace. This parameter is required.- Returns:
- the channel namespace
-
addDynamoDbDataSource
@Stability(Stable) @NotNull public final AppSyncDynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table, @Nullable AppSyncDataSourceOptions options) Add a new DynamoDB data source to this API.- Specified by:
addDynamoDbDataSourcein interfaceIEventApi- Specified by:
addDynamoDbDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.table- The DynamoDB table backing this data source. This parameter is required.options- The optional configuration for this data source.
-
addDynamoDbDataSource
@Stability(Stable) @NotNull public final AppSyncDynamoDbDataSource addDynamoDbDataSource(@NotNull String id, @NotNull ITable table) Add a new DynamoDB data source to this API.- Specified by:
addDynamoDbDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.table- The DynamoDB table backing this data source. This parameter is required.
-
addEventBridgeDataSource
@Stability(Stable) @NotNull public final AppSyncEventBridgeDataSource addEventBridgeDataSource(@NotNull String id, @NotNull IEventBus eventBus, @Nullable AppSyncDataSourceOptions options) Add an EventBridge data source to this api.- Specified by:
addEventBridgeDataSourcein interfaceIEventApi- Specified by:
addEventBridgeDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.eventBus- The EventBridge EventBus on which to put events. This parameter is required.options- The optional configuration for this data source.
-
addEventBridgeDataSource
@Stability(Stable) @NotNull public final AppSyncEventBridgeDataSource addEventBridgeDataSource(@NotNull String id, @NotNull IEventBus eventBus) Add an EventBridge data source to this api.- Specified by:
addEventBridgeDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.eventBus- The EventBridge EventBus on which to put events. This parameter is required.
-
addHttpDataSource
@Stability(Stable) @NotNull public final AppSyncHttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint, @Nullable AppSyncHttpDataSourceOptions options) add a new http data source to this API.- Specified by:
addHttpDataSourcein interfaceIEventApi- Specified by:
addHttpDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.endpoint- The http endpoint. This parameter is required.options- The optional configuration for this data source.
-
addHttpDataSource
@Stability(Stable) @NotNull public final AppSyncHttpDataSource addHttpDataSource(@NotNull String id, @NotNull String endpoint) add a new http data source to this API.- Specified by:
addHttpDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.endpoint- The http endpoint. This parameter is required.
-
addLambdaDataSource
@Stability(Stable) @NotNull public final AppSyncLambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction, @Nullable AppSyncDataSourceOptions options) add a new Lambda data source to this API.- Specified by:
addLambdaDataSourcein interfaceIEventApi- Specified by:
addLambdaDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.lambdaFunction- The Lambda function to call to interact with this data source. This parameter is required.options- The optional configuration for this data source.
-
addLambdaDataSource
@Stability(Stable) @NotNull public final AppSyncLambdaDataSource addLambdaDataSource(@NotNull String id, @NotNull IFunction lambdaFunction) add a new Lambda data source to this API.- Specified by:
addLambdaDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.lambdaFunction- The Lambda function to call to interact with this data source. This parameter is required.
-
addOpenSearchDataSource
@Stability(Stable) @NotNull public final AppSyncOpenSearchDataSource addOpenSearchDataSource(@NotNull String id, @NotNull IDomain domain, @Nullable AppSyncDataSourceOptions options) Add a new OpenSearch data source to this API.- Specified by:
addOpenSearchDataSourcein interfaceIEventApi- Specified by:
addOpenSearchDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.domain- The OpenSearch domain for this data source. This parameter is required.options- The optional configuration for this data source.
-
addOpenSearchDataSource
@Stability(Stable) @NotNull public final AppSyncOpenSearchDataSource addOpenSearchDataSource(@NotNull String id, @NotNull IDomain domain) Add a new OpenSearch data source to this API.- Specified by:
addOpenSearchDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.domain- The OpenSearch domain for this data source. This parameter is required.
-
addRdsDataSource
@Stability(Stable) @NotNull public final AppSyncRdsDataSource addRdsDataSource(@NotNull String id, @NotNull Object serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName, @Nullable AppSyncDataSourceOptions options) add a new Rds data source to this API.- Specified by:
addRdsDataSourcein interfaceIEventApi- Specified by:
addRdsDataSourcein interfaceIEventApi.Jsii$Default- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The database cluster to interact with this data source. Takes union: eitherIDatabaseClusterorIServerlessCluster. This parameter is required.secretStore- The secret store that contains the username and password for the database cluster. This parameter is required.databaseName- The optional name of the database to use within the cluster.options- The optional configuration for this data source.
-
addRdsDataSource
@Stability(Stable) @NotNull public final AppSyncRdsDataSource addRdsDataSource(@NotNull String id, @NotNull Object serverlessCluster, @NotNull ISecret secretStore, @Nullable String databaseName) add a new Rds data source to this API.- Specified by:
addRdsDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The database cluster to interact with this data source. Takes union: eitherIDatabaseClusterorIServerlessCluster. This parameter is required.secretStore- The secret store that contains the username and password for the database cluster. This parameter is required.databaseName- The optional name of the database to use within the cluster.
-
addRdsDataSource
@Stability(Stable) @NotNull public final AppSyncRdsDataSource addRdsDataSource(@NotNull String id, @NotNull Object serverlessCluster, @NotNull ISecret secretStore) add a new Rds data source to this API.- Specified by:
addRdsDataSourcein interfaceIEventApi- Parameters:
id- The data source's id. This parameter is required.serverlessCluster- The database cluster to interact with this data source. Takes union: eitherIDatabaseClusterorIServerlessCluster. This parameter is required.secretStore- The secret store that contains the username and password for the database cluster. This parameter is required.
-
grant
@Stability(Stable) @NotNull public final Grant grant(@NotNull IGrantable grantee, @NotNull AppSyncEventResource resources, @NotNull String... actions) Adds an IAM policy statement associated with this Event API to an IAM principal's policy.- Specified by:
grantin interfaceIEventApi- Specified by:
grantin interfaceIEventApi.Jsii$Default- 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- Specified by:
grantConnectin interfaceIEventApi.Jsii$Default- 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.- Specified by:
grantPublishin interfaceIEventApi- Specified by:
grantPublishin interfaceIEventApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.
-
grantPublishAndSubscribe
@Stability(Stable) @NotNull public final Grant grantPublishAndSubscribe(@NotNull IGrantable grantee) Adds an IAM policy statement to publish and subscribe to this API for an IAM principal's policy.- Specified by:
grantPublishAndSubscribein interfaceIEventApi- Specified by:
grantPublishAndSubscribein interfaceIEventApi.Jsii$Default- 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.- Specified by:
grantSubscribein interfaceIEventApi- Specified by:
grantSubscribein interfaceIEventApi.Jsii$Default- Parameters:
grantee- The principal. This parameter is required.
-