@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:33.443Z") public class RateLimitedApiKey extends Resource implements IApiKey
Example:
RestApi api; RateLimitedApiKey key = RateLimitedApiKey.Builder.create(this, "rate-limited-api-key") .customerId("hello-customer") .resources(List.of(api)) .quota(QuotaSettings.builder() .limit(10000) .period(Period.MONTH) .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
RateLimitedApiKey.Builder
A fluent builder for
RateLimitedApiKey . |
IApiKey.Jsii$Default, IApiKey.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
RateLimitedApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
RateLimitedApiKey(software.amazon.jsii.JsiiObjectRef objRef) |
|
RateLimitedApiKey(software.constructs.Construct scope,
java.lang.String id) |
|
RateLimitedApiKey(software.constructs.Construct scope,
java.lang.String id,
RateLimitedApiKeyProps props) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKeyArn()
The API key ARN.
|
java.lang.String |
getKeyId()
The API key ID.
|
Grant |
grantRead(IGrantable grantee)
Permits the IAM principal all read operations through this key.
|
Grant |
grantReadWrite(IGrantable grantee)
Permits the IAM principal all read and write operations through this key.
|
Grant |
grantWrite(IGrantable grantee)
Permits the IAM principal all write operations through this key.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected RateLimitedApiKey(software.amazon.jsii.JsiiObjectRef objRef)
protected RateLimitedApiKey(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public RateLimitedApiKey(software.constructs.Construct scope, java.lang.String id, RateLimitedApiKeyProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public RateLimitedApiKey(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public Grant grantRead(IGrantable grantee)
grantee
- The principal to grant access to. This parameter is required.public Grant grantReadWrite(IGrantable grantee)
grantee
- The principal to grant access to. This parameter is required.public Grant grantWrite(IGrantable grantee)
grantee
- The principal to grant access to. This parameter is required.public java.lang.String getKeyArn()