tag_resource
async
¶
tag_resource(
resource_arn: ResourceArn,
tags: TagList,
*,
config_overrides: Optional[AsyncShieldClientConfig] = None,
) -> TagResourceResponse
Adds or updates tags for a resource in Shield.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the resource that you want to add or update tags for.
-
tags(TagList) –The tags that you want to modify or add to the resource.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
InvalidResourceException–Exception that indicates that the resource is invalid. You might not have access to the resource, or the resource might not exist.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_shield/_services/async_shield.py
2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 | |