We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a018d78 commit 04db66bCopy full SHA for 04db66b
aws-sdk-core/lib/aws-sdk-core/api/customizations.rb
@@ -161,17 +161,16 @@ def apply_plugins(client_class)
161
api['shapes']['ExpiresString'] = { 'type' => 'string' }
162
%w(HeadObjectOutput GetObjectOutput).each do |shape|
163
members = api['shapes'][shape]['members']
164
- # inject this into sort order so this appears directly
165
- # after #expires
+ # inject ExpiresString directly after Expires
166
api['shapes'][shape]['members'] = members.inject({}) do |h, (k,v)|
+ h[k] = v
167
if k == 'Expires'
168
h['ExpiresString'] = {
169
'shape' => 'ExpiresString',
170
'location' => 'header',
171
'locationName' => 'Expires',
172
}
173
end
174
- h[k] = v
175
h
176
177
0 commit comments