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/media_package_vod.py
| def untag_resource(
self,
resource_arn: "capo_mediapackage_vod.types.__string.__string",
*,
config_overrides: Optional[MediaPackageVodClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_mediapackage_vod.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[None]:
import capo_mediapackage_vod._operations.media_package_vod.untag_resource
output, http_response = (
capo_mediapackage_vod._operations.media_package_vod.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|