Removes tags from a resource.
Parameters:
-
resource_arn
(TwinMakerArn)
–
-
tag_keys
(TagKeyList)
–
A list of tag key names to remove from the resource. You don't specify the value. Both the key and its associated value are removed.
Raises:
Source code in docs_src/capo_iottwinmaker/_services/io_t_twin_maker.py
| def untag_resource(
self,
resource_arn: "capo_iottwinmaker.types.twin_maker_arn.TwinMakerArn",
tag_keys: "capo_iottwinmaker.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[IoTTwinMakerClientConfig] = None,
) -> "capo_iottwinmaker.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from a resource.</p>
Args:
resource_arn: <p>The ARN of the resource.</p>
tag_keys: <p>A list of tag key names to remove from the resource. You don't specify the value. Both the key and its associated value are removed.</p>
Raises:
capo_iottwinmaker.errors.access_denied_exception.AccessDeniedException: <p>Access is denied.</p>
capo_iottwinmaker.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource wasn't found.</p>
capo_iottwinmaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iottwinmaker.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_iottwinmaker.types.untag_resource_response.UntagResourceResponse"
]:
import capo_iottwinmaker._operations.aws_io_t_twin_maker.untag_resource
output, http_response = (
capo_iottwinmaker._operations.aws_io_t_twin_maker.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_iottwinmaker.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|