tag_resource
async
¶
tag_resource(
resource_arn: ResourceArn,
tags: TagList,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> TagResourceOutput
Adds to or modifies the tags of the given resource. Tags are metadata that can be used to manage a resource.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the resource you want to add tags to.
-
tags(TagList) –The tags you want to modify or add to the resource.
Raises:
-
ConcurrentModificationException–Unable to modify the tag due to a simultaneous update request.
-
InvalidArnException–The specified resource ARN is invalid.
-
InvalidTagsException–The specified resource tags are invalid.
-
ResourceNotFoundException–The resource was specified in an invalid format.
-
TooManyTagsException–The tags limit for a resource has been exceeded.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 | |