mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Update Go AWS SDK to the latest version
This commit is contained in:
committed by
Andrey Smirnov
parent
d08be990ef
commit
94a72b23ff
+8
-6
@@ -15,7 +15,7 @@ const opDeleteThingShadow = "DeleteThingShadow"
|
||||
// DeleteThingShadowRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteThingShadow operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -115,7 +115,7 @@ const opGetThingShadow = "GetThingShadow"
|
||||
// GetThingShadowRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the GetThingShadow operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -215,7 +215,7 @@ const opPublish = "Publish"
|
||||
// PublishRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the Publish operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -247,8 +247,7 @@ func (c *IoTDataPlane) PublishRequest(input *PublishInput) (req *request.Request
|
||||
|
||||
output = &PublishOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
req.Handlers.Unmarshal.Remove(restjson.UnmarshalHandler)
|
||||
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
|
||||
req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -305,7 +304,7 @@ const opUpdateThingShadow = "UpdateThingShadow"
|
||||
// UpdateThingShadowRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the UpdateThingShadow operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfuly.
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
@@ -569,6 +568,9 @@ func (s *PublishInput) Validate() error {
|
||||
if s.Topic == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("Topic"))
|
||||
}
|
||||
if s.Topic != nil && len(*s.Topic) < 1 {
|
||||
invalidParams.Add(request.NewErrParamMinLen("Topic", 1))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
|
||||
Reference in New Issue
Block a user