pub enum AwsProtocol {
Query,
Ec2Query,
Json,
Rest,
RestJson,
}Expand description
The wire protocol used by an AWS service.
Variants§
Query
Query protocol: form-encoded body, Action param, XML response. Used by: SQS, SNS, IAM, STS.
Ec2Query
EC2 Query protocol: a variant of Query. Requests are wire-identical to
Query (form-encoded body, Action param), but responses — including
errors — use EC2’s distinct XML envelope. Where Query/awsQuery emits
<ErrorResponse><Error><Type/><Code/><Message/></Error><RequestId/>,
ec2Query emits <Response><Errors><Error><Code/><Message/></Error></Errors><RequestID/></Response>
(root <Response>, an <Errors> wrapper, no <Type>, and capital-ID
<RequestID>). The AWS SDKs (aws-sdk-go-v2/Terraform, aws-sdk-js v3,
aws-sdk-rust, aws-sdk-java v2) parse EC2 error codes strictly against
this shape. Used by: EC2.
Json
JSON protocol: JSON body, X-Amz-Target header, JSON response. Used by: SSM, EventBridge, DynamoDB, SecretsManager, KMS, CloudWatch Logs.
Rest
REST protocol: HTTP method + path-based routing, XML responses. Used by: S3, API Gateway, Route53.
RestJson
REST-JSON protocol: HTTP method + path-based routing, JSON responses. Used by: Lambda, SES v2.
Trait Implementations§
Source§impl Clone for AwsProtocol
impl Clone for AwsProtocol
Source§fn clone(&self) -> AwsProtocol
fn clone(&self) -> AwsProtocol
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more