/// Adds permissions to a profiling group's resource-based policy that are provided using
/// an action group. If a profiling group doesn't have a resource-based policy, one is
/// created for it using the permissions in the action group and the roles and users in
/// the principals
parameter.
///
/// <p> The one supported action group that can be added is <code>agentPermission</code>
/// which grants <code>ConfigureAgent</code> and <code>PostAgent</code>
/// permissions. For more information, see <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html">Resource-based
/// policies in CodeGuru Profiler</a> in the <i>Amazon CodeGuru Profiler User
/// Guide</i>, <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html">
/// <code>ConfigureAgent</code> </a>, and <a href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html">
/// <code>PostAgentProfile</code> </a>. </p> <p> The first
/// time you call <code>PutPermission</code> on a profiling group, do not
/// specify a <code>revisionId</code> because it doesn't have a resource-based
/// policy. Subsequent calls must provide a <code>revisionId</code> to specify
/// which revision of the resource-based policy to add the permissions to. </p>
/// <p> The response contains the profiling group's JSON-formatted resource policy.
/// </p>
///
[Cmdlet("Write", "CGPPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)]
[OutputType("Amazon.CodeGuruProfiler.Model.PutPermissionResponse")]
[AWSCmdlet("Calls the Amazon CodeGuru Profiler PutPermission API operation.", Operation = new[] {"PutPermission"}, SelectReturnType = typeof(Amazon.CodeGuruProfiler.Model.PutPermissionResponse))]
[AWSCmdletOutput("Amazon.CodeGuruProfiler.Model.PutPermissionResponse",
"This cmdlet returns an Amazon.CodeGuruProfiler.Model.PutPermissionResponse object containing multiple properties. The object can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack."
)]
public partial class WriteCGPPermissionCmdlet : AmazonCodeGuruProfilerClientCmdlet, IExecutor
{
#region Parameter ActionGroup
///