Interface ApiKeyProps
- All Superinterfaces:
ApiKeyOptions,software.amazon.jsii.JsiiSerializable,ResourceOptions
- 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.067Z")
@Stability(Stable)
public interface ApiKeyProps
extends software.amazon.jsii.JsiiSerializable, ApiKeyOptions
ApiKey Properties.
Example:
Stack stack = Stack.Builder.create(app, "my-stack")
.propertyInjectors(List.of(new ApiKeyPropsInjector()))
.build();
ApiKey.Builder.create(stack, "my-api-key").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.Deprecated.A list of Stages this api key is associated with.Methods inherited from interface software.amazon.awscdk.services.apigateway.ApiKeyOptions
getApiKeyName, getDescription, getValueMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.apigateway.ResourceOptions
getDefaultCorsPreflightOptions, getDefaultIntegration, getDefaultMethodOptions
-
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
-
getResources
Deprecated.- use
stagesinstead
(deprecated) A list of resources this api key is associated with.Default: none
- use
-
getStages
A list of Stages this api key is associated with.Default: - the api key is not associated with any stages
-
builder
- Returns:
- a
ApiKeyProps.BuilderofApiKeyProps
-
stagesinstead