ProfilingGroupGrants
- class aws_cdk.aws_codeguruprofiler.ProfilingGroupGrants(*args: Any, **kwargs)
Bases:
objectCollection 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_codeguruprofiler # profiling_group_ref: interfaces_codeguruprofiler.IProfilingGroupRef profiling_group_grants = codeguruprofiler.ProfilingGroupGrants.from_profiling_group(profiling_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:
- 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:
- 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:
Static Methods
- classmethod from_profiling_group(resource)
Creates grants for ProfilingGroupGrants.
- Parameters:
resource (
IProfilingGroupRef)- Return type: