Actions, resources, and condition keys for Amazon CodeGuru Security
Amazon CodeGuru Security (service prefix: codeguru-security) provides the following
service-specific operations, resources, actions, and condition keys for use in IAM permission
policies.
References:
-
Learn how to configure this service.
-
View a list of the API operations available for this service.
-
Learn how to secure this service and its resources by using IAM permission policies.
-
View the programmatic service authorization reference
for this service.
Topics
API operations defined by Amazon CodeGuru Security
The following table maps API operations to the IAM actions they authorize. Only condition keys that have static values for the given API and action are listed; for the full set of condition keys supported by each action, see the Actions table.
| Operation | IAM action | Condition key | Possible value(s) | Access level |
|---|---|---|---|---|
|
BatchGetFindings |
Read |
|||
|
CreateScan |
Write |
|||
|
CreateUploadUrl |
Write |
|||
|
GetAccountConfiguration |
Read |
|||
|
GetFindings |
List |
|||
|
GetMetricsSummary |
Read |
|||
|
GetScan |
Read |
|||
|
ListFindingsMetrics |
List |
|||
|
ListScans |
List |
|||
|
ListTagsForResource |
Read |
|||
|
TagResource |
Tagging, Write |
|||
|
UntagResource |
Tagging, Write |
|||
|
UpdateAccountConfiguration |
Write |
Actions defined by Amazon CodeGuru Security
You can specify the following actions in the Action element of an IAM
policy statement. Use policies to grant permissions to perform an operation in AWS. When
you use an action in a policy, you usually allow or deny access to the API operation or CLI
command with the same name. However, in some cases, a single action controls access to more
than one operation. Alternatively, some operations require several different actions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to batch retrieve specific findings generated by CodeGuru Security |
Read |
|||
Grants permission to create a CodeGuru Security scan |
Write |
|||
Grants permission to generate a presigned url for uploading code archives |
Write |
|||
Grants permission to retrieve the account level configurations |
Read |
|||
Grants permission to retrieve findings for a scan generated by CodeGuru Security |
List |
|||
Grants permission to retrieve AWS accout level metrics summary generated by CodeGuru Security |
Read |
|||
Grants permission to retrieve CodeGuru Security scan metadata |
Read |
|||
Grants permission to retrieve a list of account level findings metrics within a date range |
List |
|||
Grants permission to retrieve list of CodeGuru Security scan metadata |
List |
|||
Grants permission to retrieve a list of tags for a scan name ARN |
Read |
|||
Grants permission to add tags to a scan name ARN |
Tagging, Write |
|||
Grants permission to remove tags from a scan name ARN |
Tagging, Write |
|||
Grants permission to update the account level configurations |
Write |
Permission-only actions for Amazon CodeGuru Security
The following actions are defined by Amazon CodeGuru Security but are not directly invocable through any API operation. They can only be used in IAM policy statements to grant or deny permissions.
| Actions | Description | Resource types (*required) | Condition keys | Access level |
|---|---|---|---|---|
Grants permission to delete all the scans and related findings from CodeGuru Security by given category |
Write |
|||
Grants permission to retrieve findings generated by CodeGuru Security |
List |
Resource types defined by Amazon CodeGuru Security
The following resource types are defined by this service and can be used in the
Resource element of IAM permission policy statements.
| Resource types | ARN | Condition keys |
|---|---|---|
arn:${Partition}:codeguru-security:${Region}:${Account}:scans/${ScanName} |
Condition keys for Amazon CodeGuru Security
Amazon CodeGuru Security defines the following condition keys that can be used in the
Condition element of an IAM policy.
| Condition keys | Description | Type |
|---|---|---|
Filters access by the tags that are passed in the request |
String |
|
Filters access by the tags associated with the resource |
String |
|
Filters access by the tag keys that are passed in the request |
ArrayOfString |