-
I'm seeing discrepancies between the EC2 instance response from AWS .NET SDK (vs) using HTTPclient . I'm under the impression that HTTPClient calls the REST API which will have the same schema as AWS .NET SDK but looks like it's not. Here is the comparison between .NET SDK and the HTTPClient. please note the response is sorted alphabetically. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
@ashovlin - Any inputs? |
Beta Was this translation helpful? Give feedback.
-
@ashishdhingra, can you please take a look at this. |
Beta Was this translation helpful? Give feedback.
-
We don't guarantee that the XML returned by a service, unmarshalled to the corresponding Common cases where they differ (as seen in the above example):
The best documentation for the raw responses are each service's API reference: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeInstances.html. I'm curious about your use case, if you're able to share? |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
We don't guarantee that the XML returned by a service, unmarshalled to the corresponding
Response
class in .NET, and then serialized again as JSON will be identical. I imagine there are even differences for services that return JSON instead of XML.Common cases where they differ (as seen in the above example):
enum
, we actually use a class based on ourConstantClass
. This offers more flexibility to clients who are using an older SDK that is not aware of a new enum value that a service may start returning.ArchitectureType
enumeration is currently defined:aws-sdk-net/sdk/src/Services/EC2/Generated/ServiceEnumerations.cs