AWS::AppSync::ApiKeyThe `AWS::AppSync::ApiKey` resource creates a unique key that you can distribute to clients who are executing GraphQL operations with AWS AppSync that require an API key.
import { CfnApiKey } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.CfnApiKeyConfiguration passed to the constructor as CfnApiKeyProps.
apiIdRequiredstringUnique AWS AppSync GraphQL API ID for this API key.
descriptionOptionalstringUnique description of your API key.
expiresOptionalnumberThe time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.
Download Free Infographicaws-appsyncAWS::AppSync::ApiKey