@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-28T21:34:20.208Z") public class ProfilingGroup extends Resource implements IProfilingGroup
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);
Modifier and Type | Class and Description |
---|---|
static class |
ProfilingGroup.Builder
A fluent builder for
ProfilingGroup . |
IProfilingGroup.Jsii$Default, IProfilingGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
ProfilingGroup(software.constructs.Construct scope,
java.lang.String id) |
|
ProfilingGroup(software.constructs.Construct scope,
java.lang.String id,
ProfilingGroupProps props) |
Modifier and Type | Method and Description |
---|---|
static IProfilingGroup |
fromProfilingGroupArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String profilingGroupArn)
Import an existing Profiling Group provided an ARN.
|
static IProfilingGroup |
fromProfilingGroupName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String profilingGroupName)
Import an existing Profiling Group provided a Profiling Group Name.
|
java.lang.String |
getProfilingGroupArn()
The ARN of the Profiling Group.
|
java.lang.String |
getProfilingGroupName()
The name of the Profiling Group.
|
Grant |
grantPublish(IGrantable grantee)
Grant access to publish profiling information to the Profiling Group to the given identity.
|
Grant |
grantRead(IGrantable grantee)
Grant access to read profiling information from the Profiling Group to the given identity.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ProfilingGroup(software.constructs.Construct scope, java.lang.String id, ProfilingGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public ProfilingGroup(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IProfilingGroup fromProfilingGroupArn(software.constructs.Construct scope, java.lang.String id, java.lang.String profilingGroupArn)
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.public static IProfilingGroup fromProfilingGroupName(software.constructs.Construct scope, java.lang.String id, java.lang.String profilingGroupName)
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.public Grant grantPublish(IGrantable grantee)
This will grant the following permissions:
grantPublish
in interface IProfilingGroup
grantee
- Principal to grant publish rights to. This parameter is required.public Grant grantRead(IGrantable grantee)
This will grant the following permissions:
grantRead
in interface IProfilingGroup
grantee
- Principal to grant read rights to. This parameter is required.public java.lang.String getProfilingGroupArn()
public java.lang.String getProfilingGroupName()
getProfilingGroupName
in interface IProfilingGroup