Interface ApiKeyProps

All Superinterfaces:
ApiKeyOptions, software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
RateLimitedApiKeyProps
All Known Implementing Classes:
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 ApiKeyProps extends software.amazon.jsii.JsiiSerializable, ApiKeyOptions
ApiKey Properties.

Example:

 // Auto-generated name and value
 ApiKey autoKey = new ApiKey(this, "AutoKey");
 // Explicit name and value
 ApiKey explicitKey = ApiKey.Builder.create(this, "ExplicitKey")
         .apiKeyName("MyWebSocketApiKey")
         .value("MyApiKeyThatIsAtLeast20Characters")
         .build();
 
  • Method Details

    • getCustomerId

      @Stability(Stable) @Nullable default String getCustomerId()
      An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.

      Default: none

    • getEnabled

      @Stability(Stable) @Nullable default Boolean getEnabled()
      Indicates whether the API key can be used by clients.

      Default: true

    • getGenerateDistinctId

      @Stability(Stable) @Nullable default Boolean getGenerateDistinctId()
      Specifies whether the key identifier is distinct from the created API key value.

      Default: false

    • builder

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