@property<EOL><INDENT>def expected_signature(self):<DEDENT>
k_secret = b"<STR_LIT>" + self.key_mapping[self.access_key].encode("<STR_LIT:utf-8>")<EOL>k_date = hmac.new(k_secret, self.request_date.encode("<STR_LIT:utf-8>"),<EOL>sha256).digest()<EOL>k_region = hmac.new(k_date, self.region.encode("<STR_LIT:utf-8>"),<EOL>sha256).digest()<EOL>k_service = hmac.new(k_region, self.service.encode("<STR_LIT:utf-8>"),<EOL>sha256).digest()<EOL>k_signing = hmac.new(k_service, _aws4_request_bytes, sha256).digest()<EOL>return hmac.new(k_signing, self.string_to_sign.encode("<STR_LIT:utf-8>"),<EOL>sha256).hexdigest()<EOL>
The AWS SigV4 signature expected from the request.