aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
23 lines (22 loc) • 817 B
TypeScript
import * as cloudfront from "./cloudfront.generated";
import * as iam from "../../aws-iam";
import * as cdk from "../../core/lib";
/**
* Collection of grant methods for a IDistributionRef
*/
export declare class DistributionGrants {
/**
* Creates grants for DistributionGrants
*/
static fromDistribution(resource: cloudfront.IDistributionRef): DistributionGrants;
protected readonly resource: cloudfront.IDistributionRef;
private constructor();
/**
* Grant the given identity custom permissions
*/
actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant;
/**
* Grant to create invalidations for this bucket to an IAM principal (Role/Group/User).
*/
createInvalidation(grantee: iam.IGrantable): iam.Grant;
}