aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
12 lines (11 loc) • 437 B
TypeScript
import { IDistribution } from '..';
import * as iam from '../../../aws-iam';
/**
* Format distribution ARN from stack and distribution ID.
*/
export declare function formatDistributionArn(dist: IDistribution): string;
/**
* Adds an IAM policy statement associated with this distribution to an IAM
* principal's policy.
*/
export declare function grant(dist: IDistribution, grantee: iam.IGrantable, ...actions: string[]): iam.Grant;