Class ProfilingGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.codeguruprofiler.ProfilingGroup
- All Implemented Interfaces:
IResource,IProfilingGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.968Z")
@Stability(Stable)
public class ProfilingGroup
extends Resource
implements IProfilingGroup
A new Profiling Group.
Example:
// The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)
Role publishAppRole = Role.Builder.create(this, "PublishAppRole")
.assumedBy(new AccountRootPrincipal())
.build();
ProfilingGroup profilingGroup = new ProfilingGroup(this, "MyProfilingGroup");
profilingGroup.grantPublish(publishAppRole);
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup
IProfilingGroup.Jsii$Default, IProfilingGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef) ProfilingGroup(software.constructs.Construct scope, String id) ProfilingGroup(software.constructs.Construct scope, String id, ProfilingGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IProfilingGroupfromProfilingGroupArn(software.constructs.Construct scope, String id, String profilingGroupArn) Import an existing Profiling Group provided an ARN.static IProfilingGroupfromProfilingGroupName(software.constructs.Construct scope, String id, String profilingGroupName) Import an existing Profiling Group provided a Profiling Group Name.The ARN of the Profiling Group.The name of the Profiling Group.grantPublish(IGrantable grantee) Grant access to publish profiling information to the Profiling Group to the given identity.grantRead(IGrantable grantee) Grant access to read profiling information from the Profiling Group to the given identity.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
ProfilingGroup
protected ProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef) -
ProfilingGroup
protected ProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ProfilingGroup
@Stability(Stable) public ProfilingGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ProfilingGroupProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
ProfilingGroup
@Stability(Stable) public ProfilingGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromProfilingGroupArn
@Stability(Stable) @NotNull public static IProfilingGroup fromProfilingGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String profilingGroupArn) Import an existing Profiling Group provided an ARN.- Parameters:
scope- The parent creating construct. This parameter is required.id- The construct's name. This parameter is required.profilingGroupArn- Profiling Group ARN. This parameter is required.
-
fromProfilingGroupName
@Stability(Stable) @NotNull public static IProfilingGroup fromProfilingGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String profilingGroupName) Import an existing Profiling Group provided a Profiling Group Name.- Parameters:
scope- The parent creating construct. This parameter is required.id- The construct's name. This parameter is required.profilingGroupName- Profiling Group Name. This parameter is required.
-
grantPublish
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
- Specified by:
grantPublishin interfaceIProfilingGroup- Parameters:
grantee- Principal to grant publish rights to. This parameter is required.
-
grantRead
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
- Specified by:
grantReadin interfaceIProfilingGroup- Parameters:
grantee- Principal to grant read rights to. This parameter is required.
-
getProfilingGroupArn
The ARN of the Profiling Group.- Specified by:
getProfilingGroupArnin interfaceIProfilingGroup
-
getProfilingGroupName
The name of the Profiling Group.- Specified by:
getProfilingGroupNamein interfaceIProfilingGroup
-