LogGroupGrants
- class aws_cdk.aws_logs.LogGroupGrants(*args: Any, **kwargs)
Bases:
objectCollection of grant methods for a ILogGroupRef.
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_logs as logs from aws_cdk.interfaces import aws_logs as interfaces_logs # log_group_ref: interfaces_logs.ILogGroupRef log_group_grants = logs.LogGroupGrants.from_log_group(log_group_ref)
Methods
- actions(grantee, actions, *, resource_arns=None)
Grant the given identity custom permissions.
- Parameters:
grantee (
IGrantable)actions (
Sequence[str])resource_arns (
Optional[Sequence[str]]) – The ARNs of the resources to grant permissions on. Default: - The ARN of the resource associated with the grant is used.
- Return type:
- read(grantee)
Give permissions to read and filter events from this log group.
- Parameters:
grantee (
IGrantable)- Return type:
- write(grantee)
Give permissions to create and write to streams in this log group.
- Parameters:
grantee (
IGrantable)- Return type:
Static Methods
- classmethod from_log_group(resource)
Creates grants for LogGroupGrants.
- Parameters:
resource (
ILogGroupRef)- Return type: