Interface ApiKeyOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
ApiKeyProps, RateLimitedApiKeyProps
All Known Implementing Classes:
ApiKeyOptions.Jsii$Proxy, ApiKeyProps.Jsii$Proxy, RateLimitedApiKeyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)", date="2025-08-27T16:10:17.103Z") @Stability(Stable) public interface ApiKeyOptions extends software.amazon.jsii.JsiiSerializable
The options for creating an API Key.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apigatewayv2.*;
 ApiKeyOptions apiKeyOptions = ApiKeyOptions.builder()
         .apiKeyName("apiKeyName")
         .description("description")
         .value("value")
         .build();
 
  • Method Details

    • getApiKeyName

      @Stability(Stable) @Nullable default String getApiKeyName()
      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

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the purpose of the API key.

      Default: none

    • getValue

      @Stability(Stable) @Nullable default String getValue()
      The value of the API key.

      Must be at least 20 characters long.

      Default: none

    • builder

      @Stability(Stable) static ApiKeyOptions.Builder builder()
      Returns:
      a ApiKeyOptions.Builder of ApiKeyOptions