2020/04/08 - Amazon CodeGuru Profiler - 3 new api methods
Changes CodeGuruProfiler adds support for resource based authorization to submit profile data.
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' )
string
[REQUIRED]
The list of actions that the users and roles can perform on the profiling group.
list
[REQUIRED]
The list of role and user ARNs or the accountId that needs access (wildcards are not allowed).
(string) --
string
[REQUIRED]
The name of the profiling group.
string
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.
dict
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.
Gets the profiling group policy.
See also: AWS API Documentation
Request Syntax
client.get_policy( profilingGroupName='string' )
string
[REQUIRED]
The name of the profiling group.
dict
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.
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' )
string
[REQUIRED]
The list of actions that the users and roles can perform on the profiling group.
string
[REQUIRED]
The name of the profiling group.
string
[REQUIRED]
A unique identifier for the current revision of the policy.
dict
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.