UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

28 lines (27 loc) 932 B
import * as logs from "./logs.generated"; import * as iam from "../../aws-iam"; import * as cdk from "../../core/lib"; /** * Collection of grant methods for a ILogGroupRef */ export declare class LogGroupGrants { /** * Creates grants for LogGroupGrants */ static fromLogGroup(resource: logs.ILogGroupRef): LogGroupGrants; protected readonly resource: logs.ILogGroupRef; protected readonly policyResource?: iam.IResourceWithPolicyV2; private constructor(); /** * Grant the given identity custom permissions */ actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant; /** * Give permissions to create and write to streams in this log group */ write(grantee: iam.IGrantable): iam.Grant; /** * Give permissions to read and filter events from this log group */ read(grantee: iam.IGrantable): iam.Grant; }