interface EventConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppSync.Mixins.CfnApiPropsMixin.EventConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappsync/mixins#CfnApiPropsMixin_EventConfigProperty |
Java | software.amazon.awscdk.mixins.preview.services.appsync.mixins.CfnApiPropsMixin.EventConfigProperty |
Python | aws_cdk.mixins_preview.aws_appsync.mixins.CfnApiPropsMixin.EventConfigProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appsync » mixins » CfnApiPropsMixin » EventConfigProperty |
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 { mixins as appsync_mixins } from '@aws-cdk/mixins-preview/aws-appsync';
const eventConfigProperty: appsync_mixins.CfnApiPropsMixin.EventConfigProperty = {
authProviders: [{
authType: 'authType',
cognitoConfig: {
appIdClientRegex: 'appIdClientRegex',
awsRegion: 'awsRegion',
userPoolId: 'userPoolId',
},
lambdaAuthorizerConfig: {
authorizerResultTtlInSeconds: 123,
authorizerUri: 'authorizerUri',
identityValidationExpression: 'identityValidationExpression',
},
openIdConnectConfig: {
authTtl: 123,
clientId: 'clientId',
iatTtl: 123,
issuer: 'issuer',
},
}],
connectionAuthModes: [{
authType: 'authType',
}],
defaultPublishAuthModes: [{
authType: 'authType',
}],
defaultSubscribeAuthModes: [{
authType: 'authType',
}],
logConfig: {
cloudWatchLogsRoleArn: 'cloudWatchLogsRoleArn',
logLevel: 'logLevel',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| auth | IResolvable | (IResolvable | Auth)[] | A list of authorization providers. |
| connection | IResolvable | (IResolvable | Auth)[] | A list of valid authorization modes for the Event API connections. |
| default | IResolvable | (IResolvable | Auth)[] | A list of valid authorization modes for the Event API publishing. |
| default | IResolvable | (IResolvable | Auth)[] | A list of valid authorization modes for the Event API subscriptions. |
| log | IResolvable | Event | The CloudWatch Logs configuration for the Event API. |
authProviders?
Type:
IResolvable | (IResolvable | Auth)[]
(optional)
A list of authorization providers.
connectionAuthModes?
Type:
IResolvable | (IResolvable | Auth)[]
(optional)
A list of valid authorization modes for the Event API connections.
defaultPublishAuthModes?
Type:
IResolvable | (IResolvable | Auth)[]
(optional)
A list of valid authorization modes for the Event API publishing.
defaultSubscribeAuthModes?
Type:
IResolvable | (IResolvable | Auth)[]
(optional)
A list of valid authorization modes for the Event API subscriptions.
logConfig?
Type:
IResolvable | Event
(optional)
The CloudWatch Logs configuration for the Event API.

.NET
Go
Java
Python
TypeScript