IProfilingGroup

class aws_cdk.aws_codeguruprofiler.IProfilingGroup(*args, **kwds)

Bases: aws_cdk.core.IResource, typing_extensions.Protocol

(experimental) IResource represents a Profiling Group.

Stability

experimental

Methods

grant_publish(grantee)

(experimental) 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) – Principal to grant publish rights to.

Stability

experimental

Return type

Grant

grant_read(grantee)

(experimental) 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) – Principal to grant read rights to.

Stability

experimental

Return type

Grant

Attributes

env

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.

Return type

ResourceEnvironment

node

The construct tree node for this construct.

Return type

ConstructNode

profiling_group_name

(experimental) A name for the profiling group.

Stability

experimental

Attribute

true

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack