tag_resource
async
¶
tag_resource(
resource_arn: ScanNameArn,
tags: TagMap,
*,
config_overrides: Optional[AsyncCodeGuruSecurityClientConfig] = None,
) -> TagResourceResponse
Use to add one or more tags to an existing scan.
Parameters:
-
resource_arn(ScanNameArn) –The ARN of the
ScanNameobject. You can retrieve this ARN by callingCreateScan,ListScans, orGetScan. -
tags(TagMap) –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.
-
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ResourceNotFoundException–The resource specified in the request was not found.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.