Removes the specified tags from the specified resource.
Parameters:
Raises:
Source code in docs_src/capo_fis/_services/fis.py
| def untag_resource(
self,
resource_arn: "capo_fis.types.resource_arn.ResourceArn",
*,
config_overrides: Optional[fisClientConfig] = None,
tag_keys: Optional["capo_fis.types.tag_key_list.TagKeyList"] = None,
) -> "capo_fis.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes the specified tags from the specified resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource.</p>
tag_keys: <p>The tag keys to remove.</p>
Raises:
capo_fis.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_fis.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_fis.types.untag_resource_response.UntagResourceResponse"
]:
import capo_fis._operations.fault_injection_simulator.untag_resource
output, http_response = (
capo_fis._operations.fault_injection_simulator.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_fis.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
|