ApiKeyOptions
- class aws_cdk.aws_apigatewayv2.ApiKeyOptions(*, api_key_name=None, description=None, value=None)
Bases:
object
The options for creating an API Key.
- Parameters:
api_key_name (
Optional
[str
]) – 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. Default: automatically generated namedescription (
Optional
[str
]) – A description of the purpose of the API key. Default: nonevalue (
Optional
[str
]) – The value of the API key. Must be at least 20 characters long. Default: none
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_apigatewayv2 as apigatewayv2 api_key_options = apigatewayv2.ApiKeyOptions( api_key_name="apiKeyName", description="description", value="value" )
Attributes
- api_key_name
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.
- Default:
automatically generated name
- Link:
- description
A description of the purpose of the API key.
- value
The value of the API key.
Must be at least 20 characters long.