Enum AppSyncAuthorizationType
enum with all possible values for AppSync authorization type.
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum AppSyncAuthorizationType
Syntax (vb)
Public Enum AppSyncAuthorizationType
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
var apiKeyProvider = new AppSyncAuthProvider {
AuthorizationType = AppSyncAuthorizationType.API_KEY
};
var api = new EventApi(this, "api", new EventApiProps {
ApiName = "Api",
OwnerContact = "OwnerContact",
AuthorizationConfig = new EventApiAuthConfig {
AuthProviders = new [] { apiKeyProvider },
ConnectionAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
DefaultPublishAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
DefaultSubscribeAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY }
},
LogConfig = new AppSyncLogConfig {
FieldLogLevel = AppSyncFieldLogLevel.INFO,
Retention = RetentionDays.ONE_WEEK
}
});
api.AddChannelNamespace("default");
Synopsis
Fields
| API_KEY | API Key authorization type. |
| IAM | AWS IAM authorization type. |
| LAMBDA | Lambda authorization type. |
| OIDC | OpenID Connect authorization type. |
| USER_POOL | Cognito User Pool authorization type. |
Fields
| Name | Description |
|---|---|
| API_KEY | API Key authorization type. |
| IAM | AWS IAM authorization type. |
| LAMBDA | Lambda authorization type. |
| OIDC | OpenID Connect authorization type. |
| USER_POOL | Cognito User Pool authorization type. |