aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
26 lines (25 loc) • 807 B
TypeScript
import * as apigateway from "./apigateway.generated";
import * as iam from "../../aws-iam";
/**
* Collection of grant methods for a IApiKeyRef
*/
export declare class ApiKeyGrants {
/**
* Creates grants for ApiKeyGrants
*/
static fromApiKey(resource: apigateway.IApiKeyRef): ApiKeyGrants;
protected readonly resource: apigateway.IApiKeyRef;
private constructor();
/**
* Permits the IAM principal all read operations through this key
*/
read(grantee: iam.IGrantable): iam.Grant;
/**
* Permits the IAM principal all write operations through this key
*/
write(grantee: iam.IGrantable): iam.Grant;
/**
* Permits the IAM principal all read and write operations through this key
*/
readWrite(grantee: iam.IGrantable): iam.Grant;
}