Removes the association of tags from a Timestream resource.
Parameters:
-
resource_arn
(AmazonResourceName)
–
The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN).
-
tag_keys
(TagKeyList)
–
A list of tags keys. Existing tags of the resource whose keys are members of this list will be removed from the Timestream resource.
Raises:
Source code in docs_src/capo_timestream_write/_services/async_timestream_write.py
| async def untag_resource(
self,
resource_arn: "capo_timestream_write.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_timestream_write.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncTimestreamWriteClientConfig] = None,
) -> "capo_timestream_write.types.untag_resource_response.UntagResourceResponse":
"""<p> Removes the association of tags from a Timestream resource. </p>
Args:
resource_arn: <p> The Timestream resource that the tags will be removed from. This value is an Amazon Resource Name (ARN). </p>
tag_keys: <p> A list of tags keys. Existing tags of the resource whose keys are members of this list will be removed from the Timestream resource. </p>
Raises:
capo_timestream_write.errors.invalid_endpoint_exception.InvalidEndpointException: <p>The requested endpoint was not valid.</p>
capo_timestream_write.errors.resource_not_found_exception.ResourceNotFoundException: <p>The operation tried to access a nonexistent resource. The resource might not be specified correctly, or its status might not be ACTIVE.</p>
capo_timestream_write.errors.service_quota_exceeded_exception.ServiceQuotaExceededException: <p> The instance quota of resource exceeded for this account.</p>
capo_timestream_write.errors.throttling_exception.ThrottlingException: <p> Too many requests were made by a user and they exceeded the service quotas. The request was throttled.</p>
capo_timestream_write.errors.validation_exception.ValidationException: <p> An invalid or malformed request.</p>
capo_timestream_write.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_timestream_write.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_timestream_write.types.untag_resource_response.UntagResourceResponse"
]:
import capo_timestream_write._operations.timestream_20181101.untag_resource
(
output,
http_response,
) = await capo_timestream_write._operations.timestream_20181101.untag_resource.async_untag_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_timestream_write.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|