Class ProfilingGroupGrants
Collection of grant methods for a IProfilingGroupRef.
Namespace: Amazon.CDK.AWS.CodeGuruProfiler
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ProfilingGroupGrants : DeputyBase
Syntax (vb)
Public Class ProfilingGroupGrants Inherits DeputyBase
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeGuruProfiler;
using Amazon.CDK.Interfaces.CodeGuruProfiler;
IProfilingGroupRef profilingGroupRef;
var profilingGroupGrants = ProfilingGroupGrants.FromProfilingGroup(profilingGroupRef);
Synopsis
Properties
| Resource | Collection of grant methods for a IProfilingGroupRef. |
Methods
| FromProfilingGroup(IProfilingGroupRef) | Creates grants for ProfilingGroupGrants. |
| Publish(IGrantable) | Grant access to publish profiling information to the Profiling Group to the given identity. |
| Read(IGrantable) | Grant access to read profiling information from the Profiling Group to the given identity. |
Properties
Resource
Collection of grant methods for a IProfilingGroupRef.
protected virtual IProfilingGroupRef Resource { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeGuruProfiler;
using Amazon.CDK.Interfaces.CodeGuruProfiler;
IProfilingGroupRef profilingGroupRef;
var profilingGroupGrants = ProfilingGroupGrants.FromProfilingGroup(profilingGroupRef);
Methods
FromProfilingGroup(IProfilingGroupRef)
Creates grants for ProfilingGroupGrants.
public static ProfilingGroupGrants FromProfilingGroup(IProfilingGroupRef resource)
Parameters
- resource IProfilingGroupRef
Returns
Remarks
ExampleMetadata: fixture=_generated
Publish(IGrantable)
Grant access to publish profiling information to the Profiling Group to the given identity.
public virtual Grant Publish(IGrantable grantee)
Parameters
- grantee IGrantable
Returns
Remarks
This will grant the following permissions:
Read(IGrantable)
Grant access to read profiling information from the Profiling Group to the given identity.
public virtual Grant Read(IGrantable grantee)
Parameters
- grantee IGrantable
Returns
Remarks
This will grant the following permissions: