ProfilingGroup

class aws_cdk.aws_codeguruprofiler.ProfilingGroup(scope, id, *, profiling_group_name=None)

Bases: aws_cdk.core.Resource

A new Profiling Group.

stability :stability: experimental

__init__(scope, id, *, profiling_group_name=None)
Parameters
  • scope (Construct) –

  • id (str) –

  • profiling_group_name (Optional[str]) – A name for the profiling group. Default: - automatically generated name.

stability :stability: experimental

Return type

None

Methods

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

stability :stability: experimental

Return type

Grant

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

stability :stability: experimental

Return type

Grant

to_string()

Returns a string representation of this construct.

Return type

str

Attributes

node

The construct tree node associated with this construct.

Return type

ConstructNode

profiling_group_arn

The ARN of the Profiling Group.

stability :stability: experimental attribute: :attribute:: true

Return type

str

profiling_group_name

The name of the Profiling Group.

stability :stability: experimental attribute: :attribute:: true

Return type

str

stack

The stack in which this resource is defined.

Return type

Stack

Static Methods

classmethod from_profiling_group_arn(scope, id, profiling_group_arn)

Import an existing Profiling Group provided an ARN.

Parameters
  • scope (Construct) – The parent creating construct.

  • id (str) – The construct’s name.

  • profiling_group_arn (str) – Profiling Group ARN.

stability :stability: experimental

Return type

IProfilingGroup

classmethod from_profiling_group_name(scope, id, profiling_group_name)

Import an existing Profiling Group provided a Profiling Group Name.

Parameters
  • scope (Construct) – The parent creating construct.

  • id (str) – The construct’s name.

  • profiling_group_name (str) – Profiling Group Name.

stability :stability: experimental

Return type

IProfilingGroup

classmethod is_construct(x)

Return whether the given object is a Construct.

Parameters

x (Any) –

Return type

bool