Removes tags from the specified resource. You can specify one or more tags to remove.
Parameters:
-
resource_arn
(__string)
–
The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.
-
tag_keys
(Optional[__listOf__string], default:
None
)
–
A comma-separated list of the tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_mediapackage_vod/_services/async_media_package_vod.py
| async def untag_resource(
self,
resource_arn: "capo_mediapackage_vod.types.__string.__string",
*,
config_overrides: Optional[AsyncMediaPackageVodClientConfig] = None,
tag_keys: Optional[
"capo_mediapackage_vod.types.__list_of__string.__listOf__string"
] = None,
) -> None:
"""Removes tags from the specified resource. You can specify one or more tags to remove.
Args:
resource_arn: The Amazon Resource Name (ARN) for the resource. You can get this from the response to any request to the resource.
tag_keys: A comma-separated list of the tag keys to remove from the resource.
Raises:
capo_mediapackage_vod.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_mediapackage_vod.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[None]:
import capo_mediapackage_vod._operations.media_package_vod.untag_resource
(
output,
http_response,
) = await capo_mediapackage_vod._operations.media_package_vod.untag_resource.async_untag_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_mediapackage_vod.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn
}
if tag_keys is not None:
input_["tag_keys"] = tag_keys
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|