As ofOctober 14, 2022, HTTP responses from the Amazon EC2 APIs no longer include a reason-phrase element. As recommended byRFC7230, you should ensure that your applications do not make use of the reason-phrase content. Ensure that your applications use the 3-digit status-code element included in the HTTP response instead.
We provide the Query API for Amazon EC2, as well as software development kits (SDK) for AWSthat enable you to access Amazon EC2 from your preferred programming language. For more information, see theAmazon EC2 Developer Guide.
If you plan to access Amazon EC2 through an API, you should be familiar with thefollowing:
XML
Web services
HTTP requests
One or more programming languages, such as Java, PHP, Perl, Python, Ruby, C#,or C++.
The Amazon EC2 Query API provides HTTP or HTTPS requests that use the HTTP verb GET or POSTand a Query parameter namedAction.
AWS provides libraries, sample code, tutorials, and other resources for softwaredevelopers who prefer to build applications using language-specific APIs instead ofsubmitting a request over HTTP or HTTPS. These libraries provide basic functions thatautomatically take care of tasks such as cryptographically signing your requests,retrying requests, and handling error responses, so that it is easier for you to getstarted.
For more information, seeCreate Amazon EC2 resources using an AWS SDK in theAmazon EC2 Developer Guide.