LogGroupGrants Facade
Collection of grant methods for a ILogGroupRef.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
import { aws_logs as interfaces_logs } from 'aws-cdk-lib/interfaces';
declare const logGroupRef: interfaces_logs.ILogGroupRef;
const logGroupGrants = logs.LogGroupGrants.fromLogGroup(logGroupRef);
Methods
actions(grantee: IGrantable, actions: string[], options?: PermissionsOptions): Grantdef actions(self, grantee: IGrantable, actions: typing.List[str], options: typing.Optional[PermissionsOptions] = None) -> Grantpublic Grant actions(IGrantable grantee, List<String> actions, PermissionsOptions options)public Grant Actions(IGrantable grantee, string[] actions, PermissionsOptions? options = null)func Actions(Grantee IGrantable, Actions *[]*string, Options PermissionsOptions) Grant#Grant the given identity custom permissions.
fromLogGroup(resource: ILogGroupRef): LogGroupGrants // chainable@staticmethod def from_log_group(resource: ILogGroupRef) -> LogGroupGrantspublic static LogGroupGrants fromLogGroup(ILogGroupRef resource)public static LogGroupGrants FromLogGroup(ILogGroupRef resource)func FromLogGroup(Resource ILogGroupRef) LogGroupGrantsstatic#Creates grants for LogGroupGrants.
read(grantee: IGrantable): Grantdef read(self, grantee: IGrantable) -> Grantpublic Grant read(IGrantable grantee)public Grant Read(IGrantable grantee)func Read(Grantee IGrantable) Grant#Give permissions to read and filter events from this log group.
write(grantee: IGrantable): Grantdef write(self, grantee: IGrantable) -> Grantpublic Grant write(IGrantable grantee)public Grant Write(IGrantable grantee)func Write(Grantee IGrantable) Grant#Give permissions to create and write to streams in this log group.