Class ApiKeyGrants
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.apigateway.ApiKeyGrants
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:13.514Z")
@Stability(Stable)
public class ApiKeyGrants
extends software.amazon.jsii.JsiiObject
Collection of grant methods for a IApiKeyRef.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigateway.*; import software.amazon.awscdk.interfaces.apigateway.*; IApiKeyRef apiKeyRef; ApiKeyGrants apiKeyGrants = ApiKeyGrants.fromApiKey(apiKeyRef);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedApiKeyGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedApiKeyGrants(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiKeyGrantsfromApiKey(IApiKeyRef resource) Creates grants for ApiKeyGrants.protected IApiKeyRefread(IGrantable grantee) Permits the IAM principal all read operations through this key.readWrite(IGrantable grantee) Permits the IAM principal all read and write operations through this key.write(IGrantable grantee) Permits the IAM principal all write operations through this key.Methods 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, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApiKeyGrants
protected ApiKeyGrants(software.amazon.jsii.JsiiObjectRef objRef) -
ApiKeyGrants
protected ApiKeyGrants(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
fromApiKey
Creates grants for ApiKeyGrants.- Parameters:
resource- This parameter is required.
-
read
Permits the IAM principal all read operations through this key.- Parameters:
grantee- This parameter is required.
-
readWrite
Permits the IAM principal all read and write operations through this key.- Parameters:
grantee- This parameter is required.
-
write
Permits the IAM principal all write operations through this key.- Parameters:
grantee- This parameter is required.
-
getResource
-