remove_permission

CodeGuruProfiler.Client.remove_permission(**kwargs)

Removes permissions from a profiling group's resource-based policy that are provided using an action group. The one supported action group that can be removed is agentPermission which grants ConfigureAgent and PostAgent permissions. For more information, see Resource-based policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User Guide , ConfigureAgent, and PostAgentProfile.

See also: AWS API Documentation

Request Syntax

response = client.remove_permission(
    actionGroup='agentPermissions',
    profilingGroupName='string',
    revisionId='string'
)
Parameters
  • actionGroup (string) --

    [REQUIRED]

    Specifies an action group that contains the permissions to remove from a profiling group's resource-based policy. One action group is supported, agentPermissions , which grants ConfigureAgent and PostAgentProfile permissions.

  • profilingGroupName (string) --

    [REQUIRED]

    The name of the profiling group.

  • revisionId (string) --

    [REQUIRED]

    A universally unique identifier (UUID) for the revision of the resource-based policy from which you want to remove permissions.

Return type

dict

Returns

Response Syntax

{
    'policy': 'string',
    'revisionId': 'string'
}

Response Structure

  • (dict) --

    The structure representing the removePermissionResponse .

    • policy (string) --

      The JSON-formatted resource-based policy on the profiling group after the specified permissions were removed.

    • revisionId (string) --

      A universally unique identifier (UUID) for the revision of the resource-based policy after the specified permissions were removed. The updated JSON-formatted policy is in the policy element of the response.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException
  • CodeGuruProfiler.Client.exceptions.ConflictException
  • CodeGuruProfiler.Client.exceptions.ValidationException
  • CodeGuruProfiler.Client.exceptions.ThrottlingException
  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException