CodeGuruSecurity / Client / list_tags_for_resource
list_tags_for_resource¶
- CodeGuruSecurity.Client.list_tags_for_resource(**kwargs)¶
Returns a list of all tags associated with a scan.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceArn='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the
ScanNameobject. You can retrieve this ARN by callingCreateScan,ListScans, orGetScan.- Return type:
dict
- Returns:
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) –
tags (dict) –
An array of key-value pairs used to tag an existing scan. A tag is a custom attribute label with two parts:
A tag key. For example,
CostCenter,Environment, orSecret. Tag keys are case sensitive.An optional tag value field. For example,
111122223333,Production, or a team name. Omitting the tag value is the same as using an empty string. Tag values are case sensitive.
(string) –
(string) –
Exceptions
CodeGuruSecurity.Client.exceptions.InternalServerExceptionCodeGuruSecurity.Client.exceptions.ConflictExceptionCodeGuruSecurity.Client.exceptions.ResourceNotFoundExceptionCodeGuruSecurity.Client.exceptions.ThrottlingExceptionCodeGuruSecurity.Client.exceptions.AccessDeniedExceptionCodeGuruSecurity.Client.exceptions.ValidationException