def untag_resource(
self,
resource_arn: "capo_voice_id.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_voice_id.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[VoiceIDClientConfig] = None,
) -> "capo_voice_id.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes specified tags from a specified Amazon Connect Voice ID resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the Voice ID resource you want to remove tags from.</p>
tag_keys: <p>The list of tag keys you want to remove from the specified resource.</p>
Raises:
capo_voice_id.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient permissions to perform this action. Check the error message and try again.</p>
capo_voice_id.errors.conflict_exception.ConflictException: <p>The request failed due to a conflict. Check the <code>ConflictType</code> and error message for more details.</p>
capo_voice_id.errors.internal_server_exception.InternalServerException: <p>The request failed due to an unknown error on the server side.</p>
capo_voice_id.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource cannot be found. Check the <code>ResourceType</code> and error message for more details.</p>
capo_voice_id.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling. Please slow down your request rate. Refer to <a href="https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html##voiceid-api-quotas"> Amazon Connect Voice ID Service API throttling quotas </a> and try your request again.</p>
capo_voice_id.errors.validation_exception.ValidationException: <p>The request failed one or more validations; check the error message for more details.</p>
capo_voice_id.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_voice_id.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_voice_id.types.untag_resource_response.UntagResourceResponse"
]:
import capo_voice_id._operations.voice_id.untag_resource
output, http_response = (
capo_voice_id._operations.voice_id.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
def _redact_input(
input_: "capo_voice_id.types.untag_resource_request.UntagResourceRequest",
) -> dict[str, Any]:
import capo_voice_id.types.untag_resource_request
return capo_voice_id.types.untag_resource_request.redact_sensitive(input_)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("UntagResource", redact_input=_redact_input),
)
input_: capo_voice_id.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