awscc_apigateway_api_key (Resource)

The 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.

Example Usage

resource "awscc_apigateway_api_key" "example" {
  name        = "example"
  description = "Example API key"
  enabled     = true

  tags = [{
    key   = "Modified By"
    value = "AWSCC"
  }]
}

Schema

Optional

Read-Only

Nested Schema for stage_keys

Optional:

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_apigateway_api_key.example <resource ID>