interface CfnApiKeyProps
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.APIGateway.CfnApiKeyProps | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigateway#CfnApiKeyProps | 
|  Java | software.amazon.awscdk.services.apigateway.CfnApiKeyProps | 
|  Python | aws_cdk.aws_apigateway.CfnApiKeyProps | 
|  TypeScript | aws-cdk-lib»aws_apigateway»CfnApiKeyProps | 
Properties for defining a CfnApiKey.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-apikey.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnApiKeyProps: apigateway.CfnApiKeyProps = {
  customerId: 'customerId',
  description: 'description',
  enabled: false,
  generateDistinctId: false,
  name: 'name',
  stageKeys: [{
    restApiId: 'restApiId',
    stageName: 'stageName',
  }],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  value: 'value',
};
Properties
| Name | Type | Description | 
|---|---|---|
| customer | string | An AWS Marketplace customer identifier, when integrating with the AWS SaaS Marketplace. | 
| description? | string | The description of the ApiKey. | 
| enabled? | boolean | IResolvable | Specifies whether the ApiKey can be used by callers. | 
| generate | boolean | IResolvable | Specifies whether ( true) or not (false) the key identifier is distinct from the created API key value. | 
| name? | string | A name for the API key. | 
| stage | IResolvable | (IResolvable | Stage)[] | DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key. | 
| tags? | Cfn[] | The key-value map of strings. | 
| value? | string | Specifies a value of the API key. | 
customerId?
Type:
string
(optional)
An AWS Marketplace customer identifier, when integrating with the AWS SaaS Marketplace.
description?
Type:
string
(optional)
The description of the ApiKey.
enabled?
Type:
boolean | IResolvable
(optional, default: false)
Specifies whether the ApiKey can be used by callers.
generateDistinctId?
Type:
boolean | IResolvable
(optional)
Specifies whether ( true ) or not ( false ) the key identifier is distinct from the created API key value.
This parameter is deprecated and should not be used.
name?
Type:
string
(optional)
A name for the API key.
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the API key name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
stageKeys?
Type:
IResolvable | (IResolvable | Stage)[]
(optional)
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
tags?
Type:
Cfn[]
(optional)
The key-value map of strings.
The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws: . The tag value can be up to 256 characters.
value?
Type:
string
(optional)
Specifies a value of the API key.
