aws-sdk 2.1509.0 → 2.1511.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/apis/billingconductor-2021-07-30.min.json +9 -3
- package/apis/braket-2019-09-01.min.json +77 -42
- package/apis/cloud9-2017-09-23.min.json +2 -1
- package/apis/cloudformation-2010-05-15.waiters2.json +48 -0
- package/apis/medialive-2017-10-14.min.json +257 -225
- package/apis/qconnect-2020-10-19.min.json +68 -6
- package/apis/rbin-2021-06-15.min.json +12 -6
- package/apis/verifiedpermissions-2021-12-01.min.json +44 -19
- package/clients/billingconductor.d.ts +16 -0
- package/clients/braket.d.ts +33 -2
- package/clients/cloud9.d.ts +2 -2
- package/clients/finspace.d.ts +11 -11
- package/clients/medialive.d.ts +26 -0
- package/clients/qconnect.d.ts +66 -4
- package/clients/rbin.d.ts +24 -0
- package/clients/servicecatalogappregistry.d.ts +2 -2
- package/clients/verifiedpermissions.d.ts +27 -2
- package/dist/aws-sdk-core-react-native.js +6 -1
- package/dist/aws-sdk-react-native.js +14 -9
- package/dist/aws-sdk.js +56 -3
- package/dist/aws-sdk.min.js +99 -99
- package/lib/core.js +1 -1
- package/lib/json/parser.js +5 -0
- package/package.json +1 -1
package/lib/core.js
CHANGED
package/lib/json/parser.js
CHANGED
@@ -23,12 +23,17 @@ function translateStructure(structure, shape) {
|
|
23
23
|
|
24
24
|
var struct = {};
|
25
25
|
var shapeMembers = shape.members;
|
26
|
+
var isAwsQueryCompatible = shape.api && shape.api.awsQueryCompatible;
|
26
27
|
util.each(shapeMembers, function(name, memberShape) {
|
27
28
|
var locationName = memberShape.isLocationName ? memberShape.name : name;
|
28
29
|
if (Object.prototype.hasOwnProperty.call(structure, locationName)) {
|
29
30
|
var value = structure[locationName];
|
30
31
|
var result = translate(value, memberShape);
|
31
32
|
if (result !== undefined) struct[name] = result;
|
33
|
+
} else if (isAwsQueryCompatible && memberShape.defaultValue) {
|
34
|
+
if (memberShape.type === 'list') {
|
35
|
+
struct[name] = typeof memberShape.defaultValue === 'function' ? memberShape.defaultValue() : memberShape.defaultValue;
|
36
|
+
}
|
32
37
|
}
|
33
38
|
});
|
34
39
|
return struct;
|