Expand description
STS XML response formatting and error serialization.
STS responses use text/xml content type following the awsQuery protocol.
All STS responses follow the pattern:
<{Operation}Response xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
<{Operation}Result>
...fields...
</{Operation}Result>
<ResponseMetadata>
<RequestId>{uuid}</RequestId>
</ResponseMetadata>
</{Operation}Response>Structs§
- XmlWriter
- Simple XML writer for building STS response XML.
Constants§
- CONTENT_
TYPE - Content type for STS XML responses.
Functions§
- error_
to_ response - Convert an
StsErrorinto a complete HTTP error response. - error_
to_ xml - Serialize an STS error into an XML error response body string.
- xml_
escape - XML-escape a string value.
- xml_
response - Build a success XML response with the given body and request ID.