Interface CfnApiPropsMixin.EventConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnApiPropsMixin.EventConfigProperty.Jsii$Proxy
- Enclosing class:
CfnApiPropsMixin
@Stability(Stable)
public static interface CfnApiPropsMixin.EventConfigProperty
extends software.amazon.jsii.JsiiSerializable
Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.appsync.*;
EventConfigProperty eventConfigProperty = EventConfigProperty.builder()
.authProviders(List.of(AuthProviderProperty.builder()
.authType("authType")
.cognitoConfig(CognitoConfigProperty.builder()
.appIdClientRegex("appIdClientRegex")
.awsRegion("awsRegion")
.userPoolId("userPoolId")
.build())
.lambdaAuthorizerConfig(LambdaAuthorizerConfigProperty.builder()
.authorizerResultTtlInSeconds(123)
.authorizerUri("authorizerUri")
.identityValidationExpression("identityValidationExpression")
.build())
.openIdConnectConfig(OpenIDConnectConfigProperty.builder()
.authTtl(123)
.clientId("clientId")
.iatTtl(123)
.issuer("issuer")
.build())
.build()))
.connectionAuthModes(List.of(AuthModeProperty.builder()
.authType("authType")
.build()))
.defaultPublishAuthModes(List.of(AuthModeProperty.builder()
.authType("authType")
.build()))
.defaultSubscribeAuthModes(List.of(AuthModeProperty.builder()
.authType("authType")
.build()))
.logConfig(EventLogConfigProperty.builder()
.cloudWatchLogsRoleArn("cloudWatchLogsRoleArn")
.logLevel("logLevel")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnApiPropsMixin.EventConfigPropertystatic final classAn implementation forCfnApiPropsMixin.EventConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA list of authorization providers.default ObjectA list of valid authorization modes for the Event API connections.default ObjectA list of valid authorization modes for the Event API publishing.default ObjectA list of valid authorization modes for the Event API subscriptions.default ObjectThe CloudWatch Logs configuration for the Event API.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthProviders
A list of authorization providers.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApiPropsMixin.AuthProviderProperty>- See Also:
-
getConnectionAuthModes
A list of valid authorization modes for the Event API connections.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApiPropsMixin.AuthModeProperty>- See Also:
-
getDefaultPublishAuthModes
A list of valid authorization modes for the Event API publishing.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApiPropsMixin.AuthModeProperty>- See Also:
-
getDefaultSubscribeAuthModes
A list of valid authorization modes for the Event API subscriptions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnApiPropsMixin.AuthModeProperty>- See Also:
-
getLogConfig
The CloudWatch Logs configuration for the Event API.Returns union: either
IResolvableorCfnApiPropsMixin.EventLogConfigProperty- See Also:
-
builder
-