Table Of Contents

Feedback

User Guide

First time using the AWS CLI? See the User Guide for help getting started.

Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . codeguruprofiler ]

put-permission

Description

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 principals parameter.

`` pThe one supported action group that can be added is codeagentPermission/codewhich grants codeConfigureAgent/codeand codePostAgent/codepermissions. For more information, see a href=https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.htmlResource-based policies in CodeGuru Profiler/ain the iAmazon CodeGuru Profiler User Guide/i, a href=https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html codeConfigureAgent/code /a, and a href=https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html codePostAgentProfile/code /a. /p pThe first time you call codePutPermission/codeon a profiling group, do not specify a coderevisionId/codebecause it doesn't have a resource-based policy. Subsequent calls must provide a coderevisionId/codeto specify which revision of the resource-based policy to add the permissions to. /p pThe response contains the profiling group's JSON-formatted resource policy. /p``

See also: AWS API Documentation

See 'aws help' for descriptions of global parameters.

Synopsis

  put-permission
--action-group <value>
--principals <value>
--profiling-group-name <value>
[--revision-id <value>]
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--action-group (string)

Specifies an action group that contains permissions to add to a profiling group resource. One action group is supported, agentPermissions , which grants permission to perform actions required by the profiling agent, ConfigureAgent and PostAgentProfile permissions.

Possible values:

  • agentPermissions

--principals (list)

A list ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not are supported in the ARNs.

(string)

Syntax:

"string" "string" ...

--profiling-group-name (string)

The name of the profiling group to grant access to.

--revision-id (string)

A universally unique identifier (UUID) for the revision of the policy you are adding to the profiling group. Do not specify this when you add permissions to a profiling group for the first time. If a policy already exists on the profiling group, you must specify the revisionId .

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

policy -> (string)

The JSON-formatted resource-based policy on the profiling group that includes the added permissions.

revisionId -> (string)

A universally unique identifier (UUID) for the revision of the resource-based policy that includes the added permissions. The JSON-formatted policy is in the policy element of the response.