UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

23 lines (22 loc) 719 B
import * as logs from "./logs.generated"; import * as iam from "../../aws-iam"; /** * 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(); /** * 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; }