MCPcopy Create free account
hub / github.com/s3tools/s3cmd / GetInvalInfo

Method GetInvalInfo

S3/CloudFront.py:516–523  ·  view source on GitHub ↗
(self, cfuri)

Source from the content-addressed store, hash-verified

514 return response
515
516 def GetInvalInfo(self, cfuri):
517 if cfuri.type != "cf":
518 raise ValueError("Expected CFUri instead of: %s" % cfuri)
519 if cfuri.request_id() is None:
520 raise ValueError("Expected CFUri with Request ID")
521 response = self.send_request("GetInvalInfo", dist_id = cfuri.dist_id(), request_id = cfuri.request_id())
522 response['inval_status'] = Invalidation(response['data'])
523 return response
524
525 ## --------------------------------------------------
526 ## Low-level methods for handling CloudFront requests

Callers 1

invalinfoMethod · 0.95

Calls 4

send_requestMethod · 0.95
InvalidationClass · 0.85
request_idMethod · 0.80
dist_idMethod · 0.80

Tested by

no test coverage detected