Skip to content

Commit

Permalink
feedback on doc.go formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skotambkar committed Oct 5, 2020
1 parent 35d944b commit 36f8dc6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions service/route53/internal/customizations/doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Package customizations provides customizations for the Amazon Route53 API client.
//
// This package provides support for following customizations
//
// Process Response Middleware: used for custom error deserializing
//
//
Expand All @@ -11,16 +12,17 @@
// ChangeResourceRecordSets operation of Route53.
//
// Here's a sample error response:
// <?xml version="1.0" encoding="UTF-8"?>
// <InvalidChangeBatch xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
// <Messages>
// <Message>Tried to create resource record set duplicate.example.com. type A, but it already exists</Message>
// </Messages>
// </InvalidChangeBatch>
//
// <?xml version="1.0" encoding="UTF-8"?>
// <InvalidChangeBatch xmlns="https://route53.amazonaws.com/doc/2013-04-01/">
// <Messages>
// <Message>Tried to create resource record set duplicate.example.com. type A, but it already exists</Message>
// </Messages>
// </InvalidChangeBatch>
//
//
// The processResponse middleware customizations enables SDK to check for an error
// response starting with `InvalidChangeBatch` tag prior to deserialization.
// response starting with "InvalidChangeBatch" tag prior to deserialization.
//
// As this check in error response needs to be performed earlier than response
// deserialization. Since the behavior of Deserialization is in
Expand All @@ -29,7 +31,7 @@
//
// Middleware layering:
//
// HTTP Response -> process response error -> deserialize
// HTTP Response -> process response error -> deserialize
//
//
// In case the returned error response has `InvalidChangeBatch` format, the error is
Expand Down

0 comments on commit 36f8dc6

Please sign in to comment.