Class ProfilingGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.codeguruprofiler.ProfilingGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,IProfilingGroup
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.919Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.codeguruprofiler.IProfilingGroup
IProfilingGroup.Jsii$Default, IProfilingGroup.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ProfilingGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ProfilingGroup
(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 IProfilingGroup
fromProfilingGroupArn
(software.constructs.Construct scope, String id, String profilingGroupArn) Import an existing Profiling Group provided an ARN.static IProfilingGroup
fromProfilingGroupName
(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.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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:
grantPublish
in 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:
grantRead
in interfaceIProfilingGroup
- Parameters:
grantee
- Principal to grant read rights to. This parameter is required.
-
getProfilingGroupArn
The ARN of the Profiling Group. -
getProfilingGroupName
The name of the Profiling Group.- Specified by:
getProfilingGroupName
in interfaceIProfilingGroup
-