Amazon CodeGuru Profiler

2020/04/08 - Amazon CodeGuru Profiler - 3 new api methods

Changes  Update codeguruprofiler client to latest version

RemovePermission (new) Link ¶

Removes statement for the provided action group from the policy.

See also: AWS API Documentation

Request Syntax

client.remove_permission(
    actionGroup='agentPermissions',
    profilingGroupName='string',
    revisionId='string'
)
type actionGroup:

string

param actionGroup:

[REQUIRED]

The list of actions that the users and roles can perform on the profiling group.

type profilingGroupName:

string

param profilingGroupName:

[REQUIRED]

The name of the profiling group.

type revisionId:

string

param revisionId:

[REQUIRED]

A unique identifier for the current revision of the policy.

rtype:

dict

returns:

Response Syntax

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

Response Structure

  • (dict) --

    The structure representing the removePermissionResponse.

    • policy (string) --

      The resource-based policy.

    • revisionId (string) --

      A unique identifier for the current revision of the policy.

GetPolicy (new) Link ¶

Gets the profiling group policy.

See also: AWS API Documentation

Request Syntax

client.get_policy(
    profilingGroupName='string'
)
type profilingGroupName:

string

param profilingGroupName:

[REQUIRED]

The name of the profiling group.

rtype:

dict

returns:

Response Syntax

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

Response Structure

  • (dict) --

    The structure representing the getPolicyResponse.

    • policy (string) --

      The resource-based policy attached to the ProfilingGroup.

    • revisionId (string) --

      A unique identifier for the current revision of the policy.

PutPermission (new) Link ¶

Provides permission to the principals. This overwrites the existing permissions, and is not additive.

See also: AWS API Documentation

Request Syntax

client.put_permission(
    actionGroup='agentPermissions',
    principals=[
        'string',
    ],
    profilingGroupName='string',
    revisionId='string'
)
type actionGroup:

string

param actionGroup:

[REQUIRED]

The list of actions that the users and roles can perform on the profiling group.

type principals:

list

param principals:

[REQUIRED]

The list of role and user ARNs or the accountId that needs access (wildcards are not allowed).

  • (string) --

type profilingGroupName:

string

param profilingGroupName:

[REQUIRED]

The name of the profiling group.

type revisionId:

string

param revisionId:

A unique identifier for the current revision of the policy. This is required, if a policy exists for the profiling group. This is not required when creating the policy for the first time.

rtype:

dict

returns:

Response Syntax

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

Response Structure

  • (dict) --

    The structure representing the putPermissionResponse.

    • policy (string) --

      The resource-based policy.

    • revisionId (string) --

      A unique identifier for the current revision of the policy.