Removes tags from the resource with the specified ARN.
Parameters:
-
resource_arn
(ResourceArn)
–
The ARN of the resource to be untagged. The ARN must be URL-encoded.
-
tag_keys
(TagKeyList)
–
Array of tag keys (strings) for the tags to be removed. See Best practices and strategies in Tagging AWS Resources and Tag Editor for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.
Raises:
Source code in docs_src/capo_ivs_realtime/_services/ivs_real_time.py
| def untag_resource(
self,
resource_arn: "capo_ivs_realtime.types.resource_arn.ResourceArn",
tag_keys: "capo_ivs_realtime.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[IVSRealTimeClientConfig] = None,
) -> "capo_ivs_realtime.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes tags from the resource with the specified ARN.</p>
Args:
resource_arn: <p>The ARN of the resource to be untagged. The ARN must be URL-encoded.</p>
tag_keys: <p>Array of tag keys (strings) for the tags to be removed. See <a href="https://docs.aws.amazon.com/tag-editor/latest/userguide/best-practices-and-strats.html">Best practices and strategies</a> in <i>Tagging AWS Resources and Tag Editor</i> for details, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon IVS has no constraints on tags beyond what is documented there.</p>
Raises:
capo_ivs_realtime.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
capo_ivs_realtime.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</p>
capo_ivs_realtime.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_ivs_realtime.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_ivs_realtime.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_ivs_realtime.types.untag_resource_response.UntagResourceResponse"
]:
import capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.untag_resource
output, http_response = (
capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.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_ivs_realtime.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
|