Interface EventApiProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EventApiProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:45.478Z")
@Stability(Stable)
public interface EventApiProps
extends software.amazon.jsii.JsiiSerializable
Properties for an AppSync Event API.
Example:
import software.amazon.awscdk.services.lambda.*;
Function handler;
AppSyncAuthProvider iamProvider = AppSyncAuthProvider.builder()
.authorizationType(AppSyncAuthorizationType.IAM)
.build();
AppSyncAuthProvider apiKeyProvider = AppSyncAuthProvider.builder()
.authorizationType(AppSyncAuthorizationType.API_KEY)
.build();
/* API with IAM and API Key providers.
* Connection, default publish and default subscribe
* can be done with either IAM and API Key.
*/
EventApi api = EventApi.Builder.create(this, "api")
.apiName("api")
.authorizationConfig(EventApiAuthConfig.builder()
// set auth providers
.authProviders(List.of(iamProvider, apiKeyProvider))
.build())
.build();
api.addChannelNamespace("default");
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEventApiPropsstatic final classAn implementation forEventApiProps -
Method Summary
Modifier and TypeMethodDescriptionstatic EventApiProps.Builderbuilder()the name of the Event API.default EventApiAuthConfigOptional authorization configuration.default AppSyncDomainOptionsThe domain name configuration for the Event API.default AppSyncLogConfigLogging configuration for this api.default StringThe owner contact information for an API resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getApiName
the name of the Event API. -
getAuthorizationConfig
Optional authorization configuration.Default: - API Key authorization
-
getDomainName
The domain name configuration for the Event API.The Route 53 hosted zone and CName DNS record must be configured in addition to this setting to enable custom domain URL
Default: - no domain name
-
getLogConfig
Logging configuration for this api.Default: - None
-
getOwnerContact
The owner contact information for an API resource.This field accepts any string input with a length of 0 - 256 characters.
Default: - No owner contact.
-
builder
- Returns:
- a
EventApiProps.BuilderofEventApiProps
-