aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
29 lines (28 loc) • 932 B
TypeScript
import * as elasticsearch from "./elasticsearch.generated";
import * as iam from "../../aws-iam";
/**
* Collection of grant methods for a IDomainRef
*/
export declare class DomainGrants {
/**
* Creates grants for DomainGrants
*/
static fromDomain(resource: elasticsearch.IDomainRef): DomainGrants;
protected readonly resource: elasticsearch.IDomainRef;
private constructor();
/**
* Grant read permissions for this domain and its contents to an IAM
* principal (Role/Group/User).
*/
read(grantee: iam.IGrantable): iam.Grant;
/**
* Grant write permissions for this domain and its contents to an IAM
* principal (Role/Group/User).
*/
write(grantee: iam.IGrantable): iam.Grant;
/**
* Grant read/write permissions for this domain and its contents to an IAM
* principal (Role/Group/User).
*/
readWrite(grantee: iam.IGrantable): iam.Grant;
}