@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.443Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIProfilingGroup.Jsii$Default, IProfilingGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ProfilingGroup(software.constructs.Construct scope,
String id) |
|
ProfilingGroup(software.constructs.Construct scope,
String id,
ProfilingGroupProps props) |
protected |
ProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static 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.
|
String |
getProfilingGroupArn()
The ARN of the Profiling Group.
|
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, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected ProfilingGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ProfilingGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public ProfilingGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
ProfilingGroupProps props)
scope - This parameter is required.id - This parameter is required.props - @Stability(value=Stable)
public ProfilingGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - This parameter is required.id - This parameter is required.@Stability(value=Stable) @NotNull public static IProfilingGroup fromProfilingGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull 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.@Stability(value=Stable) @NotNull public static IProfilingGroup fromProfilingGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull 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.@Stability(value=Stable) @NotNull public Grant grantPublish(@NotNull IGrantable grantee)
This will grant the following permissions:
grantPublish in interface IProfilingGroupgrantee - Principal to grant publish rights to. This parameter is required.@Stability(value=Stable) @NotNull public Grant grantRead(@NotNull IGrantable grantee)
This will grant the following permissions:
grantRead in interface IProfilingGroupgrantee - Principal to grant read rights to. This parameter is required.@Stability(value=Stable) @NotNull public String getProfilingGroupArn()
@Stability(value=Stable) @NotNull public String getProfilingGroupName()
getProfilingGroupName in interface IProfilingGroupCopyright © 2022. All rights reserved.