@aws-sdk/client-serverlessapplicationrepository 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +63 -86
- package/dist-es/protocols/Aws_restJson1.js +29 -52
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-serverlessapplicationrepository
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-serverlessapplicationrepository
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -13,24 +13,21 @@ const serializeAws_restJson1CreateApplicationCommand = async (input, context) =>
|
|
|
13
13
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
|
-
...(input.Author
|
|
17
|
-
...(input.Description
|
|
18
|
-
...(input.HomePageUrl
|
|
19
|
-
...(input.Labels
|
|
20
|
-
|
|
21
|
-
...(input.
|
|
22
|
-
...(input.
|
|
23
|
-
...(input.
|
|
24
|
-
...(input.
|
|
25
|
-
...(input.
|
|
26
|
-
...(input.
|
|
27
|
-
|
|
28
|
-
...(input.
|
|
29
|
-
|
|
30
|
-
...(input.
|
|
31
|
-
...(input.SpdxLicenseId !== undefined && input.SpdxLicenseId !== null && { spdxLicenseId: input.SpdxLicenseId }),
|
|
32
|
-
...(input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody }),
|
|
33
|
-
...(input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl }),
|
|
16
|
+
...(input.Author != null && { author: input.Author }),
|
|
17
|
+
...(input.Description != null && { description: input.Description }),
|
|
18
|
+
...(input.HomePageUrl != null && { homePageUrl: input.HomePageUrl }),
|
|
19
|
+
...(input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) }),
|
|
20
|
+
...(input.LicenseBody != null && { licenseBody: input.LicenseBody }),
|
|
21
|
+
...(input.LicenseUrl != null && { licenseUrl: input.LicenseUrl }),
|
|
22
|
+
...(input.Name != null && { name: input.Name }),
|
|
23
|
+
...(input.ReadmeBody != null && { readmeBody: input.ReadmeBody }),
|
|
24
|
+
...(input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl }),
|
|
25
|
+
...(input.SemanticVersion != null && { semanticVersion: input.SemanticVersion }),
|
|
26
|
+
...(input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl }),
|
|
27
|
+
...(input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl }),
|
|
28
|
+
...(input.SpdxLicenseId != null && { spdxLicenseId: input.SpdxLicenseId }),
|
|
29
|
+
...(input.TemplateBody != null && { templateBody: input.TemplateBody }),
|
|
30
|
+
...(input.TemplateUrl != null && { templateUrl: input.TemplateUrl }),
|
|
34
31
|
});
|
|
35
32
|
return new protocol_http_1.HttpRequest({
|
|
36
33
|
protocol,
|
|
@@ -72,11 +69,10 @@ const serializeAws_restJson1CreateApplicationVersionCommand = async (input, cont
|
|
|
72
69
|
}
|
|
73
70
|
let body;
|
|
74
71
|
body = JSON.stringify({
|
|
75
|
-
...(input.SourceCodeArchiveUrl
|
|
76
|
-
|
|
77
|
-
...(input.
|
|
78
|
-
...(input.
|
|
79
|
-
...(input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl }),
|
|
72
|
+
...(input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl }),
|
|
73
|
+
...(input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl }),
|
|
74
|
+
...(input.TemplateBody != null && { templateBody: input.TemplateBody }),
|
|
75
|
+
...(input.TemplateUrl != null && { templateUrl: input.TemplateUrl }),
|
|
80
76
|
});
|
|
81
77
|
return new protocol_http_1.HttpRequest({
|
|
82
78
|
protocol,
|
|
@@ -107,35 +103,28 @@ const serializeAws_restJson1CreateCloudFormationChangeSetCommand = async (input,
|
|
|
107
103
|
}
|
|
108
104
|
let body;
|
|
109
105
|
body = JSON.stringify({
|
|
110
|
-
...(input.Capabilities
|
|
111
|
-
input.Capabilities !== null && {
|
|
106
|
+
...(input.Capabilities != null && {
|
|
112
107
|
capabilities: serializeAws_restJson1__listOf__string(input.Capabilities, context),
|
|
113
108
|
}),
|
|
114
|
-
...(input.ChangeSetName
|
|
115
|
-
...(input.ClientToken
|
|
116
|
-
...(input.Description
|
|
117
|
-
...(input.NotificationArns
|
|
118
|
-
input.NotificationArns !== null && {
|
|
109
|
+
...(input.ChangeSetName != null && { changeSetName: input.ChangeSetName }),
|
|
110
|
+
...(input.ClientToken != null && { clientToken: input.ClientToken }),
|
|
111
|
+
...(input.Description != null && { description: input.Description }),
|
|
112
|
+
...(input.NotificationArns != null && {
|
|
119
113
|
notificationArns: serializeAws_restJson1__listOf__string(input.NotificationArns, context),
|
|
120
114
|
}),
|
|
121
|
-
...(input.ParameterOverrides
|
|
122
|
-
input.ParameterOverrides !== null && {
|
|
115
|
+
...(input.ParameterOverrides != null && {
|
|
123
116
|
parameterOverrides: serializeAws_restJson1__listOfParameterValue(input.ParameterOverrides, context),
|
|
124
117
|
}),
|
|
125
|
-
...(input.ResourceTypes
|
|
126
|
-
input.ResourceTypes !== null && {
|
|
118
|
+
...(input.ResourceTypes != null && {
|
|
127
119
|
resourceTypes: serializeAws_restJson1__listOf__string(input.ResourceTypes, context),
|
|
128
120
|
}),
|
|
129
|
-
...(input.RollbackConfiguration
|
|
130
|
-
input.RollbackConfiguration !== null && {
|
|
121
|
+
...(input.RollbackConfiguration != null && {
|
|
131
122
|
rollbackConfiguration: serializeAws_restJson1RollbackConfiguration(input.RollbackConfiguration, context),
|
|
132
123
|
}),
|
|
133
|
-
...(input.SemanticVersion
|
|
134
|
-
|
|
135
|
-
...(input.
|
|
136
|
-
...(input.
|
|
137
|
-
input.Tags !== null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) }),
|
|
138
|
-
...(input.TemplateId !== undefined && input.TemplateId !== null && { templateId: input.TemplateId }),
|
|
124
|
+
...(input.SemanticVersion != null && { semanticVersion: input.SemanticVersion }),
|
|
125
|
+
...(input.StackName != null && { stackName: input.StackName }),
|
|
126
|
+
...(input.Tags != null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) }),
|
|
127
|
+
...(input.TemplateId != null && { templateId: input.TemplateId }),
|
|
139
128
|
});
|
|
140
129
|
return new protocol_http_1.HttpRequest({
|
|
141
130
|
protocol,
|
|
@@ -166,8 +155,7 @@ const serializeAws_restJson1CreateCloudFormationTemplateCommand = async (input,
|
|
|
166
155
|
}
|
|
167
156
|
let body;
|
|
168
157
|
body = JSON.stringify({
|
|
169
|
-
...(input.SemanticVersion
|
|
170
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion }),
|
|
158
|
+
...(input.SemanticVersion != null && { semanticVersion: input.SemanticVersion }),
|
|
171
159
|
});
|
|
172
160
|
return new protocol_http_1.HttpRequest({
|
|
173
161
|
protocol,
|
|
@@ -402,8 +390,7 @@ const serializeAws_restJson1PutApplicationPolicyCommand = async (input, context)
|
|
|
402
390
|
}
|
|
403
391
|
let body;
|
|
404
392
|
body = JSON.stringify({
|
|
405
|
-
...(input.Statements
|
|
406
|
-
input.Statements !== null && {
|
|
393
|
+
...(input.Statements != null && {
|
|
407
394
|
statements: serializeAws_restJson1__listOfApplicationPolicyStatement(input.Statements, context),
|
|
408
395
|
}),
|
|
409
396
|
});
|
|
@@ -436,8 +423,7 @@ const serializeAws_restJson1UnshareApplicationCommand = async (input, context) =
|
|
|
436
423
|
}
|
|
437
424
|
let body;
|
|
438
425
|
body = JSON.stringify({
|
|
439
|
-
...(input.OrganizationId
|
|
440
|
-
input.OrganizationId !== null && { organizationId: input.OrganizationId }),
|
|
426
|
+
...(input.OrganizationId != null && { organizationId: input.OrganizationId }),
|
|
441
427
|
});
|
|
442
428
|
return new protocol_http_1.HttpRequest({
|
|
443
429
|
protocol,
|
|
@@ -468,13 +454,12 @@ const serializeAws_restJson1UpdateApplicationCommand = async (input, context) =>
|
|
|
468
454
|
}
|
|
469
455
|
let body;
|
|
470
456
|
body = JSON.stringify({
|
|
471
|
-
...(input.Author
|
|
472
|
-
...(input.Description
|
|
473
|
-
...(input.HomePageUrl
|
|
474
|
-
...(input.Labels
|
|
475
|
-
|
|
476
|
-
...(input.
|
|
477
|
-
...(input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl }),
|
|
457
|
+
...(input.Author != null && { author: input.Author }),
|
|
458
|
+
...(input.Description != null && { description: input.Description }),
|
|
459
|
+
...(input.HomePageUrl != null && { homePageUrl: input.HomePageUrl }),
|
|
460
|
+
...(input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) }),
|
|
461
|
+
...(input.ReadmeBody != null && { readmeBody: input.ReadmeBody }),
|
|
462
|
+
...(input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl }),
|
|
478
463
|
});
|
|
479
464
|
return new protocol_http_1.HttpRequest({
|
|
480
465
|
protocol,
|
|
@@ -1569,43 +1554,38 @@ const serializeAws_restJson1__listOfTag = (input, context) => {
|
|
|
1569
1554
|
};
|
|
1570
1555
|
const serializeAws_restJson1ApplicationPolicyStatement = (input, context) => {
|
|
1571
1556
|
return {
|
|
1572
|
-
...(input.Actions
|
|
1573
|
-
|
|
1574
|
-
...(input.PrincipalOrgIDs !== undefined &&
|
|
1575
|
-
input.PrincipalOrgIDs !== null && {
|
|
1557
|
+
...(input.Actions != null && { actions: serializeAws_restJson1__listOf__string(input.Actions, context) }),
|
|
1558
|
+
...(input.PrincipalOrgIDs != null && {
|
|
1576
1559
|
principalOrgIDs: serializeAws_restJson1__listOf__string(input.PrincipalOrgIDs, context),
|
|
1577
1560
|
}),
|
|
1578
|
-
...(input.Principals
|
|
1579
|
-
|
|
1580
|
-
...(input.StatementId !== undefined && input.StatementId !== null && { statementId: input.StatementId }),
|
|
1561
|
+
...(input.Principals != null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) }),
|
|
1562
|
+
...(input.StatementId != null && { statementId: input.StatementId }),
|
|
1581
1563
|
};
|
|
1582
1564
|
};
|
|
1583
1565
|
const serializeAws_restJson1ParameterValue = (input, context) => {
|
|
1584
1566
|
return {
|
|
1585
|
-
...(input.Name
|
|
1586
|
-
...(input.Value
|
|
1567
|
+
...(input.Name != null && { name: input.Name }),
|
|
1568
|
+
...(input.Value != null && { value: input.Value }),
|
|
1587
1569
|
};
|
|
1588
1570
|
};
|
|
1589
1571
|
const serializeAws_restJson1RollbackConfiguration = (input, context) => {
|
|
1590
1572
|
return {
|
|
1591
|
-
...(input.MonitoringTimeInMinutes
|
|
1592
|
-
|
|
1593
|
-
...(input.RollbackTriggers !== undefined &&
|
|
1594
|
-
input.RollbackTriggers !== null && {
|
|
1573
|
+
...(input.MonitoringTimeInMinutes != null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes }),
|
|
1574
|
+
...(input.RollbackTriggers != null && {
|
|
1595
1575
|
rollbackTriggers: serializeAws_restJson1__listOfRollbackTrigger(input.RollbackTriggers, context),
|
|
1596
1576
|
}),
|
|
1597
1577
|
};
|
|
1598
1578
|
};
|
|
1599
1579
|
const serializeAws_restJson1RollbackTrigger = (input, context) => {
|
|
1600
1580
|
return {
|
|
1601
|
-
...(input.Arn
|
|
1602
|
-
...(input.Type
|
|
1581
|
+
...(input.Arn != null && { arn: input.Arn }),
|
|
1582
|
+
...(input.Type != null && { type: input.Type }),
|
|
1603
1583
|
};
|
|
1604
1584
|
};
|
|
1605
1585
|
const serializeAws_restJson1Tag = (input, context) => {
|
|
1606
1586
|
return {
|
|
1607
|
-
...(input.Key
|
|
1608
|
-
...(input.Value
|
|
1587
|
+
...(input.Key != null && { key: input.Key }),
|
|
1588
|
+
...(input.Value != null && { value: input.Value }),
|
|
1609
1589
|
};
|
|
1610
1590
|
};
|
|
1611
1591
|
const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
@@ -1693,15 +1673,11 @@ const deserializeAws_restJson1ApplicationDependencySummary = (output, context) =
|
|
|
1693
1673
|
};
|
|
1694
1674
|
const deserializeAws_restJson1ApplicationPolicyStatement = (output, context) => {
|
|
1695
1675
|
return {
|
|
1696
|
-
Actions: output.actions
|
|
1697
|
-
|
|
1698
|
-
: undefined,
|
|
1699
|
-
PrincipalOrgIDs: output.principalOrgIDs !== undefined && output.principalOrgIDs !== null
|
|
1676
|
+
Actions: output.actions != null ? deserializeAws_restJson1__listOf__string(output.actions, context) : undefined,
|
|
1677
|
+
PrincipalOrgIDs: output.principalOrgIDs != null
|
|
1700
1678
|
? deserializeAws_restJson1__listOf__string(output.principalOrgIDs, context)
|
|
1701
1679
|
: undefined,
|
|
1702
|
-
Principals: output.principals
|
|
1703
|
-
? deserializeAws_restJson1__listOf__string(output.principals, context)
|
|
1704
|
-
: undefined,
|
|
1680
|
+
Principals: output.principals != null ? deserializeAws_restJson1__listOf__string(output.principals, context) : undefined,
|
|
1705
1681
|
StatementId: (0, smithy_client_1.expectString)(output.statementId),
|
|
1706
1682
|
};
|
|
1707
1683
|
};
|
|
@@ -1712,9 +1688,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1712
1688
|
CreationTime: (0, smithy_client_1.expectString)(output.creationTime),
|
|
1713
1689
|
Description: (0, smithy_client_1.expectString)(output.description),
|
|
1714
1690
|
HomePageUrl: (0, smithy_client_1.expectString)(output.homePageUrl),
|
|
1715
|
-
Labels: output.labels
|
|
1716
|
-
? deserializeAws_restJson1__listOf__string(output.labels, context)
|
|
1717
|
-
: undefined,
|
|
1691
|
+
Labels: output.labels != null ? deserializeAws_restJson1__listOf__string(output.labels, context) : undefined,
|
|
1718
1692
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
1719
1693
|
SpdxLicenseId: (0, smithy_client_1.expectString)(output.spdxLicenseId),
|
|
1720
1694
|
};
|
|
@@ -1722,7 +1696,7 @@ const deserializeAws_restJson1ApplicationSummary = (output, context) => {
|
|
|
1722
1696
|
const deserializeAws_restJson1ParameterDefinition = (output, context) => {
|
|
1723
1697
|
return {
|
|
1724
1698
|
AllowedPattern: (0, smithy_client_1.expectString)(output.allowedPattern),
|
|
1725
|
-
AllowedValues: output.allowedValues
|
|
1699
|
+
AllowedValues: output.allowedValues != null
|
|
1726
1700
|
? deserializeAws_restJson1__listOf__string(output.allowedValues, context)
|
|
1727
1701
|
: undefined,
|
|
1728
1702
|
ConstraintDescription: (0, smithy_client_1.expectString)(output.constraintDescription),
|
|
@@ -1734,7 +1708,7 @@ const deserializeAws_restJson1ParameterDefinition = (output, context) => {
|
|
|
1734
1708
|
MinValue: (0, smithy_client_1.expectInt32)(output.minValue),
|
|
1735
1709
|
Name: (0, smithy_client_1.expectString)(output.name),
|
|
1736
1710
|
NoEcho: (0, smithy_client_1.expectBoolean)(output.noEcho),
|
|
1737
|
-
ReferencedByResources: output.referencedByResources
|
|
1711
|
+
ReferencedByResources: output.referencedByResources != null
|
|
1738
1712
|
? deserializeAws_restJson1__listOf__string(output.referencedByResources, context)
|
|
1739
1713
|
: undefined,
|
|
1740
1714
|
Type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -1744,10 +1718,10 @@ const deserializeAws_restJson1Version = (output, context) => {
|
|
|
1744
1718
|
return {
|
|
1745
1719
|
ApplicationId: (0, smithy_client_1.expectString)(output.applicationId),
|
|
1746
1720
|
CreationTime: (0, smithy_client_1.expectString)(output.creationTime),
|
|
1747
|
-
ParameterDefinitions: output.parameterDefinitions
|
|
1721
|
+
ParameterDefinitions: output.parameterDefinitions != null
|
|
1748
1722
|
? deserializeAws_restJson1__listOfParameterDefinition(output.parameterDefinitions, context)
|
|
1749
1723
|
: undefined,
|
|
1750
|
-
RequiredCapabilities: output.requiredCapabilities
|
|
1724
|
+
RequiredCapabilities: output.requiredCapabilities != null
|
|
1751
1725
|
? deserializeAws_restJson1__listOfCapability(output.requiredCapabilities, context)
|
|
1752
1726
|
: undefined,
|
|
1753
1727
|
ResourcesSupported: (0, smithy_client_1.expectBoolean)(output.resourcesSupported),
|
|
@@ -1796,6 +1770,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1796
1770
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1797
1771
|
const sanitizeErrorCode = (rawValue) => {
|
|
1798
1772
|
let cleanValue = rawValue;
|
|
1773
|
+
if (typeof cleanValue === "number") {
|
|
1774
|
+
cleanValue = cleanValue.toString();
|
|
1775
|
+
}
|
|
1799
1776
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1800
1777
|
cleanValue = cleanValue.split(":")[0];
|
|
1801
1778
|
}
|
|
@@ -14,10 +14,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author
|
|
18
|
-
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody !== undefined && input.LicenseBody !== null && { licenseBody: input.LicenseBody })), (input.LicenseUrl !== undefined && input.LicenseUrl !== null && { licenseUrl: input.LicenseUrl })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion !== undefined &&
|
|
19
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl !== undefined &&
|
|
20
|
-
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.SpdxLicenseId !== undefined && input.SpdxLicenseId !== null && { spdxLicenseId: input.SpdxLicenseId })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author != null && { author: input.Author })), (input.Description != null && { description: input.Description })), (input.HomePageUrl != null && { homePageUrl: input.HomePageUrl })), (input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.LicenseBody != null && { licenseBody: input.LicenseBody })), (input.LicenseUrl != null && { licenseUrl: input.LicenseUrl })), (input.Name != null && { name: input.Name })), (input.ReadmeBody != null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl })), (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })), (input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl })), (input.SpdxLicenseId != null && { spdxLicenseId: input.SpdxLicenseId })), (input.TemplateBody != null && { templateBody: input.TemplateBody })), (input.TemplateUrl != null && { templateUrl: input.TemplateUrl })));
|
|
21
18
|
return [2, new __HttpRequest({
|
|
22
19
|
protocol: protocol,
|
|
23
20
|
hostname: hostname,
|
|
@@ -62,8 +59,7 @@ export var serializeAws_restJson1CreateApplicationVersionCommand = function (inp
|
|
|
62
59
|
else {
|
|
63
60
|
throw new Error("No value provided for input HTTP label: SemanticVersion.");
|
|
64
61
|
}
|
|
65
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.SourceCodeArchiveUrl
|
|
66
|
-
input.SourceCodeArchiveUrl !== null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl !== undefined && input.SourceCodeUrl !== null && { sourceCodeUrl: input.SourceCodeUrl })), (input.TemplateBody !== undefined && input.TemplateBody !== null && { templateBody: input.TemplateBody })), (input.TemplateUrl !== undefined && input.TemplateUrl !== null && { templateUrl: input.TemplateUrl })));
|
|
62
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.SourceCodeArchiveUrl != null && { sourceCodeArchiveUrl: input.SourceCodeArchiveUrl })), (input.SourceCodeUrl != null && { sourceCodeUrl: input.SourceCodeUrl })), (input.TemplateBody != null && { templateBody: input.TemplateBody })), (input.TemplateUrl != null && { templateUrl: input.TemplateUrl })));
|
|
67
63
|
return [2, new __HttpRequest({
|
|
68
64
|
protocol: protocol,
|
|
69
65
|
hostname: hostname,
|
|
@@ -97,24 +93,17 @@ export var serializeAws_restJson1CreateCloudFormationChangeSetCommand = function
|
|
|
97
93
|
else {
|
|
98
94
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
99
95
|
}
|
|
100
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities
|
|
101
|
-
input.Capabilities !== null && {
|
|
96
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Capabilities != null && {
|
|
102
97
|
capabilities: serializeAws_restJson1__listOf__string(input.Capabilities, context),
|
|
103
|
-
})), (input.ChangeSetName
|
|
104
|
-
input.NotificationArns !== null && {
|
|
98
|
+
})), (input.ChangeSetName != null && { changeSetName: input.ChangeSetName })), (input.ClientToken != null && { clientToken: input.ClientToken })), (input.Description != null && { description: input.Description })), (input.NotificationArns != null && {
|
|
105
99
|
notificationArns: serializeAws_restJson1__listOf__string(input.NotificationArns, context),
|
|
106
|
-
})), (input.ParameterOverrides
|
|
107
|
-
input.ParameterOverrides !== null && {
|
|
100
|
+
})), (input.ParameterOverrides != null && {
|
|
108
101
|
parameterOverrides: serializeAws_restJson1__listOfParameterValue(input.ParameterOverrides, context),
|
|
109
|
-
})), (input.ResourceTypes
|
|
110
|
-
input.ResourceTypes !== null && {
|
|
102
|
+
})), (input.ResourceTypes != null && {
|
|
111
103
|
resourceTypes: serializeAws_restJson1__listOf__string(input.ResourceTypes, context),
|
|
112
|
-
})), (input.RollbackConfiguration
|
|
113
|
-
input.RollbackConfiguration !== null && {
|
|
104
|
+
})), (input.RollbackConfiguration != null && {
|
|
114
105
|
rollbackConfiguration: serializeAws_restJson1RollbackConfiguration(input.RollbackConfiguration, context),
|
|
115
|
-
})), (input.SemanticVersion
|
|
116
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })), (input.StackName !== undefined && input.StackName !== null && { stackName: input.StackName })), (input.Tags !== undefined &&
|
|
117
|
-
input.Tags !== null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) })), (input.TemplateId !== undefined && input.TemplateId !== null && { templateId: input.TemplateId })));
|
|
106
|
+
})), (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })), (input.StackName != null && { stackName: input.StackName })), (input.Tags != null && { tags: serializeAws_restJson1__listOfTag(input.Tags, context) })), (input.TemplateId != null && { templateId: input.TemplateId })));
|
|
118
107
|
return [2, new __HttpRequest({
|
|
119
108
|
protocol: protocol,
|
|
120
109
|
hostname: hostname,
|
|
@@ -148,8 +137,7 @@ export var serializeAws_restJson1CreateCloudFormationTemplateCommand = function
|
|
|
148
137
|
else {
|
|
149
138
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
150
139
|
}
|
|
151
|
-
body = JSON.stringify(__assign({}, (input.SemanticVersion
|
|
152
|
-
input.SemanticVersion !== null && { semanticVersion: input.SemanticVersion })));
|
|
140
|
+
body = JSON.stringify(__assign({}, (input.SemanticVersion != null && { semanticVersion: input.SemanticVersion })));
|
|
153
141
|
return [2, new __HttpRequest({
|
|
154
142
|
protocol: protocol,
|
|
155
143
|
hostname: hostname,
|
|
@@ -410,8 +398,7 @@ export var serializeAws_restJson1PutApplicationPolicyCommand = function (input,
|
|
|
410
398
|
else {
|
|
411
399
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
412
400
|
}
|
|
413
|
-
body = JSON.stringify(__assign({}, (input.Statements
|
|
414
|
-
input.Statements !== null && {
|
|
401
|
+
body = JSON.stringify(__assign({}, (input.Statements != null && {
|
|
415
402
|
statements: serializeAws_restJson1__listOfApplicationPolicyStatement(input.Statements, context),
|
|
416
403
|
})));
|
|
417
404
|
return [2, new __HttpRequest({
|
|
@@ -447,8 +434,7 @@ export var serializeAws_restJson1UnshareApplicationCommand = function (input, co
|
|
|
447
434
|
else {
|
|
448
435
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
449
436
|
}
|
|
450
|
-
body = JSON.stringify(__assign({}, (input.OrganizationId
|
|
451
|
-
input.OrganizationId !== null && { organizationId: input.OrganizationId })));
|
|
437
|
+
body = JSON.stringify(__assign({}, (input.OrganizationId != null && { organizationId: input.OrganizationId })));
|
|
452
438
|
return [2, new __HttpRequest({
|
|
453
439
|
protocol: protocol,
|
|
454
440
|
hostname: hostname,
|
|
@@ -482,8 +468,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
482
468
|
else {
|
|
483
469
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
484
470
|
}
|
|
485
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author
|
|
486
|
-
input.Labels !== null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.ReadmeBody !== undefined && input.ReadmeBody !== null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl !== undefined && input.ReadmeUrl !== null && { readmeUrl: input.ReadmeUrl })));
|
|
471
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Author != null && { author: input.Author })), (input.Description != null && { description: input.Description })), (input.HomePageUrl != null && { homePageUrl: input.HomePageUrl })), (input.Labels != null && { labels: serializeAws_restJson1__listOf__string(input.Labels, context) })), (input.ReadmeBody != null && { readmeBody: input.ReadmeBody })), (input.ReadmeUrl != null && { readmeUrl: input.ReadmeUrl })));
|
|
487
472
|
return [2, new __HttpRequest({
|
|
488
473
|
protocol: protocol,
|
|
489
474
|
hostname: hostname,
|
|
@@ -1895,28 +1880,23 @@ var serializeAws_restJson1__listOfTag = function (input, context) {
|
|
|
1895
1880
|
});
|
|
1896
1881
|
};
|
|
1897
1882
|
var serializeAws_restJson1ApplicationPolicyStatement = function (input, context) {
|
|
1898
|
-
return __assign(__assign(__assign(__assign({}, (input.Actions
|
|
1899
|
-
input.Actions !== null && { actions: serializeAws_restJson1__listOf__string(input.Actions, context) })), (input.PrincipalOrgIDs !== undefined &&
|
|
1900
|
-
input.PrincipalOrgIDs !== null && {
|
|
1883
|
+
return __assign(__assign(__assign(__assign({}, (input.Actions != null && { actions: serializeAws_restJson1__listOf__string(input.Actions, context) })), (input.PrincipalOrgIDs != null && {
|
|
1901
1884
|
principalOrgIDs: serializeAws_restJson1__listOf__string(input.PrincipalOrgIDs, context),
|
|
1902
|
-
})), (input.Principals
|
|
1903
|
-
input.Principals !== null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) })), (input.StatementId !== undefined && input.StatementId !== null && { statementId: input.StatementId }));
|
|
1885
|
+
})), (input.Principals != null && { principals: serializeAws_restJson1__listOf__string(input.Principals, context) })), (input.StatementId != null && { statementId: input.StatementId }));
|
|
1904
1886
|
};
|
|
1905
1887
|
var serializeAws_restJson1ParameterValue = function (input, context) {
|
|
1906
|
-
return __assign(__assign({}, (input.Name
|
|
1888
|
+
return __assign(__assign({}, (input.Name != null && { name: input.Name })), (input.Value != null && { value: input.Value }));
|
|
1907
1889
|
};
|
|
1908
1890
|
var serializeAws_restJson1RollbackConfiguration = function (input, context) {
|
|
1909
|
-
return __assign(__assign({}, (input.MonitoringTimeInMinutes
|
|
1910
|
-
input.MonitoringTimeInMinutes !== null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes })), (input.RollbackTriggers !== undefined &&
|
|
1911
|
-
input.RollbackTriggers !== null && {
|
|
1891
|
+
return __assign(__assign({}, (input.MonitoringTimeInMinutes != null && { monitoringTimeInMinutes: input.MonitoringTimeInMinutes })), (input.RollbackTriggers != null && {
|
|
1912
1892
|
rollbackTriggers: serializeAws_restJson1__listOfRollbackTrigger(input.RollbackTriggers, context),
|
|
1913
1893
|
}));
|
|
1914
1894
|
};
|
|
1915
1895
|
var serializeAws_restJson1RollbackTrigger = function (input, context) {
|
|
1916
|
-
return __assign(__assign({}, (input.Arn
|
|
1896
|
+
return __assign(__assign({}, (input.Arn != null && { arn: input.Arn })), (input.Type != null && { type: input.Type }));
|
|
1917
1897
|
};
|
|
1918
1898
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
1919
|
-
return __assign(__assign({}, (input.Key
|
|
1899
|
+
return __assign(__assign({}, (input.Key != null && { key: input.Key })), (input.Value != null && { value: input.Value }));
|
|
1920
1900
|
};
|
|
1921
1901
|
var deserializeAws_restJson1__listOf__string = function (output, context) {
|
|
1922
1902
|
var retVal = (output || [])
|
|
@@ -2003,15 +1983,11 @@ var deserializeAws_restJson1ApplicationDependencySummary = function (output, con
|
|
|
2003
1983
|
};
|
|
2004
1984
|
var deserializeAws_restJson1ApplicationPolicyStatement = function (output, context) {
|
|
2005
1985
|
return {
|
|
2006
|
-
Actions: output.actions
|
|
2007
|
-
|
|
2008
|
-
: undefined,
|
|
2009
|
-
PrincipalOrgIDs: output.principalOrgIDs !== undefined && output.principalOrgIDs !== null
|
|
1986
|
+
Actions: output.actions != null ? deserializeAws_restJson1__listOf__string(output.actions, context) : undefined,
|
|
1987
|
+
PrincipalOrgIDs: output.principalOrgIDs != null
|
|
2010
1988
|
? deserializeAws_restJson1__listOf__string(output.principalOrgIDs, context)
|
|
2011
1989
|
: undefined,
|
|
2012
|
-
Principals: output.principals
|
|
2013
|
-
? deserializeAws_restJson1__listOf__string(output.principals, context)
|
|
2014
|
-
: undefined,
|
|
1990
|
+
Principals: output.principals != null ? deserializeAws_restJson1__listOf__string(output.principals, context) : undefined,
|
|
2015
1991
|
StatementId: __expectString(output.statementId),
|
|
2016
1992
|
};
|
|
2017
1993
|
};
|
|
@@ -2022,9 +1998,7 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
|
2022
1998
|
CreationTime: __expectString(output.creationTime),
|
|
2023
1999
|
Description: __expectString(output.description),
|
|
2024
2000
|
HomePageUrl: __expectString(output.homePageUrl),
|
|
2025
|
-
Labels: output.labels
|
|
2026
|
-
? deserializeAws_restJson1__listOf__string(output.labels, context)
|
|
2027
|
-
: undefined,
|
|
2001
|
+
Labels: output.labels != null ? deserializeAws_restJson1__listOf__string(output.labels, context) : undefined,
|
|
2028
2002
|
Name: __expectString(output.name),
|
|
2029
2003
|
SpdxLicenseId: __expectString(output.spdxLicenseId),
|
|
2030
2004
|
};
|
|
@@ -2032,7 +2006,7 @@ var deserializeAws_restJson1ApplicationSummary = function (output, context) {
|
|
|
2032
2006
|
var deserializeAws_restJson1ParameterDefinition = function (output, context) {
|
|
2033
2007
|
return {
|
|
2034
2008
|
AllowedPattern: __expectString(output.allowedPattern),
|
|
2035
|
-
AllowedValues: output.allowedValues
|
|
2009
|
+
AllowedValues: output.allowedValues != null
|
|
2036
2010
|
? deserializeAws_restJson1__listOf__string(output.allowedValues, context)
|
|
2037
2011
|
: undefined,
|
|
2038
2012
|
ConstraintDescription: __expectString(output.constraintDescription),
|
|
@@ -2044,7 +2018,7 @@ var deserializeAws_restJson1ParameterDefinition = function (output, context) {
|
|
|
2044
2018
|
MinValue: __expectInt32(output.minValue),
|
|
2045
2019
|
Name: __expectString(output.name),
|
|
2046
2020
|
NoEcho: __expectBoolean(output.noEcho),
|
|
2047
|
-
ReferencedByResources: output.referencedByResources
|
|
2021
|
+
ReferencedByResources: output.referencedByResources != null
|
|
2048
2022
|
? deserializeAws_restJson1__listOf__string(output.referencedByResources, context)
|
|
2049
2023
|
: undefined,
|
|
2050
2024
|
Type: __expectString(output.type),
|
|
@@ -2054,10 +2028,10 @@ var deserializeAws_restJson1Version = function (output, context) {
|
|
|
2054
2028
|
return {
|
|
2055
2029
|
ApplicationId: __expectString(output.applicationId),
|
|
2056
2030
|
CreationTime: __expectString(output.creationTime),
|
|
2057
|
-
ParameterDefinitions: output.parameterDefinitions
|
|
2031
|
+
ParameterDefinitions: output.parameterDefinitions != null
|
|
2058
2032
|
? deserializeAws_restJson1__listOfParameterDefinition(output.parameterDefinitions, context)
|
|
2059
2033
|
: undefined,
|
|
2060
|
-
RequiredCapabilities: output.requiredCapabilities
|
|
2034
|
+
RequiredCapabilities: output.requiredCapabilities != null
|
|
2061
2035
|
? deserializeAws_restJson1__listOfCapability(output.requiredCapabilities, context)
|
|
2062
2036
|
: undefined,
|
|
2063
2037
|
ResourcesSupported: __expectBoolean(output.resourcesSupported),
|
|
@@ -2113,6 +2087,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2113
2087
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
2114
2088
|
var sanitizeErrorCode = function (rawValue) {
|
|
2115
2089
|
var cleanValue = rawValue;
|
|
2090
|
+
if (typeof cleanValue === "number") {
|
|
2091
|
+
cleanValue = cleanValue.toString();
|
|
2092
|
+
}
|
|
2116
2093
|
if (cleanValue.indexOf(":") >= 0) {
|
|
2117
2094
|
cleanValue = cleanValue.split(":")[0];
|
|
2118
2095
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-serverlessapplicationrepository",
|
|
3
3
|
"description": "AWS SDK for JavaScript Serverlessapplicationrepository Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|