ApiKeys
Create a unique key that can be used to perform GraphQL operations requiring an API key.
Syntax
To declare this entity in your Amazon Serverless Application Model (Amazon SAM) template, use the following syntax.
YAML
LogicalId: ApiKeyId:StringDescription:StringExpiresOn:Double
Properties
ApiKeyId-
The unique name of your API key. Specify to override the
LogicalIdvalue.Type: String
Required: Yes
Amazon CloudFormation compatibility: This property is passed directly to the
ApiKeyIdproperty of anAWS::AppSync::ApiKeyresource. Description-
Description of your API key.
Type: String
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
Descriptionproperty of anAWS::AppSync::ApiKeyresource. ExpiresOn-
The time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour.
Type: Double
Required: No
Amazon CloudFormation compatibility: This property is passed directly to the
Expiresproperty of anAWS::AppSync::ApiKeyresource. LogicalId-
The unique name of your API key.
Type: String
Required: Yes
Amazon CloudFormation compatibility: This property is passed directly to the
ApiKeyIdproperty of anAWS::AppSync::ApiKeyresource.