'What is the correct version for using getSessionToken in AWS?

I'm currently trying to get a session token by hitting the endpoint https://sts.amazonaws.com/ ?Version=2012-10-17&Action=GetSessionToken. Of course I need to add my auth credentials, but I keep getting the error:

<ErrorResponse xmlns="http://webservices.amazon.com/AWSFault/2005-15-09">
    <Error>
        <Type>Sender</Type>
        <Code>InvalidAction</Code>
        <Message>Could not find operation GetSessionToken
 for version 2012-10-17</Message>
    </Error>
    <RequestId>c6a4eb8a-44a3-4461-9ae4-5afbbf4017ed</RequestId>
</ErrorResponse>

I've been looking through the documentation to find out which version that I need but to no avail. Does anyone know where I could find the documentation for this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source