AWS::ApiGateway::ApiKeyThe AWS::ApiGateway::ApiKey resource creates a unique key that you can distribute to clients who are executing API Gateway Method resources that require an API key. To specify which API key clients must use, map the API key with the RestApi and Stage resources that include the methods that require a key.
8 configurable properties. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
CustomerId | string | |
Description | string | |
Enabled | boolean | |
GenerateDistinctId | boolean | Create-onlyWrite-only |
Name | string | Create-only |
StageKeys | Array<StageKey> | |
Tags | Array<Tag> | |
Value | string | Create-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
APIKeyId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::ApiKey
Resources:
MyResource:
Type: AWS::ApiGateway::ApiKey
Properties:
Tags:
- Key: Environment
Value: Production
Description: !Ref "AWS::StackName"
Name: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:POSTapigateway:GETapigateway:PUTapigateway:GETapigateway:GETapigateway:PATCHapigateway:PUTapigateway:DELETEapigateway:DELETEapigateway:GETapigateway:GETEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicAPIKeyIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
GenerateDistinctIdNameValue