ProfilingGroupGrants

class aws_cdk.aws_codeguruprofiler.ProfilingGroupGrants(*args: Any, **kwargs)

Bases: object

Collection of grant methods for a IProfilingGroupRef.

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_codeguruprofiler as codeguruprofiler
from aws_cdk.interfaces import aws_codeguruprofiler as interfaces_aws_codeguruprofiler

# profiling_group_ref: interfaces_aws_codeguruprofiler.IProfilingGroupRef

profiling_group_grants = codeguruprofiler.ProfilingGroupGrants.from_profiling_group(profiling_group_ref)

Methods

publish(grantee)

Grant access to publish profiling information to the Profiling Group to the given identity.

This will grant the following permissions:

  • codeguru-profiler:ConfigureAgent

  • codeguru-profiler:PostAgentProfile

Parameters:

grantee (IGrantable)

Return type:

Grant

read(grantee)

Grant access to read profiling information from the Profiling Group to the given identity.

This will grant the following permissions:

  • codeguru-profiler:GetProfile

  • codeguru-profiler:DescribeProfilingGroup

Parameters:

grantee (IGrantable)

Return type:

Grant

Static Methods

classmethod from_profiling_group(resource)

Creates grants for ProfilingGroupGrants.

Parameters:

resource (IProfilingGroupRef)

Return type:

ProfilingGroupGrants