Class ProfilingGroup
A new Profiling Group.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeGuruProfiler
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProfilingGroup : Resource, IProfilingGroup, IResource
Syntax (vb)
Public Class ProfilingGroup
Inherits Resource
Implements IProfilingGroup, IResource
Remarks
ExampleMetadata: infused
Examples
// The execution role of your application that publishes to the ProfilingGroup via CodeGuru Profiler Profiling Agent. (the following is merely an example)
var publishAppRole = new Role(this, "PublishAppRole", new RoleProps {
AssumedBy = new AccountRootPrincipal()
});
var profilingGroup = new ProfilingGroup(this, "MyProfilingGroup");
profilingGroup.GrantPublish(publishAppRole);
Synopsis
Constructors
ProfilingGroup(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ProfilingGroup(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ProfilingGroup(Construct, String, IProfilingGroupProps) |
Properties
ProfilingGroupArn | The ARN of the Profiling Group. |
ProfilingGroupName | The name of the Profiling Group. |
Methods
FromProfilingGroupArn(Construct, String, String) | Import an existing Profiling Group provided an ARN. |
FromProfilingGroupName(Construct, String, String) | Import an existing Profiling Group provided a Profiling Group Name. |
GrantPublish(IGrantable) | Grant access to publish profiling information to the Profiling Group to the given identity. |
GrantRead(IGrantable) | Grant access to read profiling information from the Profiling Group to the given identity. |
Constructors
ProfilingGroup(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ProfilingGroup(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ProfilingGroup(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ProfilingGroup(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ProfilingGroup(Construct, String, IProfilingGroupProps)
public ProfilingGroup(Construct scope, string id, IProfilingGroupProps props = null)
Parameters
- scope Constructs.Construct
- id System.String
- props IProfilingGroupProps
Properties
ProfilingGroupArn
The ARN of the Profiling Group.
public virtual string ProfilingGroupArn { get; }
Property Value
System.String
Remarks
Attribute: true
ProfilingGroupName
The name of the Profiling Group.
public virtual string ProfilingGroupName { get; }
Property Value
System.String
Remarks
Attribute: true
Methods
FromProfilingGroupArn(Construct, String, String)
Import an existing Profiling Group provided an ARN.
public static IProfilingGroup FromProfilingGroupArn(Construct scope, string id, string profilingGroupArn)
Parameters
- scope Constructs.Construct
The parent creating construct.
- id System.String
The construct's name.
- profilingGroupArn System.String
Profiling Group ARN.
Returns
FromProfilingGroupName(Construct, String, String)
Import an existing Profiling Group provided a Profiling Group Name.
public static IProfilingGroup FromProfilingGroupName(Construct scope, string id, string profilingGroupName)
Parameters
- scope Constructs.Construct
The parent creating construct.
- id System.String
The construct's name.
- profilingGroupName System.String
Profiling Group Name.
Returns
GrantPublish(IGrantable)
Grant access to publish profiling information to the Profiling Group to the given identity.
public virtual Grant GrantPublish(IGrantable grantee)
Parameters
- grantee IGrantable
Principal to grant publish rights to.
Returns
Remarks
This will grant the following permissions:
GrantRead(IGrantable)
Grant access to read profiling information from the Profiling Group to the given identity.
public virtual Grant GrantRead(IGrantable grantee)
Parameters
- grantee IGrantable
Principal to grant read rights to.
Returns
Remarks
This will grant the following permissions: