Interface ApiKeyOptions

All Superinterfaces:, ResourceOptions
All Known Subinterfaces:
ApiKeyProps, RateLimitedApiKeyProps
All Known Implementing Classes:
ApiKeyOptions.Jsii$Proxy, ApiKeyProps.Jsii$Proxy, RateLimitedApiKeyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:13.600Z") @Stability(Stable) public interface ApiKeyOptions extends, ResourceOptions
The options for creating an API Key.


 RestApi api;
 IApiKey key = api.addApiKey("ApiKey", ApiKeyOptions.builder()
  • 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: automically 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()
      a ApiKeyOptions.Builder of ApiKeyOptions