Class RateLimitedApiKey
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigateway.RateLimitedApiKey
- All Implemented Interfaces:
IResource
,IApiKey
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:56.252Z")
@Stability(Stable)
public class RateLimitedApiKey
extends Resource
implements IApiKey
An API Gateway ApiKey, for which a rate limiting configuration can be specified.
Example:
RestApi api; RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key") .customerId("hello-customer") .stages(List.of(api.getDeploymentStage())) .quota(QuotaSettings.builder() .limit(10000) .period(Period.MONTH) .build()) .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.IApiKey
IApiKey.Jsii$Default, IApiKey.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
RateLimitedApiKey
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
RateLimitedApiKey
(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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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.
-