CodeGuruProfiler / Client / get_policy

get_policy#

CodeGuruProfiler.Client.get_policy(**kwargs)#

Returns the JSON-formatted resource-based policy on a profiling group.

See also: AWS API Documentation

Request Syntax

response = client.get_policy(
    profilingGroupName='string'
)
Parameters:

profilingGroupName (string) –

[REQUIRED]

The name of the profiling group.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    The structure representing the getPolicyResponse.

    • policy (string) –

      The JSON-formatted resource-based policy attached to the ProfilingGroup.

    • revisionId (string) –

      A unique identifier for the current revision of the returned policy.

Exceptions

  • CodeGuruProfiler.Client.exceptions.InternalServerException

  • CodeGuruProfiler.Client.exceptions.ThrottlingException

  • CodeGuruProfiler.Client.exceptions.ResourceNotFoundException