tag_resource
¶
tag_resource(
resource_arn: ResourceArn,
tags: TagList,
*,
config_overrides: Optional[CodePipelineClientConfig] = 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/code_pipeline.py
3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 | |