class ProfilingGroupGrants
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CodeGuruProfiler.ProfilingGroupGrants |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscodeguruprofiler#ProfilingGroupGrants |
Java | software.amazon.awscdk.services.codeguruprofiler.ProfilingGroupGrants |
Python | aws_cdk.aws_codeguruprofiler.ProfilingGroupGrants |
TypeScript | aws-cdk-lib » aws_codeguruprofiler » ProfilingGroupGrants |
Collection of grant methods for a IProfilingGroupRef.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codeguruprofiler as codeguruprofiler } from 'aws-cdk-lib';
import { aws_codeguruprofiler as interfaces_aws_codeguruprofiler } from 'aws-cdk-lib/interfaces';
declare const profilingGroupRef: interfaces_aws_codeguruprofiler.IProfilingGroupRef;
const profilingGroupGrants = codeguruprofiler.ProfilingGroupGrants.fromProfilingGroup(profilingGroupRef);
Properties
| Name | Type | Description |
|---|---|---|
| resource | IProfiling |
resource
Type:
IProfiling
Methods
| Name | Description |
|---|---|
| publish(grantee) | Grant access to publish profiling information to the Profiling Group to the given identity. |
| read(grantee) | Grant access to read profiling information from the Profiling Group to the given identity. |
| static from | Creates grants for ProfilingGroupGrants. |
publish(grantee)
public publish(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
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
read(grantee)
public read(grantee: IGrantable): Grant
Parameters
- grantee
IGrantable
Returns
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
static fromProfilingGroup(resource)
public static fromProfilingGroup(resource: IProfilingGroupRef): ProfilingGroupGrants
Parameters
- resource
IProfilingGroup Ref
Returns
Creates grants for ProfilingGroupGrants.

.NET
Go
Java
Python
TypeScript