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.121.0 (build d7af9b9)",
date="2025-12-18T18:20:04.290Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApiKeyPropsstatic final classAn implementation forApiKeyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiKeyProps.Builderbuilder()default StringAn AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.default BooleanIndicates whether the API key can be used by clients.default BooleanSpecifies whether the key identifier is distinct from the created API key value.Methods inherited from interface software.amazon.awscdk.services.apigatewayv2.ApiKeyOptions
getApiKeyName, getDescription, getValueMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomerId
An AWS Marketplace customer identifier to use when integrating with the AWS SaaS Marketplace.Default: none
-
getEnabled
Indicates whether the API key can be used by clients.Default: true
-
getGenerateDistinctId
Specifies whether the key identifier is distinct from the created API key value.Default: false
-
builder
- Returns:
- a
ApiKeyProps.BuilderofApiKeyProps
-