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
The one supported action group that can be added is
PostAgent permissions. For
more information, see Resource-based
policies in CodeGuru Profiler in the Amazon CodeGuru Profiler User
The first time you call
PutPermission on a profiling group, do not specify a
it doesn't have a resource-based policy. Subsequent calls must provide a
revisionId to specify
which revision of the resource-based policy to add the permissions to.
The response contains the profiling group's JSON-formatted resource policy.