Removes tags from the specified container. You can specify one or more tags to remove.
Parameters:
-
resource
(ContainerARN)
–
The Amazon Resource Name (ARN) for the container.
-
tag_keys
(TagKeyList)
–
A comma-separated list of keys for tags that you want to remove from the container. For example, if your container has two tags (customer:CompanyA and priority:High) and you want to remove one of the tags (priority:High), you specify the key for the tag that you want to remove (priority).
Raises:
Source code in docs_src/capo_mediastore/_services/media_store.py
| def untag_resource(
self,
resource: "capo_mediastore.types.container_arn.ContainerARN",
tag_keys: "capo_mediastore.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[MediaStoreClientConfig] = None,
) -> "capo_mediastore.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes tags from the specified container. You can specify one or more tags to remove. </p>
Args:
resource: <p>The Amazon Resource Name (ARN) for the container.</p>
tag_keys: <p>A comma-separated list of keys for tags that you want to remove from the container. For example, if your container has two tags (customer:CompanyA and priority:High) and you want to remove one of the tags (priority:High), you specify the key for the tag that you want to remove (priority).</p>
Raises:
capo_mediastore.errors.container_in_use_exception.ContainerInUseException: <p>The container that you specified in the request already exists or is being updated.</p>
capo_mediastore.errors.container_not_found_exception.ContainerNotFoundException: <p>The container that you specified in the request does not exist.</p>
capo_mediastore.errors.internal_server_error.InternalServerError: <p>The service is temporarily unavailable.</p>
capo_mediastore.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_mediastore.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_mediastore.types.untag_resource_output.UntagResourceOutput"
]:
import capo_mediastore._operations.media_store_20170901.untag_resource
output, http_response = (
capo_mediastore._operations.media_store_20170901.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_mediastore.types.untag_resource_input.UntagResourceInput = {
"resource": resource,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|