Class RateLimitedApiKey
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigatewayv2.RateLimitedApiKey
- All Implemented Interfaces:
IEnvironmentAware,IResource,IApiKey,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:04.987Z")
@Stability(Stable)
public class RateLimitedApiKey
extends Resource
implements IApiKey
An API Gateway ApiKey, for which a rate limiting configuration can be specified.
Example:
WebSocketApi api;
WebSocketStage stage;
RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key")
.customerId("test-customer")
.apiStages(List.of(UsagePlanPerApiStage.builder()
.api(api)
.stage(stage)
.build()))
.quota(QuotaSettings.builder()
.limit(10000)
.period(Period.MONTH)
.build())
.throttle(ThrottleSettings.builder()
.rateLimit(100)
.burstLimit(200)
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigatewayv2.IApiKey
IApiKey.Jsii$Default, IApiKey.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRateLimitedApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedRateLimitedApiKey(software.amazon.jsii.JsiiObjectRef objRef) RateLimitedApiKey(software.constructs.Construct scope, String id) RateLimitedApiKey(software.constructs.Construct scope, String id, RateLimitedApiKeyProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe API key ARN.getKeyId()The API key ID.grantRead(IGrantable grantee) Permits the IAM principal all read operations through this key.grantReadWrite(IGrantable grantee) Permits the IAM principal all read and write operations through this key.grantWrite(IGrantable grantee) Permits the IAM principal all write operations through this key.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
RateLimitedApiKey
protected RateLimitedApiKey(software.amazon.jsii.JsiiObjectRef objRef) -
RateLimitedApiKey
protected RateLimitedApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
RateLimitedApiKey
@Stability(Stable) public RateLimitedApiKey(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable RateLimitedApiKeyProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
RateLimitedApiKey
@Stability(Stable) public RateLimitedApiKey(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
grantRead
Permits the IAM principal all read operations through this key.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
grantReadWrite
Permits the IAM principal all read and write operations through this key.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
grantWrite
Permits the IAM principal all write operations through this key.- Parameters:
grantee- The principal to grant access to. This parameter is required.
-
getKeyArn
The API key ARN. -
getKeyId
The API key ID.
-