@aws-sdk/client-marketplace-catalog
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0-gamma.1
169
CHANGELOG.md
@@ -6,2 +6,171 @@ # Change Log | ||
# 1.0.0-gamma.1 (2020-05-21) | ||
### Bug Fixes | ||
* add default value to stream collector ([#1131](https://github.com/aws/aws-sdk-js-v3/issues/1131)) ([030082a](https://github.com/aws/aws-sdk-js-v3/commit/030082a0378f873da34c5381c7889754c5bde9d3)) | ||
* use JS url parser in ReactNative ([#1129](https://github.com/aws/aws-sdk-js-v3/issues/1129)) ([efc8570](https://github.com/aws/aws-sdk-js-v3/commit/efc8570af4019ce4f07a94afde82661ad64bf3d4)) | ||
### Features | ||
* bump up to gamma version ([#1192](https://github.com/aws/aws-sdk-js-v3/issues/1192)) ([a609075](https://github.com/aws/aws-sdk-js-v3/commit/a6090754f2a6c21e5b70bf0c8782cc0fbe59ee12)) | ||
* refactor http request handlers ([#1186](https://github.com/aws/aws-sdk-js-v3/issues/1186)) ([605ebc5](https://github.com/aws/aws-sdk-js-v3/commit/605ebc57d2ec140ae5dd1c152168ec786e6663d9)) | ||
# 1.0.0-beta.4 (2020-04-25) | ||
### Bug Fixes | ||
* move endpoint resolution to the serializers ([#1106](https://github.com/aws/aws-sdk-js-v3/issues/1106)) ([08c9420](https://github.com/aws/aws-sdk-js-v3/commit/08c9420db1ba9c3faf3ed26aa1244646bacff1d1)) | ||
* request default endpoints from serde context being overwritten ([#1097](https://github.com/aws/aws-sdk-js-v3/issues/1097)) ([299d2a1](https://github.com/aws/aws-sdk-js-v3/commit/299d2a19bddfbab1b70552fd7a6b669ef7762288)) | ||
### Features | ||
* add default destroy function to clients ([#1081](https://github.com/aws/aws-sdk-js-v3/issues/1081)) ([7eb0f0e](https://github.com/aws/aws-sdk-js-v3/commit/7eb0f0e5debfafe08c51dc4f99dcf29d79dea358)) | ||
* codegen for issue fixed in protocol test ([#1086](https://github.com/aws/aws-sdk-js-v3/issues/1086)) ([8e077c7](https://github.com/aws/aws-sdk-js-v3/commit/8e077c7f1c1363a3a1f8522e6ee793bd57546c0e)) | ||
# 1.0.0-beta.3 (2020-03-30) | ||
# 1.0.0-beta.2 (2020-03-28) | ||
# 1.0.0-beta.1 (2020-03-25) | ||
### Features | ||
* bump packages to beta ([#1050](https://github.com/aws/aws-sdk-js-v3/issues/1050)) ([40501d4](https://github.com/aws/aws-sdk-js-v3/commit/40501d4394d04bc1bc91c10136fa48b1d3a67d8f)) | ||
# 1.0.0-alpha.28 (2020-03-20) | ||
# 1.0.0-alpha.27 (2020-03-13) | ||
### Bug Fixes | ||
* codegen for using pure JS hasher in RN ([#998](https://github.com/aws/aws-sdk-js-v3/issues/998)) ([022cba5](https://github.com/aws/aws-sdk-js-v3/commit/022cba59168998bea8a263687395d27eae375d30)), closes [awslabs/smithy-typescript#144](https://github.com/awslabs/smithy-typescript/issues/144) | ||
# 1.0.0-alpha.26 (2020-03-12) | ||
# 1.0.0-alpha.25 (2020-03-09) | ||
### Features | ||
* codegen for fixing protocol tests([#968](https://github.com/aws/aws-sdk-js-v3/issues/968)) ([15a66c7](https://github.com/aws/aws-sdk-js-v3/commit/15a66c720f49884087126d6d573c64b6a4a16dc5)), closes [awslabls/smithy-typescript#141](https://github.com/awslabls/smithy-typescript/issues/141) | ||
* codegen for fixing streaming member shape([#968](https://github.com/aws/aws-sdk-js-v3/issues/968)) ([c7f13dc](https://github.com/aws/aws-sdk-js-v3/commit/c7f13dc0eda6217452bd37b1b7fa04bcc931deab)), closes [awslabs/smithy-typescript#138](https://github.com/awslabs/smithy-typescript/issues/138) [awslabs/smithy-typescript#140](https://github.com/awslabs/smithy-typescript/issues/140) | ||
# 1.0.0-alpha.24 (2020-02-19) | ||
# 1.0.0-alpha.23 (2020-02-14) | ||
# 1.0.0-alpha.22 (2020-02-11) | ||
# 1.0.0-alpha.21 (2020-02-11) | ||
# 1.0.0-alpha.20 (2020-02-09) | ||
# 1.0.0-alpha.19 (2020-02-07) | ||
# 1.0.0-alpha.18 (2020-02-06) | ||
# 1.0.0-alpha.17 (2020-02-05) | ||
# 1.0.0-alpha.16 (2020-02-04) | ||
# 1.0.0-alpha.14 (2020-01-28) | ||
# 1.0.0-alpha.13 (2020-01-24) | ||
# 1.0.0-alpha.12 (2020-01-22) | ||
# 1.0.0-alpha.9 (2020-01-17) | ||
# 1.0.0-alpha.8 (2020-01-16) | ||
# 1.0.0-alpha.4 (2020-01-14) | ||
# 1.0.0-alpha.3 (2020-01-14) | ||
### Bug Fixes | ||
* update clients with correct endpoint prefix ([#720](https://github.com/aws/aws-sdk-js-v3/issues/720)) ([5356dbb](https://github.com/aws/aws-sdk-js-v3/commit/5356dbb235cebf6cc8d4e073b517a78621fa7eaf)) | ||
# 1.0.0-alpha.2 (2020-01-10) | ||
### Features | ||
* update clients ([#717](https://github.com/aws/aws-sdk-js-v3/issues/717)) ([dc9464f](https://github.com/aws/aws-sdk-js-v3/commit/dc9464fb0374a8a3ba5a344f6b8c6aea5c85f2a2)), closes [#694](https://github.com/aws/aws-sdk-js-v3/issues/694) [smithy-typescript#66](https://github.com/smithy-typescript/issues/66) [smithy-typescript#87](https://github.com/smithy-typescript/issues/87) | ||
# 1.0.0-alpha.1 (2020-01-10) | ||
# 0.9.0 (2020-01-09) | ||
### Features | ||
* add client-marketplace-catalog ([#643](https://github.com/aws/aws-sdk-js-v3/issues/643)) ([0cb953f](https://github.com/aws/aws-sdk-js-v3/commit/0cb953f30ebf18707242938aff5231f138ee3aa2)) | ||
# 1.0.0-beta.5 (2020-04-27) | ||
@@ -8,0 +177,0 @@ |
@@ -37,5 +37,7 @@ "use strict"; | ||
} | ||
destroy() { } | ||
destroy() { | ||
super.destroy(); | ||
} | ||
} | ||
exports.MarketplaceCatalogClient = MarketplaceCatalogClient; | ||
//# sourceMappingURL=MarketplaceCatalogClient.js.map |
@@ -6,34 +6,19 @@ "use strict"; | ||
(function (AccessDeniedException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "AccessDeniedException"); | ||
} | ||
AccessDeniedException.isa = isa; | ||
AccessDeniedException.isa = (o) => smithy_client_1.isa(o, "AccessDeniedException"); | ||
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {})); | ||
var CancelChangeSetRequest; | ||
(function (CancelChangeSetRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "CancelChangeSetRequest"); | ||
} | ||
CancelChangeSetRequest.isa = isa; | ||
CancelChangeSetRequest.isa = (o) => smithy_client_1.isa(o, "CancelChangeSetRequest"); | ||
})(CancelChangeSetRequest = exports.CancelChangeSetRequest || (exports.CancelChangeSetRequest = {})); | ||
var CancelChangeSetResponse; | ||
(function (CancelChangeSetResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "CancelChangeSetResponse"); | ||
} | ||
CancelChangeSetResponse.isa = isa; | ||
CancelChangeSetResponse.isa = (o) => smithy_client_1.isa(o, "CancelChangeSetResponse"); | ||
})(CancelChangeSetResponse = exports.CancelChangeSetResponse || (exports.CancelChangeSetResponse = {})); | ||
var Change; | ||
(function (Change) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "Change"); | ||
} | ||
Change.isa = isa; | ||
Change.isa = (o) => smithy_client_1.isa(o, "Change"); | ||
})(Change = exports.Change || (exports.Change = {})); | ||
var ChangeSetSummaryListItem; | ||
(function (ChangeSetSummaryListItem) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ChangeSetSummaryListItem"); | ||
} | ||
ChangeSetSummaryListItem.isa = isa; | ||
ChangeSetSummaryListItem.isa = (o) => smithy_client_1.isa(o, "ChangeSetSummaryListItem"); | ||
})(ChangeSetSummaryListItem = exports.ChangeSetSummaryListItem || (exports.ChangeSetSummaryListItem = {})); | ||
@@ -50,132 +35,75 @@ var ChangeStatus; | ||
(function (ChangeSummary) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ChangeSummary"); | ||
} | ||
ChangeSummary.isa = isa; | ||
ChangeSummary.isa = (o) => smithy_client_1.isa(o, "ChangeSummary"); | ||
})(ChangeSummary = exports.ChangeSummary || (exports.ChangeSummary = {})); | ||
var DescribeChangeSetRequest; | ||
(function (DescribeChangeSetRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "DescribeChangeSetRequest"); | ||
} | ||
DescribeChangeSetRequest.isa = isa; | ||
DescribeChangeSetRequest.isa = (o) => smithy_client_1.isa(o, "DescribeChangeSetRequest"); | ||
})(DescribeChangeSetRequest = exports.DescribeChangeSetRequest || (exports.DescribeChangeSetRequest = {})); | ||
var DescribeChangeSetResponse; | ||
(function (DescribeChangeSetResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "DescribeChangeSetResponse"); | ||
} | ||
DescribeChangeSetResponse.isa = isa; | ||
DescribeChangeSetResponse.isa = (o) => smithy_client_1.isa(o, "DescribeChangeSetResponse"); | ||
})(DescribeChangeSetResponse = exports.DescribeChangeSetResponse || (exports.DescribeChangeSetResponse = {})); | ||
var DescribeEntityRequest; | ||
(function (DescribeEntityRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "DescribeEntityRequest"); | ||
} | ||
DescribeEntityRequest.isa = isa; | ||
DescribeEntityRequest.isa = (o) => smithy_client_1.isa(o, "DescribeEntityRequest"); | ||
})(DescribeEntityRequest = exports.DescribeEntityRequest || (exports.DescribeEntityRequest = {})); | ||
var DescribeEntityResponse; | ||
(function (DescribeEntityResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "DescribeEntityResponse"); | ||
} | ||
DescribeEntityResponse.isa = isa; | ||
DescribeEntityResponse.isa = (o) => smithy_client_1.isa(o, "DescribeEntityResponse"); | ||
})(DescribeEntityResponse = exports.DescribeEntityResponse || (exports.DescribeEntityResponse = {})); | ||
var Entity; | ||
(function (Entity) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "Entity"); | ||
} | ||
Entity.isa = isa; | ||
Entity.isa = (o) => smithy_client_1.isa(o, "Entity"); | ||
})(Entity = exports.Entity || (exports.Entity = {})); | ||
var EntitySummary; | ||
(function (EntitySummary) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "EntitySummary"); | ||
} | ||
EntitySummary.isa = isa; | ||
EntitySummary.isa = (o) => smithy_client_1.isa(o, "EntitySummary"); | ||
})(EntitySummary = exports.EntitySummary || (exports.EntitySummary = {})); | ||
var ErrorDetail; | ||
(function (ErrorDetail) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ErrorDetail"); | ||
} | ||
ErrorDetail.isa = isa; | ||
ErrorDetail.isa = (o) => smithy_client_1.isa(o, "ErrorDetail"); | ||
})(ErrorDetail = exports.ErrorDetail || (exports.ErrorDetail = {})); | ||
var Filter; | ||
(function (Filter) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "Filter"); | ||
} | ||
Filter.isa = isa; | ||
Filter.isa = (o) => smithy_client_1.isa(o, "Filter"); | ||
})(Filter = exports.Filter || (exports.Filter = {})); | ||
var InternalServiceException; | ||
(function (InternalServiceException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "InternalServiceException"); | ||
} | ||
InternalServiceException.isa = isa; | ||
InternalServiceException.isa = (o) => smithy_client_1.isa(o, "InternalServiceException"); | ||
})(InternalServiceException = exports.InternalServiceException || (exports.InternalServiceException = {})); | ||
var ListChangeSetsRequest; | ||
(function (ListChangeSetsRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ListChangeSetsRequest"); | ||
} | ||
ListChangeSetsRequest.isa = isa; | ||
ListChangeSetsRequest.isa = (o) => smithy_client_1.isa(o, "ListChangeSetsRequest"); | ||
})(ListChangeSetsRequest = exports.ListChangeSetsRequest || (exports.ListChangeSetsRequest = {})); | ||
var ListChangeSetsResponse; | ||
(function (ListChangeSetsResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ListChangeSetsResponse"); | ||
} | ||
ListChangeSetsResponse.isa = isa; | ||
ListChangeSetsResponse.isa = (o) => smithy_client_1.isa(o, "ListChangeSetsResponse"); | ||
})(ListChangeSetsResponse = exports.ListChangeSetsResponse || (exports.ListChangeSetsResponse = {})); | ||
var ListEntitiesRequest; | ||
(function (ListEntitiesRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ListEntitiesRequest"); | ||
} | ||
ListEntitiesRequest.isa = isa; | ||
ListEntitiesRequest.isa = (o) => smithy_client_1.isa(o, "ListEntitiesRequest"); | ||
})(ListEntitiesRequest = exports.ListEntitiesRequest || (exports.ListEntitiesRequest = {})); | ||
var ListEntitiesResponse; | ||
(function (ListEntitiesResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ListEntitiesResponse"); | ||
} | ||
ListEntitiesResponse.isa = isa; | ||
ListEntitiesResponse.isa = (o) => smithy_client_1.isa(o, "ListEntitiesResponse"); | ||
})(ListEntitiesResponse = exports.ListEntitiesResponse || (exports.ListEntitiesResponse = {})); | ||
var ResourceInUseException; | ||
(function (ResourceInUseException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ResourceInUseException"); | ||
} | ||
ResourceInUseException.isa = isa; | ||
ResourceInUseException.isa = (o) => smithy_client_1.isa(o, "ResourceInUseException"); | ||
})(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {})); | ||
var ResourceNotFoundException; | ||
(function (ResourceNotFoundException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ResourceNotFoundException"); | ||
} | ||
ResourceNotFoundException.isa = isa; | ||
ResourceNotFoundException.isa = (o) => smithy_client_1.isa(o, "ResourceNotFoundException"); | ||
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {})); | ||
var ResourceNotSupportedException; | ||
(function (ResourceNotSupportedException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ResourceNotSupportedException"); | ||
} | ||
ResourceNotSupportedException.isa = isa; | ||
ResourceNotSupportedException.isa = (o) => smithy_client_1.isa(o, "ResourceNotSupportedException"); | ||
})(ResourceNotSupportedException = exports.ResourceNotSupportedException || (exports.ResourceNotSupportedException = {})); | ||
var ServiceQuotaExceededException; | ||
(function (ServiceQuotaExceededException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ServiceQuotaExceededException"); | ||
} | ||
ServiceQuotaExceededException.isa = isa; | ||
ServiceQuotaExceededException.isa = (o) => smithy_client_1.isa(o, "ServiceQuotaExceededException"); | ||
})(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {})); | ||
var Sort; | ||
(function (Sort) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "Sort"); | ||
} | ||
Sort.isa = isa; | ||
Sort.isa = (o) => smithy_client_1.isa(o, "Sort"); | ||
})(Sort = exports.Sort || (exports.Sort = {})); | ||
@@ -189,28 +117,16 @@ var SortOrder; | ||
(function (StartChangeSetRequest) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "StartChangeSetRequest"); | ||
} | ||
StartChangeSetRequest.isa = isa; | ||
StartChangeSetRequest.isa = (o) => smithy_client_1.isa(o, "StartChangeSetRequest"); | ||
})(StartChangeSetRequest = exports.StartChangeSetRequest || (exports.StartChangeSetRequest = {})); | ||
var StartChangeSetResponse; | ||
(function (StartChangeSetResponse) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "StartChangeSetResponse"); | ||
} | ||
StartChangeSetResponse.isa = isa; | ||
StartChangeSetResponse.isa = (o) => smithy_client_1.isa(o, "StartChangeSetResponse"); | ||
})(StartChangeSetResponse = exports.StartChangeSetResponse || (exports.StartChangeSetResponse = {})); | ||
var ThrottlingException; | ||
(function (ThrottlingException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ThrottlingException"); | ||
} | ||
ThrottlingException.isa = isa; | ||
ThrottlingException.isa = (o) => smithy_client_1.isa(o, "ThrottlingException"); | ||
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {})); | ||
var ValidationException; | ||
(function (ValidationException) { | ||
function isa(o) { | ||
return smithy_client_1.isa(o, "ValidationException"); | ||
} | ||
ValidationException.isa = isa; | ||
ValidationException.isa = (o) => smithy_client_1.isa(o, "ValidationException"); | ||
})(ValidationException = exports.ValidationException || (exports.ValidationException = {})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aws-sdk/client-marketplace-catalog", | ||
"description": "@aws-sdk/client-marketplace-catalog client", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-gamma.1", | ||
"scripts": { | ||
@@ -16,3 +16,2 @@ "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", | ||
"test": "exit 0", | ||
"smoke-test": "npm run pretest && node ./test/smoke/index.spec.js", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
@@ -34,32 +33,29 @@ "build": "yarn pretest && yarn build:es" | ||
"@aws-crypto/sha256-js": "^1.0.0-alpha.0", | ||
"@aws-sdk/config-resolver": "1.0.0-beta.4", | ||
"@aws-sdk/credential-provider-node": "1.0.0-beta.4", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/hash-node": "1.0.0-beta.4", | ||
"@aws-sdk/invalid-dependency": "1.0.0-beta.2", | ||
"@aws-sdk/middleware-content-length": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-host-header": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-retry": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-serde": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-signing": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-stack": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-beta.4", | ||
"@aws-sdk/node-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/protocol-http": "1.0.0-beta.4", | ||
"@aws-sdk/region-provider": "1.0.0-beta.4", | ||
"@aws-sdk/smithy-client": "1.0.0-beta.5", | ||
"@aws-sdk/stream-collector-browser": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-native": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-node": "1.0.0-beta.4", | ||
"@aws-sdk/types": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-browser": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-base64-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-base64-node": "1.0.0-beta.3", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-body-length-node": "1.0.0-beta.2", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-beta.4", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-utf8-node": "1.0.0-beta.3", | ||
"@aws-sdk/config-resolver": "1.0.0-gamma.1", | ||
"@aws-sdk/credential-provider-node": "1.0.0-gamma.1", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/hash-node": "1.0.0-gamma.1", | ||
"@aws-sdk/invalid-dependency": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-content-length": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-host-header": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-retry": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-serde": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-signing": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-stack": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-gamma.1", | ||
"@aws-sdk/node-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/protocol-http": "1.0.0-gamma.1", | ||
"@aws-sdk/region-provider": "1.0.0-gamma.1", | ||
"@aws-sdk/smithy-client": "1.0.0-gamma.1", | ||
"@aws-sdk/types": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-node": "1.0.0-gamma.1", | ||
"tslib": "^1.8.0" | ||
@@ -66,0 +62,0 @@ }, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const protocol_http_1 = require("@aws-sdk/protocol-http"); | ||
async function serializeAws_restJson1_1CancelChangeSetCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = ""; | ||
exports.serializeAws_restJson1_1CancelChangeSetCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/CancelChangeSet"; | ||
const query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
const query = Object.assign(Object.assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId })); | ||
let body; | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1CancelChangeSetCommand = serializeAws_restJson1_1CancelChangeSetCommand; | ||
async function serializeAws_restJson1_1DescribeChangeSetCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = ""; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "PATCH", | ||
headers, | ||
path: resolvedPath, | ||
query, | ||
body | ||
}); | ||
}; | ||
exports.serializeAws_restJson1_1DescribeChangeSetCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/DescribeChangeSet"; | ||
const query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
const query = Object.assign(Object.assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId })); | ||
let body; | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1DescribeChangeSetCommand = serializeAws_restJson1_1DescribeChangeSetCommand; | ||
async function serializeAws_restJson1_1DescribeEntityCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = ""; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "GET", | ||
headers, | ||
path: resolvedPath, | ||
query, | ||
body | ||
}); | ||
}; | ||
exports.serializeAws_restJson1_1DescribeEntityCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/DescribeEntity"; | ||
const query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.EntityId !== undefined) { | ||
query["entityId"] = input.EntityId; | ||
} | ||
const query = Object.assign(Object.assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.EntityId !== undefined && { entityId: input.EntityId })); | ||
let body; | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1DescribeEntityCommand = serializeAws_restJson1_1DescribeEntityCommand; | ||
async function serializeAws_restJson1_1ListChangeSetsCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "GET", | ||
headers, | ||
path: resolvedPath, | ||
query, | ||
body | ||
}); | ||
}; | ||
exports.serializeAws_restJson1_1ListChangeSetsCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/ListChangeSets"; | ||
let body; | ||
const bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList(input.FilterList, context); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1ListChangeSetsCommand = serializeAws_restJson1_1ListChangeSetsCommand; | ||
async function serializeAws_restJson1_1ListEntitiesCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
body = JSON.stringify(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
})), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}))); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers, | ||
path: resolvedPath, | ||
body | ||
}); | ||
}; | ||
exports.serializeAws_restJson1_1ListEntitiesCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/ListEntities"; | ||
let body; | ||
const bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.EntityType !== undefined) { | ||
bodyParams["EntityType"] = input.EntityType; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList(input.FilterList, context); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1ListEntitiesCommand = serializeAws_restJson1_1ListEntitiesCommand; | ||
async function serializeAws_restJson1_1StartChangeSetCommand(input, context) { | ||
const headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
body = JSON.stringify(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.EntityType !== undefined && { EntityType: input.EntityType })), (input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
})), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}))); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers, | ||
path: resolvedPath, | ||
body | ||
}); | ||
}; | ||
exports.serializeAws_restJson1_1StartChangeSetCommand = async (input, context) => { | ||
const headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/StartChangeSet"; | ||
let body; | ||
const bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSet !== undefined) { | ||
bodyParams["ChangeSet"] = serializeAws_restJson1_1RequestedChangeList(input.ChangeSet, context); | ||
} | ||
if (input.ChangeSetName !== undefined) { | ||
bodyParams["ChangeSetName"] = input.ChangeSetName; | ||
} | ||
if (input.ClientRequestToken !== undefined) { | ||
bodyParams["ClientRequestToken"] = input.ClientRequestToken; | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return new protocol_http_1.HttpRequest(Object.assign(Object.assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body })); | ||
} | ||
exports.serializeAws_restJson1_1StartChangeSetCommand = serializeAws_restJson1_1StartChangeSetCommand; | ||
async function deserializeAws_restJson1_1CancelChangeSetCommand(output, context) { | ||
body = JSON.stringify(Object.assign(Object.assign(Object.assign(Object.assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.ChangeSet !== undefined && { | ||
ChangeSet: serializeAws_restJson1_1RequestedChangeList(input.ChangeSet, context) | ||
})), (input.ChangeSetName !== undefined && { | ||
ChangeSetName: input.ChangeSetName | ||
})), (input.ClientRequestToken !== undefined && { | ||
ClientRequestToken: input.ClientRequestToken | ||
}))); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new protocol_http_1.HttpRequest({ | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers, | ||
path: resolvedPath, | ||
body | ||
}); | ||
}; | ||
exports.deserializeAws_restJson1_1CancelChangeSetCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -142,5 +147,4 @@ return deserializeAws_restJson1_1CancelChangeSetCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1CancelChangeSetCommand = deserializeAws_restJson1_1CancelChangeSetCommand; | ||
async function deserializeAws_restJson1_1CancelChangeSetCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1CancelChangeSetCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -184,4 +188,4 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
async function deserializeAws_restJson1_1DescribeChangeSetCommand(output, context) { | ||
}; | ||
exports.deserializeAws_restJson1_1DescribeChangeSetCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -229,5 +233,4 @@ return deserializeAws_restJson1_1DescribeChangeSetCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1DescribeChangeSetCommand = deserializeAws_restJson1_1DescribeChangeSetCommand; | ||
async function deserializeAws_restJson1_1DescribeChangeSetCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1DescribeChangeSetCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -267,4 +270,4 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
async function deserializeAws_restJson1_1DescribeEntityCommand(output, context) { | ||
}; | ||
exports.deserializeAws_restJson1_1DescribeEntityCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -299,5 +302,4 @@ return deserializeAws_restJson1_1DescribeEntityCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1DescribeEntityCommand = deserializeAws_restJson1_1DescribeEntityCommand; | ||
async function deserializeAws_restJson1_1DescribeEntityCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1DescribeEntityCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -341,4 +343,4 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
async function deserializeAws_restJson1_1ListChangeSetsCommand(output, context) { | ||
}; | ||
exports.deserializeAws_restJson1_1ListChangeSetsCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -362,5 +364,4 @@ return deserializeAws_restJson1_1ListChangeSetsCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1ListChangeSetsCommand = deserializeAws_restJson1_1ListChangeSetsCommand; | ||
async function deserializeAws_restJson1_1ListChangeSetsCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1ListChangeSetsCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -396,4 +397,4 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
async function deserializeAws_restJson1_1ListEntitiesCommand(output, context) { | ||
}; | ||
exports.deserializeAws_restJson1_1ListEntitiesCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -416,5 +417,4 @@ return deserializeAws_restJson1_1ListEntitiesCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1ListEntitiesCommand = deserializeAws_restJson1_1ListEntitiesCommand; | ||
async function deserializeAws_restJson1_1ListEntitiesCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1ListEntitiesCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -454,4 +454,4 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
async function deserializeAws_restJson1_1StartChangeSetCommand(output, context) { | ||
}; | ||
exports.deserializeAws_restJson1_1StartChangeSetCommand = async (output, context) => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -474,5 +474,4 @@ return deserializeAws_restJson1_1StartChangeSetCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
exports.deserializeAws_restJson1_1StartChangeSetCommand = deserializeAws_restJson1_1StartChangeSetCommand; | ||
async function deserializeAws_restJson1_1StartChangeSetCommandError(output, context) { | ||
}; | ||
const deserializeAws_restJson1_1StartChangeSetCommandError = async (output, context) => { | ||
const parsedOutput = Object.assign(Object.assign({}, output), { body: await parseBody(output.body, context) }); | ||
@@ -520,3 +519,3 @@ let response; | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
const deserializeAws_restJson1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => { | ||
@@ -627,64 +626,25 @@ const contents = { | ||
const serializeAws_restJson1_1Change = (input, context) => { | ||
const bodyParams = {}; | ||
if (input.ChangeType !== undefined) { | ||
bodyParams["ChangeType"] = input.ChangeType; | ||
} | ||
if (input.Details !== undefined) { | ||
bodyParams["Details"] = input.Details; | ||
} | ||
if (input.Entity !== undefined) { | ||
bodyParams["Entity"] = serializeAws_restJson1_1Entity(input.Entity, context); | ||
} | ||
return bodyParams; | ||
return Object.assign(Object.assign(Object.assign({}, (input.ChangeType !== undefined && { ChangeType: input.ChangeType })), (input.Details !== undefined && { Details: input.Details })), (input.Entity !== undefined && { | ||
Entity: serializeAws_restJson1_1Entity(input.Entity, context) | ||
})); | ||
}; | ||
const serializeAws_restJson1_1Entity = (input, context) => { | ||
const bodyParams = {}; | ||
if (input.Identifier !== undefined) { | ||
bodyParams["Identifier"] = input.Identifier; | ||
} | ||
if (input.Type !== undefined) { | ||
bodyParams["Type"] = input.Type; | ||
} | ||
return bodyParams; | ||
return Object.assign(Object.assign({}, (input.Identifier !== undefined && { Identifier: input.Identifier })), (input.Type !== undefined && { Type: input.Type })); | ||
}; | ||
const serializeAws_restJson1_1Filter = (input, context) => { | ||
const bodyParams = {}; | ||
if (input.Name !== undefined) { | ||
bodyParams["Name"] = input.Name; | ||
} | ||
if (input.ValueList !== undefined) { | ||
bodyParams["ValueList"] = serializeAws_restJson1_1ValueList(input.ValueList, context); | ||
} | ||
return bodyParams; | ||
return Object.assign(Object.assign({}, (input.Name !== undefined && { Name: input.Name })), (input.ValueList !== undefined && { | ||
ValueList: serializeAws_restJson1_1ValueList(input.ValueList, context) | ||
})); | ||
}; | ||
const serializeAws_restJson1_1FilterList = (input, context) => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(serializeAws_restJson1_1Filter(entry, context)); | ||
} | ||
return contents; | ||
return input.map(entry => serializeAws_restJson1_1Filter(entry, context)); | ||
}; | ||
const serializeAws_restJson1_1RequestedChangeList = (input, context) => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(serializeAws_restJson1_1Change(entry, context)); | ||
} | ||
return contents; | ||
return input.map(entry => serializeAws_restJson1_1Change(entry, context)); | ||
}; | ||
const serializeAws_restJson1_1Sort = (input, context) => { | ||
const bodyParams = {}; | ||
if (input.SortBy !== undefined) { | ||
bodyParams["SortBy"] = input.SortBy; | ||
} | ||
if (input.SortOrder !== undefined) { | ||
bodyParams["SortOrder"] = input.SortOrder; | ||
} | ||
return bodyParams; | ||
return Object.assign(Object.assign({}, (input.SortBy !== undefined && { SortBy: input.SortBy })), (input.SortOrder !== undefined && { SortOrder: input.SortOrder })); | ||
}; | ||
const serializeAws_restJson1_1ValueList = (input, context) => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(entry); | ||
} | ||
return contents; | ||
return input.map(entry => entry); | ||
}; | ||
@@ -698,97 +658,74 @@ const deserializeAws_restJson1_1ChangeSetDescription = (output, context) => { | ||
const deserializeAws_restJson1_1ChangeSetSummaryListItem = (output, context) => { | ||
let contents = { | ||
return { | ||
__type: "ChangeSetSummaryListItem", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined, | ||
ChangeSetName: undefined, | ||
EndTime: undefined, | ||
EntityIdList: undefined, | ||
StartTime: undefined, | ||
Status: undefined | ||
ChangeSetArn: output.ChangeSetArn !== undefined && output.ChangeSetArn !== null | ||
? output.ChangeSetArn | ||
: undefined, | ||
ChangeSetId: output.ChangeSetId !== undefined && output.ChangeSetId !== null | ||
? output.ChangeSetId | ||
: undefined, | ||
ChangeSetName: output.ChangeSetName !== undefined && output.ChangeSetName !== null | ||
? output.ChangeSetName | ||
: undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null | ||
? output.EndTime | ||
: undefined, | ||
EntityIdList: output.EntityIdList !== undefined && output.EntityIdList !== null | ||
? deserializeAws_restJson1_1ResourceIdList(output.EntityIdList, context) | ||
: undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null | ||
? output.StartTime | ||
: undefined, | ||
Status: output.Status !== undefined && output.Status !== null | ||
? output.Status | ||
: undefined | ||
}; | ||
if (output.ChangeSetArn !== undefined && output.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = output.ChangeSetArn; | ||
} | ||
if (output.ChangeSetId !== undefined && output.ChangeSetId !== null) { | ||
contents.ChangeSetId = output.ChangeSetId; | ||
} | ||
if (output.ChangeSetName !== undefined && output.ChangeSetName !== null) { | ||
contents.ChangeSetName = output.ChangeSetName; | ||
} | ||
if (output.EndTime !== undefined && output.EndTime !== null) { | ||
contents.EndTime = output.EndTime; | ||
} | ||
if (output.EntityIdList !== undefined && output.EntityIdList !== null) { | ||
contents.EntityIdList = deserializeAws_restJson1_1ResourceIdList(output.EntityIdList, context); | ||
} | ||
if (output.StartTime !== undefined && output.StartTime !== null) { | ||
contents.StartTime = output.StartTime; | ||
} | ||
if (output.Status !== undefined && output.Status !== null) { | ||
contents.Status = output.Status; | ||
} | ||
return contents; | ||
}; | ||
const deserializeAws_restJson1_1ChangeSummary = (output, context) => { | ||
let contents = { | ||
return { | ||
__type: "ChangeSummary", | ||
ChangeType: undefined, | ||
Entity: undefined, | ||
ErrorDetailList: undefined | ||
ChangeType: output.ChangeType !== undefined && output.ChangeType !== null | ||
? output.ChangeType | ||
: undefined, | ||
Entity: output.Entity !== undefined && output.Entity !== null | ||
? deserializeAws_restJson1_1Entity(output.Entity, context) | ||
: undefined, | ||
ErrorDetailList: output.ErrorDetailList !== undefined && output.ErrorDetailList !== null | ||
? deserializeAws_restJson1_1ErrorDetailList(output.ErrorDetailList, context) | ||
: undefined | ||
}; | ||
if (output.ChangeType !== undefined && output.ChangeType !== null) { | ||
contents.ChangeType = output.ChangeType; | ||
} | ||
if (output.Entity !== undefined && output.Entity !== null) { | ||
contents.Entity = deserializeAws_restJson1_1Entity(output.Entity, context); | ||
} | ||
if (output.ErrorDetailList !== undefined && output.ErrorDetailList !== null) { | ||
contents.ErrorDetailList = deserializeAws_restJson1_1ErrorDetailList(output.ErrorDetailList, context); | ||
} | ||
return contents; | ||
}; | ||
const deserializeAws_restJson1_1Entity = (output, context) => { | ||
let contents = { | ||
return { | ||
__type: "Entity", | ||
Identifier: undefined, | ||
Type: undefined | ||
Identifier: output.Identifier !== undefined && output.Identifier !== null | ||
? output.Identifier | ||
: undefined, | ||
Type: output.Type !== undefined && output.Type !== null | ||
? output.Type | ||
: undefined | ||
}; | ||
if (output.Identifier !== undefined && output.Identifier !== null) { | ||
contents.Identifier = output.Identifier; | ||
} | ||
if (output.Type !== undefined && output.Type !== null) { | ||
contents.Type = output.Type; | ||
} | ||
return contents; | ||
}; | ||
const deserializeAws_restJson1_1EntitySummary = (output, context) => { | ||
let contents = { | ||
return { | ||
__type: "EntitySummary", | ||
EntityArn: undefined, | ||
EntityId: undefined, | ||
EntityType: undefined, | ||
LastModifiedDate: undefined, | ||
Name: undefined, | ||
Visibility: undefined | ||
EntityArn: output.EntityArn !== undefined && output.EntityArn !== null | ||
? output.EntityArn | ||
: undefined, | ||
EntityId: output.EntityId !== undefined && output.EntityId !== null | ||
? output.EntityId | ||
: undefined, | ||
EntityType: output.EntityType !== undefined && output.EntityType !== null | ||
? output.EntityType | ||
: undefined, | ||
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null | ||
? output.LastModifiedDate | ||
: undefined, | ||
Name: output.Name !== undefined && output.Name !== null | ||
? output.Name | ||
: undefined, | ||
Visibility: output.Visibility !== undefined && output.Visibility !== null | ||
? output.Visibility | ||
: undefined | ||
}; | ||
if (output.EntityArn !== undefined && output.EntityArn !== null) { | ||
contents.EntityArn = output.EntityArn; | ||
} | ||
if (output.EntityId !== undefined && output.EntityId !== null) { | ||
contents.EntityId = output.EntityId; | ||
} | ||
if (output.EntityType !== undefined && output.EntityType !== null) { | ||
contents.EntityType = output.EntityType; | ||
} | ||
if (output.LastModifiedDate !== undefined && | ||
output.LastModifiedDate !== null) { | ||
contents.LastModifiedDate = output.LastModifiedDate; | ||
} | ||
if (output.Name !== undefined && output.Name !== null) { | ||
contents.Name = output.Name; | ||
} | ||
if (output.Visibility !== undefined && output.Visibility !== null) { | ||
contents.Visibility = output.Visibility; | ||
} | ||
return contents; | ||
}; | ||
@@ -799,14 +736,11 @@ const deserializeAws_restJson1_1EntitySummaryList = (output, context) => { | ||
const deserializeAws_restJson1_1ErrorDetail = (output, context) => { | ||
let contents = { | ||
return { | ||
__type: "ErrorDetail", | ||
ErrorCode: undefined, | ||
ErrorMessage: undefined | ||
ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null | ||
? output.ErrorCode | ||
: undefined, | ||
ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null | ||
? output.ErrorMessage | ||
: undefined | ||
}; | ||
if (output.ErrorCode !== undefined && output.ErrorCode !== null) { | ||
contents.ErrorCode = output.ErrorCode; | ||
} | ||
if (output.ErrorMessage !== undefined && output.ErrorMessage !== null) { | ||
contents.ErrorMessage = output.ErrorMessage; | ||
} | ||
return contents; | ||
}; | ||
@@ -825,3 +759,3 @@ const deserializeAws_restJson1_1ErrorDetailList = (output, context) => { | ||
// Collect low-level response body stream to Uint8Array. | ||
const collectBody = (streamBody, context) => { | ||
const collectBody = (streamBody = new Uint8Array(), context) => { | ||
if (streamBody instanceof Uint8Array) { | ||
@@ -833,13 +767,14 @@ return Promise.resolve(streamBody); | ||
// Encode Uint8Array data into string with utf-8. | ||
const collectBodyString = (streamBody, context) => { | ||
return collectBody(streamBody, context).then(body => context.utf8Encoder(body)); | ||
}; | ||
const parseBody = (streamBody, context) => { | ||
return collectBodyString(streamBody, context).then(encoded => { | ||
if (encoded.length) { | ||
return JSON.parse(encoded); | ||
} | ||
return {}; | ||
}); | ||
}; | ||
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body)); | ||
const isSerializableHeaderValue = (value) => value !== undefined && | ||
value !== "" && | ||
(!Object.getOwnPropertyNames(value).includes("length") || | ||
value.length != 0) && | ||
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); | ||
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then(encoded => { | ||
if (encoded.length) { | ||
return JSON.parse(encoded); | ||
} | ||
return {}; | ||
}); | ||
/** | ||
@@ -846,0 +781,0 @@ * Load an error code for the aws.rest-json-1.1 protocol. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency"); | ||
const package_json_1 = require("./package.json"); | ||
const sha256_browser_1 = require("@aws-crypto/sha256-browser"); | ||
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler"); | ||
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency"); | ||
const url_parser_browser_1 = require("@aws-sdk/url-parser-browser"); | ||
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser"); | ||
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser"); | ||
const stream_collector_browser_1 = require("@aws-sdk/stream-collector-browser"); | ||
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); | ||
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser"); | ||
const util_base64_browser_1 = require("@aws-sdk/util-base64-browser"); | ||
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); | ||
const package_json_1 = require("./package.json"); | ||
const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_shared_1.ClientSharedValues), { requestHandler: new fetch_http_handler_1.FetchHttpHandler(), sha256: sha256_browser_1.Sha256, urlParser: url_parser_browser_1.parseUrl, bodyLengthChecker: util_body_length_browser_1.calculateBodyLength, streamCollector: stream_collector_browser_1.streamCollector, base64Decoder: util_base64_browser_1.fromBase64, base64Encoder: util_base64_browser_1.toBase64, utf8Decoder: util_utf8_browser_1.fromUtf8, utf8Encoder: util_utf8_browser_1.toUtf8, defaultUserAgent: util_user_agent_browser_1.defaultUserAgent(package_json_1.name, package_json_1.version), runtime: "browser", credentialDefaultProvider: invalid_dependency_1.invalidFunction("Credential is missing"), regionDefaultProvider: invalid_dependency_1.invalidFunction("Region is missing") }); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_shared_1.ClientSharedValues), { runtime: "browser", base64Decoder: util_base64_browser_1.fromBase64, base64Encoder: util_base64_browser_1.toBase64, bodyLengthChecker: util_body_length_browser_1.calculateBodyLength, credentialDefaultProvider: invalid_dependency_1.invalidFunction("Credential is missing"), defaultUserAgent: util_user_agent_browser_1.defaultUserAgent(package_json_1.name, package_json_1.version), regionDefaultProvider: invalid_dependency_1.invalidFunction("Region is missing"), requestHandler: new fetch_http_handler_1.FetchHttpHandler(), sha256: sha256_browser_1.Sha256, streamCollector: fetch_http_handler_1.streamCollector, urlParser: url_parser_browser_1.parseUrl, utf8Decoder: util_utf8_browser_1.fromUtf8, utf8Encoder: util_utf8_browser_1.toUtf8 }); | ||
//# sourceMappingURL=runtimeConfig.browser.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const package_json_1 = require("./package.json"); | ||
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node"); | ||
const region_provider_1 = require("@aws-sdk/region-provider"); | ||
const hash_node_1 = require("@aws-sdk/hash-node"); | ||
const node_http_handler_1 = require("@aws-sdk/node-http-handler"); | ||
const region_provider_1 = require("@aws-sdk/region-provider"); | ||
const url_parser_node_1 = require("@aws-sdk/url-parser-node"); | ||
const util_base64_node_1 = require("@aws-sdk/util-base64-node"); | ||
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node"); | ||
const stream_collector_node_1 = require("@aws-sdk/stream-collector-node"); | ||
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); | ||
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node"); | ||
const util_base64_node_1 = require("@aws-sdk/util-base64-node"); | ||
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); | ||
const package_json_1 = require("./package.json"); | ||
const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_shared_1.ClientSharedValues), { requestHandler: new node_http_handler_1.NodeHttpHandler(), sha256: hash_node_1.Hash.bind(null, "sha256"), urlParser: url_parser_node_1.parseUrl, bodyLengthChecker: util_body_length_node_1.calculateBodyLength, streamCollector: stream_collector_node_1.streamCollector, base64Decoder: util_base64_node_1.fromBase64, base64Encoder: util_base64_node_1.toBase64, utf8Decoder: util_utf8_node_1.fromUtf8, utf8Encoder: util_utf8_node_1.toUtf8, defaultUserAgent: util_user_agent_node_1.defaultUserAgent(package_json_1.name, package_json_1.version), runtime: "node", credentialDefaultProvider: credential_provider_node_1.defaultProvider, | ||
regionDefaultProvider: region_provider_1.defaultProvider }); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_shared_1.ClientSharedValues), { runtime: "node", base64Decoder: util_base64_node_1.fromBase64, base64Encoder: util_base64_node_1.toBase64, bodyLengthChecker: util_body_length_node_1.calculateBodyLength, credentialDefaultProvider: credential_provider_node_1.defaultProvider, defaultUserAgent: util_user_agent_node_1.defaultUserAgent(package_json_1.name, package_json_1.version), regionDefaultProvider: region_provider_1.defaultProvider, requestHandler: new node_http_handler_1.NodeHttpHandler(), sha256: hash_node_1.Hash.bind(null, "sha256"), streamCollector: node_http_handler_1.streamCollector, urlParser: url_parser_node_1.parseUrl, utf8Decoder: util_utf8_node_1.fromUtf8, utf8Encoder: util_utf8_node_1.toUtf8 }); | ||
//# sourceMappingURL=runtimeConfig.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler"); | ||
const package_json_1 = require("./package.json"); | ||
const sha256_js_1 = require("@aws-crypto/sha256-js"); | ||
const stream_collector_native_1 = require("@aws-sdk/stream-collector-native"); | ||
const url_parser_node_1 = require("@aws-sdk/url-parser-node"); | ||
const package_json_1 = require("./package.json"); | ||
const runtimeConfig_browser_1 = require("./runtimeConfig.browser"); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_browser_1.ClientDefaultValues), { requestHandler: new fetch_http_handler_1.FetchHttpHandler({ bufferBody: true }), sha256: sha256_js_1.Sha256, streamCollector: stream_collector_native_1.streamCollector, urlParser: url_parser_node_1.parseUrl, defaultUserAgent: `aws-sdk-js-v3-react-native-${package_json_1.name}/${package_json_1.version}`, runtime: "react-native" }); | ||
exports.ClientDefaultValues = Object.assign(Object.assign({}, runtimeConfig_browser_1.ClientDefaultValues), { runtime: "react-native", defaultUserAgent: `aws-sdk-js-v3-react-native-${package_json_1.name}/${package_json_1.version}`, sha256: sha256_js_1.Sha256, urlParser: url_parser_node_1.parseUrl }); | ||
//# sourceMappingURL=runtimeConfig.native.js.map |
@@ -7,5 +7,5 @@ "use strict"; | ||
disableHostPrefix: false, | ||
signingName: "aws-marketplace", | ||
regionInfoProvider: endpoints_1.defaultRegionInfoProvider | ||
regionInfoProvider: endpoints_1.defaultRegionInfoProvider, | ||
signingName: "aws-marketplace" | ||
}; | ||
//# sourceMappingURL=runtimeConfig.shared.js.map |
@@ -39,3 +39,5 @@ import { __assign, __extends } from "tslib"; | ||
} | ||
MarketplaceCatalogClient.prototype.destroy = function () { }; | ||
MarketplaceCatalogClient.prototype.destroy = function () { | ||
_super.prototype.destroy.call(this); | ||
}; | ||
return MarketplaceCatalogClient; | ||
@@ -42,0 +44,0 @@ }(__Client)); |
import { isa as __isa } from "@aws-sdk/smithy-client"; | ||
export var AccessDeniedException; | ||
(function (AccessDeniedException) { | ||
function isa(o) { | ||
AccessDeniedException.isa = function (o) { | ||
return __isa(o, "AccessDeniedException"); | ||
} | ||
AccessDeniedException.isa = isa; | ||
}; | ||
})(AccessDeniedException || (AccessDeniedException = {})); | ||
export var CancelChangeSetRequest; | ||
(function (CancelChangeSetRequest) { | ||
function isa(o) { | ||
CancelChangeSetRequest.isa = function (o) { | ||
return __isa(o, "CancelChangeSetRequest"); | ||
} | ||
CancelChangeSetRequest.isa = isa; | ||
}; | ||
})(CancelChangeSetRequest || (CancelChangeSetRequest = {})); | ||
export var CancelChangeSetResponse; | ||
(function (CancelChangeSetResponse) { | ||
function isa(o) { | ||
CancelChangeSetResponse.isa = function (o) { | ||
return __isa(o, "CancelChangeSetResponse"); | ||
} | ||
CancelChangeSetResponse.isa = isa; | ||
}; | ||
})(CancelChangeSetResponse || (CancelChangeSetResponse = {})); | ||
export var Change; | ||
(function (Change) { | ||
function isa(o) { | ||
return __isa(o, "Change"); | ||
} | ||
Change.isa = isa; | ||
Change.isa = function (o) { return __isa(o, "Change"); }; | ||
})(Change || (Change = {})); | ||
export var ChangeSetSummaryListItem; | ||
(function (ChangeSetSummaryListItem) { | ||
function isa(o) { | ||
ChangeSetSummaryListItem.isa = function (o) { | ||
return __isa(o, "ChangeSetSummaryListItem"); | ||
} | ||
ChangeSetSummaryListItem.isa = isa; | ||
}; | ||
})(ChangeSetSummaryListItem || (ChangeSetSummaryListItem = {})); | ||
@@ -47,132 +40,101 @@ export var ChangeStatus; | ||
(function (ChangeSummary) { | ||
function isa(o) { | ||
return __isa(o, "ChangeSummary"); | ||
} | ||
ChangeSummary.isa = isa; | ||
ChangeSummary.isa = function (o) { return __isa(o, "ChangeSummary"); }; | ||
})(ChangeSummary || (ChangeSummary = {})); | ||
export var DescribeChangeSetRequest; | ||
(function (DescribeChangeSetRequest) { | ||
function isa(o) { | ||
DescribeChangeSetRequest.isa = function (o) { | ||
return __isa(o, "DescribeChangeSetRequest"); | ||
} | ||
DescribeChangeSetRequest.isa = isa; | ||
}; | ||
})(DescribeChangeSetRequest || (DescribeChangeSetRequest = {})); | ||
export var DescribeChangeSetResponse; | ||
(function (DescribeChangeSetResponse) { | ||
function isa(o) { | ||
DescribeChangeSetResponse.isa = function (o) { | ||
return __isa(o, "DescribeChangeSetResponse"); | ||
} | ||
DescribeChangeSetResponse.isa = isa; | ||
}; | ||
})(DescribeChangeSetResponse || (DescribeChangeSetResponse = {})); | ||
export var DescribeEntityRequest; | ||
(function (DescribeEntityRequest) { | ||
function isa(o) { | ||
DescribeEntityRequest.isa = function (o) { | ||
return __isa(o, "DescribeEntityRequest"); | ||
} | ||
DescribeEntityRequest.isa = isa; | ||
}; | ||
})(DescribeEntityRequest || (DescribeEntityRequest = {})); | ||
export var DescribeEntityResponse; | ||
(function (DescribeEntityResponse) { | ||
function isa(o) { | ||
DescribeEntityResponse.isa = function (o) { | ||
return __isa(o, "DescribeEntityResponse"); | ||
} | ||
DescribeEntityResponse.isa = isa; | ||
}; | ||
})(DescribeEntityResponse || (DescribeEntityResponse = {})); | ||
export var Entity; | ||
(function (Entity) { | ||
function isa(o) { | ||
return __isa(o, "Entity"); | ||
} | ||
Entity.isa = isa; | ||
Entity.isa = function (o) { return __isa(o, "Entity"); }; | ||
})(Entity || (Entity = {})); | ||
export var EntitySummary; | ||
(function (EntitySummary) { | ||
function isa(o) { | ||
return __isa(o, "EntitySummary"); | ||
} | ||
EntitySummary.isa = isa; | ||
EntitySummary.isa = function (o) { return __isa(o, "EntitySummary"); }; | ||
})(EntitySummary || (EntitySummary = {})); | ||
export var ErrorDetail; | ||
(function (ErrorDetail) { | ||
function isa(o) { | ||
return __isa(o, "ErrorDetail"); | ||
} | ||
ErrorDetail.isa = isa; | ||
ErrorDetail.isa = function (o) { return __isa(o, "ErrorDetail"); }; | ||
})(ErrorDetail || (ErrorDetail = {})); | ||
export var Filter; | ||
(function (Filter) { | ||
function isa(o) { | ||
return __isa(o, "Filter"); | ||
} | ||
Filter.isa = isa; | ||
Filter.isa = function (o) { return __isa(o, "Filter"); }; | ||
})(Filter || (Filter = {})); | ||
export var InternalServiceException; | ||
(function (InternalServiceException) { | ||
function isa(o) { | ||
InternalServiceException.isa = function (o) { | ||
return __isa(o, "InternalServiceException"); | ||
} | ||
InternalServiceException.isa = isa; | ||
}; | ||
})(InternalServiceException || (InternalServiceException = {})); | ||
export var ListChangeSetsRequest; | ||
(function (ListChangeSetsRequest) { | ||
function isa(o) { | ||
ListChangeSetsRequest.isa = function (o) { | ||
return __isa(o, "ListChangeSetsRequest"); | ||
} | ||
ListChangeSetsRequest.isa = isa; | ||
}; | ||
})(ListChangeSetsRequest || (ListChangeSetsRequest = {})); | ||
export var ListChangeSetsResponse; | ||
(function (ListChangeSetsResponse) { | ||
function isa(o) { | ||
ListChangeSetsResponse.isa = function (o) { | ||
return __isa(o, "ListChangeSetsResponse"); | ||
} | ||
ListChangeSetsResponse.isa = isa; | ||
}; | ||
})(ListChangeSetsResponse || (ListChangeSetsResponse = {})); | ||
export var ListEntitiesRequest; | ||
(function (ListEntitiesRequest) { | ||
function isa(o) { | ||
ListEntitiesRequest.isa = function (o) { | ||
return __isa(o, "ListEntitiesRequest"); | ||
} | ||
ListEntitiesRequest.isa = isa; | ||
}; | ||
})(ListEntitiesRequest || (ListEntitiesRequest = {})); | ||
export var ListEntitiesResponse; | ||
(function (ListEntitiesResponse) { | ||
function isa(o) { | ||
ListEntitiesResponse.isa = function (o) { | ||
return __isa(o, "ListEntitiesResponse"); | ||
} | ||
ListEntitiesResponse.isa = isa; | ||
}; | ||
})(ListEntitiesResponse || (ListEntitiesResponse = {})); | ||
export var ResourceInUseException; | ||
(function (ResourceInUseException) { | ||
function isa(o) { | ||
ResourceInUseException.isa = function (o) { | ||
return __isa(o, "ResourceInUseException"); | ||
} | ||
ResourceInUseException.isa = isa; | ||
}; | ||
})(ResourceInUseException || (ResourceInUseException = {})); | ||
export var ResourceNotFoundException; | ||
(function (ResourceNotFoundException) { | ||
function isa(o) { | ||
ResourceNotFoundException.isa = function (o) { | ||
return __isa(o, "ResourceNotFoundException"); | ||
} | ||
ResourceNotFoundException.isa = isa; | ||
}; | ||
})(ResourceNotFoundException || (ResourceNotFoundException = {})); | ||
export var ResourceNotSupportedException; | ||
(function (ResourceNotSupportedException) { | ||
function isa(o) { | ||
ResourceNotSupportedException.isa = function (o) { | ||
return __isa(o, "ResourceNotSupportedException"); | ||
} | ||
ResourceNotSupportedException.isa = isa; | ||
}; | ||
})(ResourceNotSupportedException || (ResourceNotSupportedException = {})); | ||
export var ServiceQuotaExceededException; | ||
(function (ServiceQuotaExceededException) { | ||
function isa(o) { | ||
ServiceQuotaExceededException.isa = function (o) { | ||
return __isa(o, "ServiceQuotaExceededException"); | ||
} | ||
ServiceQuotaExceededException.isa = isa; | ||
}; | ||
})(ServiceQuotaExceededException || (ServiceQuotaExceededException = {})); | ||
export var Sort; | ||
(function (Sort) { | ||
function isa(o) { | ||
return __isa(o, "Sort"); | ||
} | ||
Sort.isa = isa; | ||
Sort.isa = function (o) { return __isa(o, "Sort"); }; | ||
})(Sort || (Sort = {})); | ||
@@ -186,28 +148,24 @@ export var SortOrder; | ||
(function (StartChangeSetRequest) { | ||
function isa(o) { | ||
StartChangeSetRequest.isa = function (o) { | ||
return __isa(o, "StartChangeSetRequest"); | ||
} | ||
StartChangeSetRequest.isa = isa; | ||
}; | ||
})(StartChangeSetRequest || (StartChangeSetRequest = {})); | ||
export var StartChangeSetResponse; | ||
(function (StartChangeSetResponse) { | ||
function isa(o) { | ||
StartChangeSetResponse.isa = function (o) { | ||
return __isa(o, "StartChangeSetResponse"); | ||
} | ||
StartChangeSetResponse.isa = isa; | ||
}; | ||
})(StartChangeSetResponse || (StartChangeSetResponse = {})); | ||
export var ThrottlingException; | ||
(function (ThrottlingException) { | ||
function isa(o) { | ||
ThrottlingException.isa = function (o) { | ||
return __isa(o, "ThrottlingException"); | ||
} | ||
ThrottlingException.isa = isa; | ||
}; | ||
})(ThrottlingException || (ThrottlingException = {})); | ||
export var ValidationException; | ||
(function (ValidationException) { | ||
function isa(o) { | ||
ValidationException.isa = function (o) { | ||
return __isa(o, "ValidationException"); | ||
} | ||
ValidationException.isa = isa; | ||
}; | ||
})(ValidationException || (ValidationException = {})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aws-sdk/client-marketplace-catalog", | ||
"description": "@aws-sdk/client-marketplace-catalog client", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-gamma.1", | ||
"scripts": { | ||
@@ -16,3 +16,2 @@ "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", | ||
"test": "exit 0", | ||
"smoke-test": "npm run pretest && node ./test/smoke/index.spec.js", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
@@ -34,32 +33,29 @@ "build": "yarn pretest && yarn build:es" | ||
"@aws-crypto/sha256-js": "^1.0.0-alpha.0", | ||
"@aws-sdk/config-resolver": "1.0.0-beta.4", | ||
"@aws-sdk/credential-provider-node": "1.0.0-beta.4", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/hash-node": "1.0.0-beta.4", | ||
"@aws-sdk/invalid-dependency": "1.0.0-beta.2", | ||
"@aws-sdk/middleware-content-length": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-host-header": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-retry": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-serde": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-signing": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-stack": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-beta.4", | ||
"@aws-sdk/node-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/protocol-http": "1.0.0-beta.4", | ||
"@aws-sdk/region-provider": "1.0.0-beta.4", | ||
"@aws-sdk/smithy-client": "1.0.0-beta.5", | ||
"@aws-sdk/stream-collector-browser": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-native": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-node": "1.0.0-beta.4", | ||
"@aws-sdk/types": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-browser": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-base64-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-base64-node": "1.0.0-beta.3", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-body-length-node": "1.0.0-beta.2", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-beta.4", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-utf8-node": "1.0.0-beta.3", | ||
"@aws-sdk/config-resolver": "1.0.0-gamma.1", | ||
"@aws-sdk/credential-provider-node": "1.0.0-gamma.1", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/hash-node": "1.0.0-gamma.1", | ||
"@aws-sdk/invalid-dependency": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-content-length": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-host-header": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-retry": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-serde": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-signing": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-stack": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-gamma.1", | ||
"@aws-sdk/node-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/protocol-http": "1.0.0-gamma.1", | ||
"@aws-sdk/region-provider": "1.0.0-gamma.1", | ||
"@aws-sdk/smithy-client": "1.0.0-gamma.1", | ||
"@aws-sdk/types": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-node": "1.0.0-gamma.1", | ||
"tslib": "^1.8.0" | ||
@@ -66,0 +62,0 @@ }, |
@@ -1,803 +0,808 @@ | ||
import { __assign, __awaiter, __generator, __values } from "tslib"; | ||
import { __assign, __awaiter, __generator } from "tslib"; | ||
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http"; | ||
export function serializeAws_restJson1_1CancelChangeSetCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = ""; | ||
resolvedPath = "/CancelChangeSet"; | ||
query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "PATCH", headers: headers, path: resolvedPath, query: query, body: body }))]; | ||
}); | ||
export var serializeAws_restJson1_1CancelChangeSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "" | ||
}; | ||
resolvedPath = "/CancelChangeSet"; | ||
query = __assign(__assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId })); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "PATCH", | ||
headers: headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function serializeAws_restJson1_1DescribeChangeSetCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = ""; | ||
resolvedPath = "/DescribeChangeSet"; | ||
query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, body: body }))]; | ||
}); | ||
}); }; | ||
export var serializeAws_restJson1_1DescribeChangeSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "" | ||
}; | ||
resolvedPath = "/DescribeChangeSet"; | ||
query = __assign(__assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId })); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "GET", | ||
headers: headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function serializeAws_restJson1_1DescribeEntityCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = ""; | ||
resolvedPath = "/DescribeEntity"; | ||
query = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.EntityId !== undefined) { | ||
query["entityId"] = input.EntityId; | ||
} | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "GET", headers: headers, path: resolvedPath, query: query, body: body }))]; | ||
}); | ||
}); }; | ||
export var serializeAws_restJson1_1DescribeEntityCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, query, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "" | ||
}; | ||
resolvedPath = "/DescribeEntity"; | ||
query = __assign(__assign({}, (input.Catalog !== undefined && { catalog: input.Catalog })), (input.EntityId !== undefined && { entityId: input.EntityId })); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "GET", | ||
headers: headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function serializeAws_restJson1_1ListChangeSetsCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, body, bodyParams; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
resolvedPath = "/ListChangeSets"; | ||
bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList(input.FilterList, context); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body }))]; | ||
}); | ||
}); }; | ||
export var serializeAws_restJson1_1ListChangeSetsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
resolvedPath = "/ListChangeSets"; | ||
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
})), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}))); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "POST", | ||
headers: headers, | ||
path: resolvedPath, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function serializeAws_restJson1_1ListEntitiesCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, body, bodyParams; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
resolvedPath = "/ListEntities"; | ||
bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.EntityType !== undefined) { | ||
bodyParams["EntityType"] = input.EntityType; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList(input.FilterList, context); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body }))]; | ||
}); | ||
}); }; | ||
export var serializeAws_restJson1_1ListEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
resolvedPath = "/ListEntities"; | ||
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.EntityType !== undefined && { EntityType: input.EntityType })), (input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
})), (input.MaxResults !== undefined && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}))); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "POST", | ||
headers: headers, | ||
path: resolvedPath, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function serializeAws_restJson1_1StartChangeSetCommand(input, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var headers, resolvedPath, body, bodyParams; | ||
return __generator(this, function (_a) { | ||
headers = {}; | ||
headers["Content-Type"] = "application/json"; | ||
resolvedPath = "/StartChangeSet"; | ||
bodyParams = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSet !== undefined) { | ||
bodyParams["ChangeSet"] = serializeAws_restJson1_1RequestedChangeList(input.ChangeSet, context); | ||
} | ||
if (input.ChangeSetName !== undefined) { | ||
bodyParams["ChangeSetName"] = input.ChangeSetName; | ||
} | ||
if (input.ClientRequestToken !== undefined) { | ||
bodyParams["ClientRequestToken"] = input.ClientRequestToken; | ||
} | ||
body = JSON.stringify(bodyParams); | ||
return [2 /*return*/, new __HttpRequest(__assign(__assign({}, context.endpoint), { protocol: "https", method: "POST", headers: headers, path: resolvedPath, body: body }))]; | ||
}); | ||
}); }; | ||
export var serializeAws_restJson1_1StartChangeSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var headers, resolvedPath, body, _a, hostname, _b, protocol, port; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
headers = { | ||
"Content-Type": "application/json" | ||
}; | ||
resolvedPath = "/StartChangeSet"; | ||
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && { Catalog: input.Catalog })), (input.ChangeSet !== undefined && { | ||
ChangeSet: serializeAws_restJson1_1RequestedChangeList(input.ChangeSet, context) | ||
})), (input.ChangeSetName !== undefined && { | ||
ChangeSetName: input.ChangeSetName | ||
})), (input.ClientRequestToken !== undefined && { | ||
ClientRequestToken: input.ClientRequestToken | ||
}))); | ||
return [4 /*yield*/, context.endpoint()]; | ||
case 1: | ||
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port; | ||
return [2 /*return*/, new __HttpRequest({ | ||
protocol: protocol, | ||
hostname: hostname, | ||
port: port, | ||
method: "POST", | ||
headers: headers, | ||
path: resolvedPath, | ||
body: body | ||
})]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1CancelChangeSetCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1CancelChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "CancelChangeSetResponse", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1CancelChangeSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1CancelChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "CancelChangeSetResponse", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1CancelChangeSetCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; | ||
return __generator(this, function (_k) { | ||
switch (_k.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _k.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceInUseException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceInUseException": return [3 /*break*/, 6]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "ThrottlingException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 10]; | ||
case "ValidationException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 12]; | ||
} | ||
return [3 /*break*/, 14]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceInUseExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 14: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_k.label = 15; | ||
case 15: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1CancelChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; | ||
return __generator(this, function (_k) { | ||
switch (_k.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _k.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceInUseException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceInUseException": return [3 /*break*/, 6]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "ThrottlingException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 10]; | ||
case "ValidationException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 12]; | ||
} | ||
return [3 /*break*/, 14]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceInUseExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 14: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_k.label = 15; | ||
case 15: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1DescribeChangeSetCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1DescribeChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "DescribeChangeSetResponse", | ||
ChangeSet: undefined, | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined, | ||
ChangeSetName: undefined, | ||
EndTime: undefined, | ||
FailureDescription: undefined, | ||
StartTime: undefined, | ||
Status: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSet !== undefined && data.ChangeSet !== null) { | ||
contents.ChangeSet = deserializeAws_restJson1_1ChangeSetDescription(data.ChangeSet, context); | ||
} | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
if (data.ChangeSetName !== undefined && data.ChangeSetName !== null) { | ||
contents.ChangeSetName = data.ChangeSetName; | ||
} | ||
if (data.EndTime !== undefined && data.EndTime !== null) { | ||
contents.EndTime = data.EndTime; | ||
} | ||
if (data.FailureDescription !== undefined && | ||
data.FailureDescription !== null) { | ||
contents.FailureDescription = data.FailureDescription; | ||
} | ||
if (data.StartTime !== undefined && data.StartTime !== null) { | ||
contents.StartTime = data.StartTime; | ||
} | ||
if (data.Status !== undefined && data.Status !== null) { | ||
contents.Status = data.Status; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1DescribeChangeSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1DescribeChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "DescribeChangeSetResponse", | ||
ChangeSet: undefined, | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined, | ||
ChangeSetName: undefined, | ||
EndTime: undefined, | ||
FailureDescription: undefined, | ||
StartTime: undefined, | ||
Status: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSet !== undefined && data.ChangeSet !== null) { | ||
contents.ChangeSet = deserializeAws_restJson1_1ChangeSetDescription(data.ChangeSet, context); | ||
} | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
if (data.ChangeSetName !== undefined && data.ChangeSetName !== null) { | ||
contents.ChangeSetName = data.ChangeSetName; | ||
} | ||
if (data.EndTime !== undefined && data.EndTime !== null) { | ||
contents.EndTime = data.EndTime; | ||
} | ||
if (data.FailureDescription !== undefined && | ||
data.FailureDescription !== null) { | ||
contents.FailureDescription = data.FailureDescription; | ||
} | ||
if (data.StartTime !== undefined && data.StartTime !== null) { | ||
contents.StartTime = data.StartTime; | ||
} | ||
if (data.Status !== undefined && data.Status !== null) { | ||
contents.Status = data.Status; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1DescribeChangeSetCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, parsedBody, message; | ||
return __generator(this, function (_j) { | ||
switch (_j.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _j.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ThrottlingException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 8]; | ||
case "ValidationException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 10]; | ||
} | ||
return [3 /*break*/, 12]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 12: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_j.label = 13; | ||
case 13: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1DescribeChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, parsedBody, message; | ||
return __generator(this, function (_j) { | ||
switch (_j.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _j.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ThrottlingException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 8]; | ||
case "ValidationException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 10]; | ||
} | ||
return [3 /*break*/, 12]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 12: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_j.label = 13; | ||
case 13: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1DescribeEntityCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1DescribeEntityCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "DescribeEntityResponse", | ||
Details: undefined, | ||
EntityArn: undefined, | ||
EntityIdentifier: undefined, | ||
EntityType: undefined, | ||
LastModifiedDate: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.Details !== undefined && data.Details !== null) { | ||
contents.Details = data.Details; | ||
} | ||
if (data.EntityArn !== undefined && data.EntityArn !== null) { | ||
contents.EntityArn = data.EntityArn; | ||
} | ||
if (data.EntityIdentifier !== undefined && data.EntityIdentifier !== null) { | ||
contents.EntityIdentifier = data.EntityIdentifier; | ||
} | ||
if (data.EntityType !== undefined && data.EntityType !== null) { | ||
contents.EntityType = data.EntityType; | ||
} | ||
if (data.LastModifiedDate !== undefined && data.LastModifiedDate !== null) { | ||
contents.LastModifiedDate = data.LastModifiedDate; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1DescribeEntityCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1DescribeEntityCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "DescribeEntityResponse", | ||
Details: undefined, | ||
EntityArn: undefined, | ||
EntityIdentifier: undefined, | ||
EntityType: undefined, | ||
LastModifiedDate: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.Details !== undefined && data.Details !== null) { | ||
contents.Details = data.Details; | ||
} | ||
if (data.EntityArn !== undefined && data.EntityArn !== null) { | ||
contents.EntityArn = data.EntityArn; | ||
} | ||
if (data.EntityIdentifier !== undefined && data.EntityIdentifier !== null) { | ||
contents.EntityIdentifier = data.EntityIdentifier; | ||
} | ||
if (data.EntityType !== undefined && data.EntityType !== null) { | ||
contents.EntityType = data.EntityType; | ||
} | ||
if (data.LastModifiedDate !== undefined && data.LastModifiedDate !== null) { | ||
contents.LastModifiedDate = data.LastModifiedDate; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1DescribeEntityCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; | ||
return __generator(this, function (_k) { | ||
switch (_k.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _k.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ResourceNotSupportedException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotSupportedException": return [3 /*break*/, 8]; | ||
case "ThrottlingException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 10]; | ||
case "ValidationException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 12]; | ||
} | ||
return [3 /*break*/, 14]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotSupportedExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 14: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_k.label = 15; | ||
case 15: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1DescribeEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, parsedBody, message; | ||
return __generator(this, function (_k) { | ||
switch (_k.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _k.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ResourceNotSupportedException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotSupportedException": return [3 /*break*/, 8]; | ||
case "ThrottlingException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 10]; | ||
case "ValidationException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 12]; | ||
} | ||
return [3 /*break*/, 14]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotSupportedExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 15]; | ||
case 14: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_k.label = 15; | ||
case 15: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1ListChangeSetsCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1ListChangeSetsCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "ListChangeSetsResponse", | ||
ChangeSetSummaryList: undefined, | ||
NextToken: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetSummaryList !== undefined && | ||
data.ChangeSetSummaryList !== null) { | ||
contents.ChangeSetSummaryList = deserializeAws_restJson1_1ChangeSetSummaryList(data.ChangeSetSummaryList, context); | ||
} | ||
if (data.NextToken !== undefined && data.NextToken !== null) { | ||
contents.NextToken = data.NextToken; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1ListChangeSetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1ListChangeSetsCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "ListChangeSetsResponse", | ||
ChangeSetSummaryList: undefined, | ||
NextToken: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetSummaryList !== undefined && | ||
data.ChangeSetSummaryList !== null) { | ||
contents.ChangeSetSummaryList = deserializeAws_restJson1_1ChangeSetSummaryList(data.ChangeSetSummaryList, context); | ||
} | ||
if (data.NextToken !== undefined && data.NextToken !== null) { | ||
contents.NextToken = data.NextToken; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1ListChangeSetsCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, parsedBody, message; | ||
return __generator(this, function (_h) { | ||
switch (_h.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _h.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ThrottlingException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 6]; | ||
case "ValidationException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 8]; | ||
} | ||
return [3 /*break*/, 10]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 10: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_h.label = 11; | ||
case 11: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1ListChangeSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, parsedBody, message; | ||
return __generator(this, function (_h) { | ||
switch (_h.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _h.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ThrottlingException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 6]; | ||
case "ValidationException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 8]; | ||
} | ||
return [3 /*break*/, 10]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 11]; | ||
case 10: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_h.label = 11; | ||
case 11: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1ListEntitiesCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1ListEntitiesCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "ListEntitiesResponse", | ||
EntitySummaryList: undefined, | ||
NextToken: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.EntitySummaryList !== undefined && data.EntitySummaryList !== null) { | ||
contents.EntitySummaryList = deserializeAws_restJson1_1EntitySummaryList(data.EntitySummaryList, context); | ||
} | ||
if (data.NextToken !== undefined && data.NextToken !== null) { | ||
contents.NextToken = data.NextToken; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1ListEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1ListEntitiesCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "ListEntitiesResponse", | ||
EntitySummaryList: undefined, | ||
NextToken: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.EntitySummaryList !== undefined && data.EntitySummaryList !== null) { | ||
contents.EntitySummaryList = deserializeAws_restJson1_1EntitySummaryList(data.EntitySummaryList, context); | ||
} | ||
if (data.NextToken !== undefined && data.NextToken !== null) { | ||
contents.NextToken = data.NextToken; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1ListEntitiesCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, parsedBody, message; | ||
return __generator(this, function (_j) { | ||
switch (_j.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _j.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ThrottlingException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 8]; | ||
case "ValidationException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 10]; | ||
} | ||
return [3 /*break*/, 12]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 12: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_j.label = 13; | ||
case 13: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1ListEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, parsedBody, message; | ||
return __generator(this, function (_j) { | ||
switch (_j.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _j.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 6]; | ||
case "ThrottlingException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 8]; | ||
case "ValidationException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 10]; | ||
} | ||
return [3 /*break*/, 12]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 13]; | ||
case 12: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_j.label = 13; | ||
case 13: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
export function deserializeAws_restJson1_1StartChangeSetCommand(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1StartChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "StartChangeSetResponse", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
}); }; | ||
export var deserializeAws_restJson1_1StartChangeSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var contents, data; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
return [2 /*return*/, deserializeAws_restJson1_1StartChangeSetCommandError(output, context)]; | ||
} | ||
contents = { | ||
$metadata: deserializeMetadata(output), | ||
__type: "StartChangeSetResponse", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined | ||
}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
data = _a.sent(); | ||
if (data.ChangeSetArn !== undefined && data.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = data.ChangeSetArn; | ||
} | ||
if (data.ChangeSetId !== undefined && data.ChangeSetId !== null) { | ||
contents.ChangeSetId = data.ChangeSetId; | ||
} | ||
return [2 /*return*/, Promise.resolve(contents)]; | ||
} | ||
}); | ||
} | ||
function deserializeAws_restJson1_1StartChangeSetCommandError(output, context) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; | ||
return __generator(this, function (_l) { | ||
switch (_l.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _l.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceInUseException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceInUseException": return [3 /*break*/, 6]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "ServiceQuotaExceededException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ServiceQuotaExceededException": return [3 /*break*/, 10]; | ||
case "ThrottlingException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 12]; | ||
case "ValidationException": return [3 /*break*/, 14]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 14]; | ||
} | ||
return [3 /*break*/, 16]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceInUseExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 14: | ||
_k = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 15: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 16: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_l.label = 17; | ||
case 17: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
}); }; | ||
var deserializeAws_restJson1_1StartChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
var parsedOutput, _a, _b, response, errorCode, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message; | ||
return __generator(this, function (_l) { | ||
switch (_l.label) { | ||
case 0: | ||
_a = [__assign({}, output)]; | ||
_b = {}; | ||
return [4 /*yield*/, parseBody(output.body, context)]; | ||
case 1: | ||
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _l.sent(), _b)])); | ||
errorCode = "UnknownError"; | ||
errorCode = loadRestJsonErrorCode(output, parsedOutput.body); | ||
_c = errorCode; | ||
switch (_c) { | ||
case "AccessDeniedException": return [3 /*break*/, 2]; | ||
case "com.amazonaws.marketplace.seymour.model#AccessDeniedException": return [3 /*break*/, 2]; | ||
case "InternalServiceException": return [3 /*break*/, 4]; | ||
case "com.amazonaws.marketplace.seymour.model#InternalServiceException": return [3 /*break*/, 4]; | ||
case "ResourceInUseException": return [3 /*break*/, 6]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceInUseException": return [3 /*break*/, 6]; | ||
case "ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "com.amazonaws.marketplace.seymour.model#ResourceNotFoundException": return [3 /*break*/, 8]; | ||
case "ServiceQuotaExceededException": return [3 /*break*/, 10]; | ||
case "com.amazonaws.marketplace.seymour.model#ServiceQuotaExceededException": return [3 /*break*/, 10]; | ||
case "ThrottlingException": return [3 /*break*/, 12]; | ||
case "com.amazonaws.marketplace.seymour.model#ThrottlingException": return [3 /*break*/, 12]; | ||
case "ValidationException": return [3 /*break*/, 14]; | ||
case "com.amazonaws.marketplace.seymour.model#ValidationException": return [3 /*break*/, 14]; | ||
} | ||
return [3 /*break*/, 16]; | ||
case 2: | ||
_d = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1AccessDeniedExceptionResponse(parsedOutput, context)]; | ||
case 3: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 4: | ||
_e = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1InternalServiceExceptionResponse(parsedOutput, context)]; | ||
case 5: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 6: | ||
_f = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceInUseExceptionResponse(parsedOutput, context)]; | ||
case 7: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 8: | ||
_g = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ResourceNotFoundExceptionResponse(parsedOutput, context)]; | ||
case 9: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 10: | ||
_h = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context)]; | ||
case 11: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 12: | ||
_j = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ThrottlingExceptionResponse(parsedOutput, context)]; | ||
case 13: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 14: | ||
_k = [{}]; | ||
return [4 /*yield*/, deserializeAws_restJson1_1ValidationExceptionResponse(parsedOutput, context)]; | ||
case 15: | ||
response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]); | ||
return [3 /*break*/, 17]; | ||
case 16: | ||
parsedBody = parsedOutput.body; | ||
errorCode = parsedBody.code || parsedBody.Code || errorCode; | ||
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) }); | ||
_l.label = 17; | ||
case 17: | ||
message = response.message || response.Message || errorCode; | ||
response.message = message; | ||
delete response.Message; | ||
return [2 /*return*/, Promise.reject(Object.assign(new Error(message), response))]; | ||
} | ||
}); | ||
} | ||
}); }; | ||
var deserializeAws_restJson1_1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -932,97 +937,25 @@ var contents, data; | ||
var serializeAws_restJson1_1Change = function (input, context) { | ||
var bodyParams = {}; | ||
if (input.ChangeType !== undefined) { | ||
bodyParams["ChangeType"] = input.ChangeType; | ||
} | ||
if (input.Details !== undefined) { | ||
bodyParams["Details"] = input.Details; | ||
} | ||
if (input.Entity !== undefined) { | ||
bodyParams["Entity"] = serializeAws_restJson1_1Entity(input.Entity, context); | ||
} | ||
return bodyParams; | ||
return __assign(__assign(__assign({}, (input.ChangeType !== undefined && { ChangeType: input.ChangeType })), (input.Details !== undefined && { Details: input.Details })), (input.Entity !== undefined && { | ||
Entity: serializeAws_restJson1_1Entity(input.Entity, context) | ||
})); | ||
}; | ||
var serializeAws_restJson1_1Entity = function (input, context) { | ||
var bodyParams = {}; | ||
if (input.Identifier !== undefined) { | ||
bodyParams["Identifier"] = input.Identifier; | ||
} | ||
if (input.Type !== undefined) { | ||
bodyParams["Type"] = input.Type; | ||
} | ||
return bodyParams; | ||
return __assign(__assign({}, (input.Identifier !== undefined && { Identifier: input.Identifier })), (input.Type !== undefined && { Type: input.Type })); | ||
}; | ||
var serializeAws_restJson1_1Filter = function (input, context) { | ||
var bodyParams = {}; | ||
if (input.Name !== undefined) { | ||
bodyParams["Name"] = input.Name; | ||
} | ||
if (input.ValueList !== undefined) { | ||
bodyParams["ValueList"] = serializeAws_restJson1_1ValueList(input.ValueList, context); | ||
} | ||
return bodyParams; | ||
return __assign(__assign({}, (input.Name !== undefined && { Name: input.Name })), (input.ValueList !== undefined && { | ||
ValueList: serializeAws_restJson1_1ValueList(input.ValueList, context) | ||
})); | ||
}; | ||
var serializeAws_restJson1_1FilterList = function (input, context) { | ||
var e_1, _a; | ||
var contents = []; | ||
try { | ||
for (var input_1 = __values(input), input_1_1 = input_1.next(); !input_1_1.done; input_1_1 = input_1.next()) { | ||
var entry = input_1_1.value; | ||
contents.push(serializeAws_restJson1_1Filter(entry, context)); | ||
} | ||
} | ||
catch (e_1_1) { e_1 = { error: e_1_1 }; } | ||
finally { | ||
try { | ||
if (input_1_1 && !input_1_1.done && (_a = input_1.return)) _a.call(input_1); | ||
} | ||
finally { if (e_1) throw e_1.error; } | ||
} | ||
return contents; | ||
return input.map(function (entry) { return serializeAws_restJson1_1Filter(entry, context); }); | ||
}; | ||
var serializeAws_restJson1_1RequestedChangeList = function (input, context) { | ||
var e_2, _a; | ||
var contents = []; | ||
try { | ||
for (var input_2 = __values(input), input_2_1 = input_2.next(); !input_2_1.done; input_2_1 = input_2.next()) { | ||
var entry = input_2_1.value; | ||
contents.push(serializeAws_restJson1_1Change(entry, context)); | ||
} | ||
} | ||
catch (e_2_1) { e_2 = { error: e_2_1 }; } | ||
finally { | ||
try { | ||
if (input_2_1 && !input_2_1.done && (_a = input_2.return)) _a.call(input_2); | ||
} | ||
finally { if (e_2) throw e_2.error; } | ||
} | ||
return contents; | ||
return input.map(function (entry) { return serializeAws_restJson1_1Change(entry, context); }); | ||
}; | ||
var serializeAws_restJson1_1Sort = function (input, context) { | ||
var bodyParams = {}; | ||
if (input.SortBy !== undefined) { | ||
bodyParams["SortBy"] = input.SortBy; | ||
} | ||
if (input.SortOrder !== undefined) { | ||
bodyParams["SortOrder"] = input.SortOrder; | ||
} | ||
return bodyParams; | ||
return __assign(__assign({}, (input.SortBy !== undefined && { SortBy: input.SortBy })), (input.SortOrder !== undefined && { SortOrder: input.SortOrder })); | ||
}; | ||
var serializeAws_restJson1_1ValueList = function (input, context) { | ||
var e_3, _a; | ||
var contents = []; | ||
try { | ||
for (var input_3 = __values(input), input_3_1 = input_3.next(); !input_3_1.done; input_3_1 = input_3.next()) { | ||
var entry = input_3_1.value; | ||
contents.push(entry); | ||
} | ||
} | ||
catch (e_3_1) { e_3 = { error: e_3_1 }; } | ||
finally { | ||
try { | ||
if (input_3_1 && !input_3_1.done && (_a = input_3.return)) _a.call(input_3); | ||
} | ||
finally { if (e_3) throw e_3.error; } | ||
} | ||
return contents; | ||
return input.map(function (entry) { return entry; }); | ||
}; | ||
@@ -1040,97 +973,74 @@ var deserializeAws_restJson1_1ChangeSetDescription = function (output, context) { | ||
var deserializeAws_restJson1_1ChangeSetSummaryListItem = function (output, context) { | ||
var contents = { | ||
return { | ||
__type: "ChangeSetSummaryListItem", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined, | ||
ChangeSetName: undefined, | ||
EndTime: undefined, | ||
EntityIdList: undefined, | ||
StartTime: undefined, | ||
Status: undefined | ||
ChangeSetArn: output.ChangeSetArn !== undefined && output.ChangeSetArn !== null | ||
? output.ChangeSetArn | ||
: undefined, | ||
ChangeSetId: output.ChangeSetId !== undefined && output.ChangeSetId !== null | ||
? output.ChangeSetId | ||
: undefined, | ||
ChangeSetName: output.ChangeSetName !== undefined && output.ChangeSetName !== null | ||
? output.ChangeSetName | ||
: undefined, | ||
EndTime: output.EndTime !== undefined && output.EndTime !== null | ||
? output.EndTime | ||
: undefined, | ||
EntityIdList: output.EntityIdList !== undefined && output.EntityIdList !== null | ||
? deserializeAws_restJson1_1ResourceIdList(output.EntityIdList, context) | ||
: undefined, | ||
StartTime: output.StartTime !== undefined && output.StartTime !== null | ||
? output.StartTime | ||
: undefined, | ||
Status: output.Status !== undefined && output.Status !== null | ||
? output.Status | ||
: undefined | ||
}; | ||
if (output.ChangeSetArn !== undefined && output.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = output.ChangeSetArn; | ||
} | ||
if (output.ChangeSetId !== undefined && output.ChangeSetId !== null) { | ||
contents.ChangeSetId = output.ChangeSetId; | ||
} | ||
if (output.ChangeSetName !== undefined && output.ChangeSetName !== null) { | ||
contents.ChangeSetName = output.ChangeSetName; | ||
} | ||
if (output.EndTime !== undefined && output.EndTime !== null) { | ||
contents.EndTime = output.EndTime; | ||
} | ||
if (output.EntityIdList !== undefined && output.EntityIdList !== null) { | ||
contents.EntityIdList = deserializeAws_restJson1_1ResourceIdList(output.EntityIdList, context); | ||
} | ||
if (output.StartTime !== undefined && output.StartTime !== null) { | ||
contents.StartTime = output.StartTime; | ||
} | ||
if (output.Status !== undefined && output.Status !== null) { | ||
contents.Status = output.Status; | ||
} | ||
return contents; | ||
}; | ||
var deserializeAws_restJson1_1ChangeSummary = function (output, context) { | ||
var contents = { | ||
return { | ||
__type: "ChangeSummary", | ||
ChangeType: undefined, | ||
Entity: undefined, | ||
ErrorDetailList: undefined | ||
ChangeType: output.ChangeType !== undefined && output.ChangeType !== null | ||
? output.ChangeType | ||
: undefined, | ||
Entity: output.Entity !== undefined && output.Entity !== null | ||
? deserializeAws_restJson1_1Entity(output.Entity, context) | ||
: undefined, | ||
ErrorDetailList: output.ErrorDetailList !== undefined && output.ErrorDetailList !== null | ||
? deserializeAws_restJson1_1ErrorDetailList(output.ErrorDetailList, context) | ||
: undefined | ||
}; | ||
if (output.ChangeType !== undefined && output.ChangeType !== null) { | ||
contents.ChangeType = output.ChangeType; | ||
} | ||
if (output.Entity !== undefined && output.Entity !== null) { | ||
contents.Entity = deserializeAws_restJson1_1Entity(output.Entity, context); | ||
} | ||
if (output.ErrorDetailList !== undefined && output.ErrorDetailList !== null) { | ||
contents.ErrorDetailList = deserializeAws_restJson1_1ErrorDetailList(output.ErrorDetailList, context); | ||
} | ||
return contents; | ||
}; | ||
var deserializeAws_restJson1_1Entity = function (output, context) { | ||
var contents = { | ||
return { | ||
__type: "Entity", | ||
Identifier: undefined, | ||
Type: undefined | ||
Identifier: output.Identifier !== undefined && output.Identifier !== null | ||
? output.Identifier | ||
: undefined, | ||
Type: output.Type !== undefined && output.Type !== null | ||
? output.Type | ||
: undefined | ||
}; | ||
if (output.Identifier !== undefined && output.Identifier !== null) { | ||
contents.Identifier = output.Identifier; | ||
} | ||
if (output.Type !== undefined && output.Type !== null) { | ||
contents.Type = output.Type; | ||
} | ||
return contents; | ||
}; | ||
var deserializeAws_restJson1_1EntitySummary = function (output, context) { | ||
var contents = { | ||
return { | ||
__type: "EntitySummary", | ||
EntityArn: undefined, | ||
EntityId: undefined, | ||
EntityType: undefined, | ||
LastModifiedDate: undefined, | ||
Name: undefined, | ||
Visibility: undefined | ||
EntityArn: output.EntityArn !== undefined && output.EntityArn !== null | ||
? output.EntityArn | ||
: undefined, | ||
EntityId: output.EntityId !== undefined && output.EntityId !== null | ||
? output.EntityId | ||
: undefined, | ||
EntityType: output.EntityType !== undefined && output.EntityType !== null | ||
? output.EntityType | ||
: undefined, | ||
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null | ||
? output.LastModifiedDate | ||
: undefined, | ||
Name: output.Name !== undefined && output.Name !== null | ||
? output.Name | ||
: undefined, | ||
Visibility: output.Visibility !== undefined && output.Visibility !== null | ||
? output.Visibility | ||
: undefined | ||
}; | ||
if (output.EntityArn !== undefined && output.EntityArn !== null) { | ||
contents.EntityArn = output.EntityArn; | ||
} | ||
if (output.EntityId !== undefined && output.EntityId !== null) { | ||
contents.EntityId = output.EntityId; | ||
} | ||
if (output.EntityType !== undefined && output.EntityType !== null) { | ||
contents.EntityType = output.EntityType; | ||
} | ||
if (output.LastModifiedDate !== undefined && | ||
output.LastModifiedDate !== null) { | ||
contents.LastModifiedDate = output.LastModifiedDate; | ||
} | ||
if (output.Name !== undefined && output.Name !== null) { | ||
contents.Name = output.Name; | ||
} | ||
if (output.Visibility !== undefined && output.Visibility !== null) { | ||
contents.Visibility = output.Visibility; | ||
} | ||
return contents; | ||
}; | ||
@@ -1143,14 +1053,11 @@ var deserializeAws_restJson1_1EntitySummaryList = function (output, context) { | ||
var deserializeAws_restJson1_1ErrorDetail = function (output, context) { | ||
var contents = { | ||
return { | ||
__type: "ErrorDetail", | ||
ErrorCode: undefined, | ||
ErrorMessage: undefined | ||
ErrorCode: output.ErrorCode !== undefined && output.ErrorCode !== null | ||
? output.ErrorCode | ||
: undefined, | ||
ErrorMessage: output.ErrorMessage !== undefined && output.ErrorMessage !== null | ||
? output.ErrorMessage | ||
: undefined | ||
}; | ||
if (output.ErrorCode !== undefined && output.ErrorCode !== null) { | ||
contents.ErrorCode = output.ErrorCode; | ||
} | ||
if (output.ErrorMessage !== undefined && output.ErrorMessage !== null) { | ||
contents.ErrorMessage = output.ErrorMessage; | ||
} | ||
return contents; | ||
}; | ||
@@ -1172,2 +1079,3 @@ var deserializeAws_restJson1_1ErrorDetailList = function (output, context) { | ||
var collectBody = function (streamBody, context) { | ||
if (streamBody === void 0) { streamBody = new Uint8Array(); } | ||
if (streamBody instanceof Uint8Array) { | ||
@@ -1180,6 +1088,11 @@ return Promise.resolve(streamBody); | ||
var collectBodyString = function (streamBody, context) { | ||
return collectBody(streamBody, context).then(function (body) { | ||
return context.utf8Encoder(body); | ||
}); | ||
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); }); | ||
}; | ||
var isSerializableHeaderValue = function (value) { | ||
return value !== undefined && | ||
value !== "" && | ||
(!Object.getOwnPropertyNames(value).includes("length") || | ||
value.length != 0) && | ||
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); | ||
}; | ||
var parseBody = function (streamBody, context) { | ||
@@ -1186,0 +1099,0 @@ return collectBodyString(streamBody, context).then(function (encoded) { |
import { __assign } from "tslib"; | ||
import { name, version } from "./package.json"; | ||
import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; | ||
import { invalidFunction } from "@aws-sdk/invalid-dependency"; | ||
import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { parseUrl } from "@aws-sdk/url-parser-browser"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; | ||
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-browser"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; | ||
import { name, version } from "./package.json"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { requestHandler: new FetchHttpHandler(), sha256: Sha256, urlParser: parseUrl, bodyLengthChecker: calculateBodyLength, streamCollector: streamCollector, base64Decoder: fromBase64, base64Encoder: toBase64, utf8Decoder: fromUtf8, utf8Encoder: toUtf8, defaultUserAgent: defaultUserAgent(name, version), runtime: "browser", credentialDefaultProvider: invalidFunction("Credential is missing"), regionDefaultProvider: invalidFunction("Region is missing") }); | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { runtime: "browser", base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, credentialDefaultProvider: invalidFunction("Credential is missing"), defaultUserAgent: defaultUserAgent(name, version), regionDefaultProvider: invalidFunction("Region is missing"), requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector: streamCollector, urlParser: parseUrl, utf8Decoder: fromUtf8, utf8Encoder: toUtf8 }); | ||
//# sourceMappingURL=runtimeConfig.browser.js.map |
import { __assign } from "tslib"; | ||
import { name, version } from "./package.json"; | ||
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; | ||
import { Hash } from "@aws-sdk/hash-node"; | ||
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler"; | ||
import { defaultProvider as regionDefaultProvider } from "@aws-sdk/region-provider"; | ||
import { Hash } from "@aws-sdk/hash-node"; | ||
import { NodeHttpHandler } from "@aws-sdk/node-http-handler"; | ||
import { parseUrl } from "@aws-sdk/url-parser-node"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; | ||
import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-node"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; | ||
import { name, version } from "./package.json"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { requestHandler: new NodeHttpHandler(), sha256: Hash.bind(null, "sha256"), urlParser: parseUrl, bodyLengthChecker: calculateBodyLength, streamCollector: streamCollector, base64Decoder: fromBase64, base64Encoder: toBase64, utf8Decoder: fromUtf8, utf8Encoder: toUtf8, defaultUserAgent: defaultUserAgent(name, version), runtime: "node", credentialDefaultProvider: credentialDefaultProvider, | ||
regionDefaultProvider: regionDefaultProvider }); | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { runtime: "node", base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, credentialDefaultProvider: credentialDefaultProvider, defaultUserAgent: defaultUserAgent(name, version), regionDefaultProvider: regionDefaultProvider, requestHandler: new NodeHttpHandler(), sha256: Hash.bind(null, "sha256"), streamCollector: streamCollector, urlParser: parseUrl, utf8Decoder: fromUtf8, utf8Encoder: toUtf8 }); | ||
//# sourceMappingURL=runtimeConfig.js.map |
import { __assign } from "tslib"; | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { name, version } from "./package.json"; | ||
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-native"; | ||
import { parseUrl } from "@aws-sdk/url-parser-node"; | ||
import { name, version } from "./package.json"; | ||
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; | ||
export var ClientDefaultValues = __assign(__assign({}, BrowserDefaults), { requestHandler: new FetchHttpHandler({ bufferBody: true }), sha256: Sha256, streamCollector: streamCollector, urlParser: parseUrl, defaultUserAgent: "aws-sdk-js-v3-react-native-" + name + "/" + version, runtime: "react-native" }); | ||
export var ClientDefaultValues = __assign(__assign({}, BrowserDefaults), { runtime: "react-native", defaultUserAgent: "aws-sdk-js-v3-react-native-" + name + "/" + version, sha256: Sha256, urlParser: parseUrl }); | ||
//# sourceMappingURL=runtimeConfig.native.js.map |
@@ -5,5 +5,5 @@ import { defaultRegionInfoProvider } from "./endpoints"; | ||
disableHostPrefix: false, | ||
signingName: "aws-marketplace", | ||
regionInfoProvider: defaultRegionInfoProvider | ||
regionInfoProvider: defaultRegionInfoProvider, | ||
signingName: "aws-marketplace" | ||
}; | ||
//# sourceMappingURL=runtimeConfig.shared.js.map |
@@ -237,3 +237,5 @@ import { | ||
destroy(): void {} | ||
destroy(): void { | ||
super.destroy(); | ||
} | ||
} |
@@ -19,5 +19,4 @@ import { | ||
export namespace AccessDeniedException { | ||
export function isa(o: any): o is AccessDeniedException { | ||
return __isa(o, "AccessDeniedException"); | ||
} | ||
export const isa = (o: any): o is AccessDeniedException => | ||
__isa(o, "AccessDeniedException"); | ||
} | ||
@@ -41,5 +40,4 @@ | ||
export namespace CancelChangeSetRequest { | ||
export function isa(o: any): o is CancelChangeSetRequest { | ||
return __isa(o, "CancelChangeSetRequest"); | ||
} | ||
export const isa = (o: any): o is CancelChangeSetRequest => | ||
__isa(o, "CancelChangeSetRequest"); | ||
} | ||
@@ -61,5 +59,4 @@ | ||
export namespace CancelChangeSetResponse { | ||
export function isa(o: any): o is CancelChangeSetResponse { | ||
return __isa(o, "CancelChangeSetResponse"); | ||
} | ||
export const isa = (o: any): o is CancelChangeSetResponse => | ||
__isa(o, "CancelChangeSetResponse"); | ||
} | ||
@@ -93,5 +90,3 @@ | ||
export namespace Change { | ||
export function isa(o: any): o is Change { | ||
return __isa(o, "Change"); | ||
} | ||
export const isa = (o: any): o is Change => __isa(o, "Change"); | ||
} | ||
@@ -131,3 +126,3 @@ | ||
*/ | ||
EntityIdList?: Array<string>; | ||
EntityIdList?: string[]; | ||
@@ -147,5 +142,4 @@ /** | ||
export namespace ChangeSetSummaryListItem { | ||
export function isa(o: any): o is ChangeSetSummaryListItem { | ||
return __isa(o, "ChangeSetSummaryListItem"); | ||
} | ||
export const isa = (o: any): o is ChangeSetSummaryListItem => | ||
__isa(o, "ChangeSetSummaryListItem"); | ||
} | ||
@@ -180,9 +174,7 @@ | ||
*/ | ||
ErrorDetailList?: Array<ErrorDetail>; | ||
ErrorDetailList?: ErrorDetail[]; | ||
} | ||
export namespace ChangeSummary { | ||
export function isa(o: any): o is ChangeSummary { | ||
return __isa(o, "ChangeSummary"); | ||
} | ||
export const isa = (o: any): o is ChangeSummary => __isa(o, "ChangeSummary"); | ||
} | ||
@@ -207,5 +199,4 @@ | ||
export namespace DescribeChangeSetRequest { | ||
export function isa(o: any): o is DescribeChangeSetRequest { | ||
return __isa(o, "DescribeChangeSetRequest"); | ||
} | ||
export const isa = (o: any): o is DescribeChangeSetRequest => | ||
__isa(o, "DescribeChangeSetRequest"); | ||
} | ||
@@ -218,3 +209,3 @@ | ||
*/ | ||
ChangeSet?: Array<ChangeSummary>; | ||
ChangeSet?: ChangeSummary[]; | ||
@@ -264,5 +255,4 @@ /** | ||
export namespace DescribeChangeSetResponse { | ||
export function isa(o: any): o is DescribeChangeSetResponse { | ||
return __isa(o, "DescribeChangeSetResponse"); | ||
} | ||
export const isa = (o: any): o is DescribeChangeSetResponse => | ||
__isa(o, "DescribeChangeSetResponse"); | ||
} | ||
@@ -286,5 +276,4 @@ | ||
export namespace DescribeEntityRequest { | ||
export function isa(o: any): o is DescribeEntityRequest { | ||
return __isa(o, "DescribeEntityRequest"); | ||
} | ||
export const isa = (o: any): o is DescribeEntityRequest => | ||
__isa(o, "DescribeEntityRequest"); | ||
} | ||
@@ -324,5 +313,4 @@ | ||
export namespace DescribeEntityResponse { | ||
export function isa(o: any): o is DescribeEntityResponse { | ||
return __isa(o, "DescribeEntityResponse"); | ||
} | ||
export const isa = (o: any): o is DescribeEntityResponse => | ||
__isa(o, "DescribeEntityResponse"); | ||
} | ||
@@ -348,5 +336,3 @@ | ||
export namespace Entity { | ||
export function isa(o: any): o is Entity { | ||
return __isa(o, "Entity"); | ||
} | ||
export const isa = (o: any): o is Entity => __isa(o, "Entity"); | ||
} | ||
@@ -398,5 +384,3 @@ | ||
export namespace EntitySummary { | ||
export function isa(o: any): o is EntitySummary { | ||
return __isa(o, "EntitySummary"); | ||
} | ||
export const isa = (o: any): o is EntitySummary => __isa(o, "EntitySummary"); | ||
} | ||
@@ -421,5 +405,3 @@ | ||
export namespace ErrorDetail { | ||
export function isa(o: any): o is ErrorDetail { | ||
return __isa(o, "ErrorDetail"); | ||
} | ||
export const isa = (o: any): o is ErrorDetail => __isa(o, "ErrorDetail"); | ||
} | ||
@@ -486,9 +468,7 @@ | ||
*/ | ||
ValueList?: Array<string>; | ||
ValueList?: string[]; | ||
} | ||
export namespace Filter { | ||
export function isa(o: any): o is Filter { | ||
return __isa(o, "Filter"); | ||
} | ||
export const isa = (o: any): o is Filter => __isa(o, "Filter"); | ||
} | ||
@@ -508,5 +488,4 @@ | ||
export namespace InternalServiceException { | ||
export function isa(o: any): o is InternalServiceException { | ||
return __isa(o, "InternalServiceException"); | ||
} | ||
export const isa = (o: any): o is InternalServiceException => | ||
__isa(o, "InternalServiceException"); | ||
} | ||
@@ -525,3 +504,3 @@ | ||
*/ | ||
FilterList?: Array<Filter>; | ||
FilterList?: Filter[]; | ||
@@ -549,5 +528,4 @@ /** | ||
export namespace ListChangeSetsRequest { | ||
export function isa(o: any): o is ListChangeSetsRequest { | ||
return __isa(o, "ListChangeSetsRequest"); | ||
} | ||
export const isa = (o: any): o is ListChangeSetsRequest => | ||
__isa(o, "ListChangeSetsRequest"); | ||
} | ||
@@ -560,3 +538,3 @@ | ||
*/ | ||
ChangeSetSummaryList?: Array<ChangeSetSummaryListItem>; | ||
ChangeSetSummaryList?: ChangeSetSummaryListItem[]; | ||
@@ -570,5 +548,4 @@ /** | ||
export namespace ListChangeSetsResponse { | ||
export function isa(o: any): o is ListChangeSetsResponse { | ||
return __isa(o, "ListChangeSetsResponse"); | ||
} | ||
export const isa = (o: any): o is ListChangeSetsResponse => | ||
__isa(o, "ListChangeSetsResponse"); | ||
} | ||
@@ -593,3 +570,3 @@ | ||
*/ | ||
FilterList?: Array<Filter>; | ||
FilterList?: Filter[]; | ||
@@ -615,5 +592,4 @@ /** | ||
export namespace ListEntitiesRequest { | ||
export function isa(o: any): o is ListEntitiesRequest { | ||
return __isa(o, "ListEntitiesRequest"); | ||
} | ||
export const isa = (o: any): o is ListEntitiesRequest => | ||
__isa(o, "ListEntitiesRequest"); | ||
} | ||
@@ -626,3 +602,3 @@ | ||
*/ | ||
EntitySummaryList?: Array<EntitySummary>; | ||
EntitySummaryList?: EntitySummary[]; | ||
@@ -636,5 +612,4 @@ /** | ||
export namespace ListEntitiesResponse { | ||
export function isa(o: any): o is ListEntitiesResponse { | ||
return __isa(o, "ListEntitiesResponse"); | ||
} | ||
export const isa = (o: any): o is ListEntitiesResponse => | ||
__isa(o, "ListEntitiesResponse"); | ||
} | ||
@@ -654,5 +629,4 @@ | ||
export namespace ResourceInUseException { | ||
export function isa(o: any): o is ResourceInUseException { | ||
return __isa(o, "ResourceInUseException"); | ||
} | ||
export const isa = (o: any): o is ResourceInUseException => | ||
__isa(o, "ResourceInUseException"); | ||
} | ||
@@ -672,5 +646,4 @@ | ||
export namespace ResourceNotFoundException { | ||
export function isa(o: any): o is ResourceNotFoundException { | ||
return __isa(o, "ResourceNotFoundException"); | ||
} | ||
export const isa = (o: any): o is ResourceNotFoundException => | ||
__isa(o, "ResourceNotFoundException"); | ||
} | ||
@@ -690,5 +663,4 @@ | ||
export namespace ResourceNotSupportedException { | ||
export function isa(o: any): o is ResourceNotSupportedException { | ||
return __isa(o, "ResourceNotSupportedException"); | ||
} | ||
export const isa = (o: any): o is ResourceNotSupportedException => | ||
__isa(o, "ResourceNotSupportedException"); | ||
} | ||
@@ -708,5 +680,4 @@ | ||
export namespace ServiceQuotaExceededException { | ||
export function isa(o: any): o is ServiceQuotaExceededException { | ||
return __isa(o, "ServiceQuotaExceededException"); | ||
} | ||
export const isa = (o: any): o is ServiceQuotaExceededException => | ||
__isa(o, "ServiceQuotaExceededException"); | ||
} | ||
@@ -738,5 +709,3 @@ | ||
export namespace Sort { | ||
export function isa(o: any): o is Sort { | ||
return __isa(o, "Sort"); | ||
} | ||
export const isa = (o: any): o is Sort => __isa(o, "Sort"); | ||
} | ||
@@ -760,3 +729,3 @@ | ||
*/ | ||
ChangeSet: Array<Change> | undefined; | ||
ChangeSet: Change[] | undefined; | ||
@@ -776,5 +745,4 @@ /** | ||
export namespace StartChangeSetRequest { | ||
export function isa(o: any): o is StartChangeSetRequest { | ||
return __isa(o, "StartChangeSetRequest"); | ||
} | ||
export const isa = (o: any): o is StartChangeSetRequest => | ||
__isa(o, "StartChangeSetRequest"); | ||
} | ||
@@ -796,5 +764,4 @@ | ||
export namespace StartChangeSetResponse { | ||
export function isa(o: any): o is StartChangeSetResponse { | ||
return __isa(o, "StartChangeSetResponse"); | ||
} | ||
export const isa = (o: any): o is StartChangeSetResponse => | ||
__isa(o, "StartChangeSetResponse"); | ||
} | ||
@@ -814,5 +781,4 @@ | ||
export namespace ThrottlingException { | ||
export function isa(o: any): o is ThrottlingException { | ||
return __isa(o, "ThrottlingException"); | ||
} | ||
export const isa = (o: any): o is ThrottlingException => | ||
__isa(o, "ThrottlingException"); | ||
} | ||
@@ -832,5 +798,4 @@ | ||
export namespace ValidationException { | ||
export function isa(o: any): o is ValidationException { | ||
return __isa(o, "ValidationException"); | ||
} | ||
export const isa = (o: any): o is ValidationException => | ||
__isa(o, "ValidationException"); | ||
} |
{ | ||
"name": "@aws-sdk/client-marketplace-catalog", | ||
"description": "@aws-sdk/client-marketplace-catalog client", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0-gamma.1", | ||
"scripts": { | ||
@@ -16,3 +16,2 @@ "clean": "npm run remove-definitions && npm run remove-dist && npm run remove-js && npm run remove-maps", | ||
"test": "exit 0", | ||
"smoke-test": "npm run pretest && node ./test/smoke/index.spec.js", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
@@ -34,32 +33,29 @@ "build": "yarn pretest && yarn build:es" | ||
"@aws-crypto/sha256-js": "^1.0.0-alpha.0", | ||
"@aws-sdk/config-resolver": "1.0.0-beta.4", | ||
"@aws-sdk/credential-provider-node": "1.0.0-beta.4", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/hash-node": "1.0.0-beta.4", | ||
"@aws-sdk/invalid-dependency": "1.0.0-beta.2", | ||
"@aws-sdk/middleware-content-length": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-host-header": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-retry": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-serde": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-signing": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-stack": "1.0.0-beta.4", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-beta.4", | ||
"@aws-sdk/node-http-handler": "1.0.0-beta.4", | ||
"@aws-sdk/protocol-http": "1.0.0-beta.4", | ||
"@aws-sdk/region-provider": "1.0.0-beta.4", | ||
"@aws-sdk/smithy-client": "1.0.0-beta.5", | ||
"@aws-sdk/stream-collector-browser": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-native": "1.0.0-beta.4", | ||
"@aws-sdk/stream-collector-node": "1.0.0-beta.4", | ||
"@aws-sdk/types": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-browser": "1.0.0-beta.4", | ||
"@aws-sdk/url-parser-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-base64-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-base64-node": "1.0.0-beta.3", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-body-length-node": "1.0.0-beta.2", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-beta.4", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-beta.4", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-beta.2", | ||
"@aws-sdk/util-utf8-node": "1.0.0-beta.3", | ||
"@aws-sdk/config-resolver": "1.0.0-gamma.1", | ||
"@aws-sdk/credential-provider-node": "1.0.0-gamma.1", | ||
"@aws-sdk/fetch-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/hash-node": "1.0.0-gamma.1", | ||
"@aws-sdk/invalid-dependency": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-content-length": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-host-header": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-retry": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-serde": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-signing": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-stack": "1.0.0-gamma.1", | ||
"@aws-sdk/middleware-user-agent": "1.0.0-gamma.1", | ||
"@aws-sdk/node-http-handler": "1.0.0-gamma.1", | ||
"@aws-sdk/protocol-http": "1.0.0-gamma.1", | ||
"@aws-sdk/region-provider": "1.0.0-gamma.1", | ||
"@aws-sdk/smithy-client": "1.0.0-gamma.1", | ||
"@aws-sdk/types": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/url-parser-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-base64-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-body-length-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-user-agent-node": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.1", | ||
"@aws-sdk/util-utf8-node": "1.0.0-gamma.1", | ||
"tslib": "^1.8.0" | ||
@@ -66,0 +62,0 @@ }, |
@@ -58,198 +58,185 @@ import { | ||
export async function serializeAws_restJson1_1CancelChangeSetCommand( | ||
export const serializeAws_restJson1_1CancelChangeSetCommand = async ( | ||
input: CancelChangeSetCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = ""; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/CancelChangeSet"; | ||
const query: any = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
const query: any = { | ||
...(input.Catalog !== undefined && { catalog: input.Catalog }), | ||
...(input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId }) | ||
}; | ||
let body: any; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "PATCH", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
query, | ||
body | ||
}); | ||
} | ||
}; | ||
export async function serializeAws_restJson1_1DescribeChangeSetCommand( | ||
export const serializeAws_restJson1_1DescribeChangeSetCommand = async ( | ||
input: DescribeChangeSetCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = ""; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/DescribeChangeSet"; | ||
const query: any = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSetId !== undefined) { | ||
query["changeSetId"] = input.ChangeSetId; | ||
} | ||
const query: any = { | ||
...(input.Catalog !== undefined && { catalog: input.Catalog }), | ||
...(input.ChangeSetId !== undefined && { changeSetId: input.ChangeSetId }) | ||
}; | ||
let body: any; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "GET", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
query, | ||
body | ||
}); | ||
} | ||
}; | ||
export async function serializeAws_restJson1_1DescribeEntityCommand( | ||
export const serializeAws_restJson1_1DescribeEntityCommand = async ( | ||
input: DescribeEntityCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = ""; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "" | ||
}; | ||
let resolvedPath = "/DescribeEntity"; | ||
const query: any = {}; | ||
if (input.Catalog !== undefined) { | ||
query["catalog"] = input.Catalog; | ||
} | ||
if (input.EntityId !== undefined) { | ||
query["entityId"] = input.EntityId; | ||
} | ||
const query: any = { | ||
...(input.Catalog !== undefined && { catalog: input.Catalog }), | ||
...(input.EntityId !== undefined && { entityId: input.EntityId }) | ||
}; | ||
let body: any; | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "GET", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
query: query, | ||
body: body | ||
query, | ||
body | ||
}); | ||
} | ||
}; | ||
export async function serializeAws_restJson1_1ListChangeSetsCommand( | ||
export const serializeAws_restJson1_1ListChangeSetsCommand = async ( | ||
input: ListChangeSetsCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = "application/json"; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/ListChangeSets"; | ||
let body: any; | ||
const bodyParams: any = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList( | ||
input.FilterList, | ||
context | ||
); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
body = JSON.stringify({ | ||
...(input.Catalog !== undefined && { Catalog: input.Catalog }), | ||
...(input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
}), | ||
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults }), | ||
...(input.NextToken !== undefined && { NextToken: input.NextToken }), | ||
...(input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}) | ||
}); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
body: body | ||
body | ||
}); | ||
} | ||
}; | ||
export async function serializeAws_restJson1_1ListEntitiesCommand( | ||
export const serializeAws_restJson1_1ListEntitiesCommand = async ( | ||
input: ListEntitiesCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = "application/json"; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/ListEntities"; | ||
let body: any; | ||
const bodyParams: any = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.EntityType !== undefined) { | ||
bodyParams["EntityType"] = input.EntityType; | ||
} | ||
if (input.FilterList !== undefined) { | ||
bodyParams["FilterList"] = serializeAws_restJson1_1FilterList( | ||
input.FilterList, | ||
context | ||
); | ||
} | ||
if (input.MaxResults !== undefined) { | ||
bodyParams["MaxResults"] = input.MaxResults; | ||
} | ||
if (input.NextToken !== undefined) { | ||
bodyParams["NextToken"] = input.NextToken; | ||
} | ||
if (input.Sort !== undefined) { | ||
bodyParams["Sort"] = serializeAws_restJson1_1Sort(input.Sort, context); | ||
} | ||
body = JSON.stringify(bodyParams); | ||
body = JSON.stringify({ | ||
...(input.Catalog !== undefined && { Catalog: input.Catalog }), | ||
...(input.EntityType !== undefined && { EntityType: input.EntityType }), | ||
...(input.FilterList !== undefined && { | ||
FilterList: serializeAws_restJson1_1FilterList(input.FilterList, context) | ||
}), | ||
...(input.MaxResults !== undefined && { MaxResults: input.MaxResults }), | ||
...(input.NextToken !== undefined && { NextToken: input.NextToken }), | ||
...(input.Sort !== undefined && { | ||
Sort: serializeAws_restJson1_1Sort(input.Sort, context) | ||
}) | ||
}); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
body: body | ||
body | ||
}); | ||
} | ||
}; | ||
export async function serializeAws_restJson1_1StartChangeSetCommand( | ||
export const serializeAws_restJson1_1StartChangeSetCommand = async ( | ||
input: StartChangeSetCommandInput, | ||
context: __SerdeContext | ||
): Promise<__HttpRequest> { | ||
const headers: any = {}; | ||
headers["Content-Type"] = "application/json"; | ||
): Promise<__HttpRequest> => { | ||
const headers: any = { | ||
"Content-Type": "application/json" | ||
}; | ||
let resolvedPath = "/StartChangeSet"; | ||
let body: any; | ||
const bodyParams: any = {}; | ||
if (input.Catalog !== undefined) { | ||
bodyParams["Catalog"] = input.Catalog; | ||
} | ||
if (input.ChangeSet !== undefined) { | ||
bodyParams["ChangeSet"] = serializeAws_restJson1_1RequestedChangeList( | ||
input.ChangeSet, | ||
context | ||
); | ||
} | ||
if (input.ChangeSetName !== undefined) { | ||
bodyParams["ChangeSetName"] = input.ChangeSetName; | ||
} | ||
if (input.ClientRequestToken !== undefined) { | ||
bodyParams["ClientRequestToken"] = input.ClientRequestToken; | ||
} | ||
body = JSON.stringify(bodyParams); | ||
body = JSON.stringify({ | ||
...(input.Catalog !== undefined && { Catalog: input.Catalog }), | ||
...(input.ChangeSet !== undefined && { | ||
ChangeSet: serializeAws_restJson1_1RequestedChangeList( | ||
input.ChangeSet, | ||
context | ||
) | ||
}), | ||
...(input.ChangeSetName !== undefined && { | ||
ChangeSetName: input.ChangeSetName | ||
}), | ||
...(input.ClientRequestToken !== undefined && { | ||
ClientRequestToken: input.ClientRequestToken | ||
}) | ||
}); | ||
const { hostname, protocol = "https", port } = await context.endpoint(); | ||
return new __HttpRequest({ | ||
...context.endpoint, | ||
protocol: "https", | ||
protocol, | ||
hostname, | ||
port, | ||
method: "POST", | ||
headers: headers, | ||
headers, | ||
path: resolvedPath, | ||
body: body | ||
body | ||
}); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1CancelChangeSetCommand( | ||
export const deserializeAws_restJson1_1CancelChangeSetCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<CancelChangeSetCommandOutput> { | ||
): Promise<CancelChangeSetCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -275,8 +262,8 @@ return deserializeAws_restJson1_1CancelChangeSetCommandError( | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1CancelChangeSetCommandError( | ||
const deserializeAws_restJson1_1CancelChangeSetCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<CancelChangeSetCommandOutput> { | ||
): Promise<CancelChangeSetCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -371,8 +358,8 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1DescribeChangeSetCommand( | ||
export const deserializeAws_restJson1_1DescribeChangeSetCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<DescribeChangeSetCommandOutput> { | ||
): Promise<DescribeChangeSetCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -428,8 +415,8 @@ return deserializeAws_restJson1_1DescribeChangeSetCommandError( | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1DescribeChangeSetCommandError( | ||
const deserializeAws_restJson1_1DescribeChangeSetCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<DescribeChangeSetCommandOutput> { | ||
): Promise<DescribeChangeSetCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -513,8 +500,8 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1DescribeEntityCommand( | ||
export const deserializeAws_restJson1_1DescribeEntityCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<DescribeEntityCommandOutput> { | ||
): Promise<DescribeEntityCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -552,8 +539,8 @@ return deserializeAws_restJson1_1DescribeEntityCommandError( | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1DescribeEntityCommandError( | ||
const deserializeAws_restJson1_1DescribeEntityCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<DescribeEntityCommandOutput> { | ||
): Promise<DescribeEntityCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -648,8 +635,8 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1ListChangeSetsCommand( | ||
export const deserializeAws_restJson1_1ListChangeSetsCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<ListChangeSetsCommandOutput> { | ||
): Promise<ListChangeSetsCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -681,8 +668,8 @@ return deserializeAws_restJson1_1ListChangeSetsCommandError( | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1ListChangeSetsCommandError( | ||
const deserializeAws_restJson1_1ListChangeSetsCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<ListChangeSetsCommandOutput> { | ||
): Promise<ListChangeSetsCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -755,8 +742,8 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1ListEntitiesCommand( | ||
export const deserializeAws_restJson1_1ListEntitiesCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<ListEntitiesCommandOutput> { | ||
): Promise<ListEntitiesCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -782,8 +769,8 @@ return deserializeAws_restJson1_1ListEntitiesCommandError(output, context); | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1ListEntitiesCommandError( | ||
const deserializeAws_restJson1_1ListEntitiesCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<ListEntitiesCommandOutput> { | ||
): Promise<ListEntitiesCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -867,8 +854,8 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
export async function deserializeAws_restJson1_1StartChangeSetCommand( | ||
export const deserializeAws_restJson1_1StartChangeSetCommand = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<StartChangeSetCommandOutput> { | ||
): Promise<StartChangeSetCommandOutput> => { | ||
if (output.statusCode !== 200 && output.statusCode >= 400) { | ||
@@ -894,8 +881,8 @@ return deserializeAws_restJson1_1StartChangeSetCommandError( | ||
return Promise.resolve(contents); | ||
} | ||
}; | ||
async function deserializeAws_restJson1_1StartChangeSetCommandError( | ||
const deserializeAws_restJson1_1StartChangeSetCommandError = async ( | ||
output: __HttpResponse, | ||
context: __SerdeContext | ||
): Promise<StartChangeSetCommandOutput> { | ||
): Promise<StartChangeSetCommandOutput> => { | ||
const parsedOutput: any = { | ||
@@ -1001,3 +988,3 @@ ...output, | ||
return Promise.reject(Object.assign(new Error(message), response)); | ||
} | ||
}; | ||
@@ -1144,16 +1131,9 @@ const deserializeAws_restJson1_1AccessDeniedExceptionResponse = async ( | ||
): any => { | ||
const bodyParams: any = {}; | ||
if (input.ChangeType !== undefined) { | ||
bodyParams["ChangeType"] = input.ChangeType; | ||
} | ||
if (input.Details !== undefined) { | ||
bodyParams["Details"] = input.Details; | ||
} | ||
if (input.Entity !== undefined) { | ||
bodyParams["Entity"] = serializeAws_restJson1_1Entity( | ||
input.Entity, | ||
context | ||
); | ||
} | ||
return bodyParams; | ||
return { | ||
...(input.ChangeType !== undefined && { ChangeType: input.ChangeType }), | ||
...(input.Details !== undefined && { Details: input.Details }), | ||
...(input.Entity !== undefined && { | ||
Entity: serializeAws_restJson1_1Entity(input.Entity, context) | ||
}) | ||
}; | ||
}; | ||
@@ -1165,10 +1145,6 @@ | ||
): any => { | ||
const bodyParams: any = {}; | ||
if (input.Identifier !== undefined) { | ||
bodyParams["Identifier"] = input.Identifier; | ||
} | ||
if (input.Type !== undefined) { | ||
bodyParams["Type"] = input.Type; | ||
} | ||
return bodyParams; | ||
return { | ||
...(input.Identifier !== undefined && { Identifier: input.Identifier }), | ||
...(input.Type !== undefined && { Type: input.Type }) | ||
}; | ||
}; | ||
@@ -1180,35 +1156,22 @@ | ||
): any => { | ||
const bodyParams: any = {}; | ||
if (input.Name !== undefined) { | ||
bodyParams["Name"] = input.Name; | ||
} | ||
if (input.ValueList !== undefined) { | ||
bodyParams["ValueList"] = serializeAws_restJson1_1ValueList( | ||
input.ValueList, | ||
context | ||
); | ||
} | ||
return bodyParams; | ||
return { | ||
...(input.Name !== undefined && { Name: input.Name }), | ||
...(input.ValueList !== undefined && { | ||
ValueList: serializeAws_restJson1_1ValueList(input.ValueList, context) | ||
}) | ||
}; | ||
}; | ||
const serializeAws_restJson1_1FilterList = ( | ||
input: Array<Filter>, | ||
input: Filter[], | ||
context: __SerdeContext | ||
): any => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(serializeAws_restJson1_1Filter(entry, context)); | ||
} | ||
return contents; | ||
return input.map(entry => serializeAws_restJson1_1Filter(entry, context)); | ||
}; | ||
const serializeAws_restJson1_1RequestedChangeList = ( | ||
input: Array<Change>, | ||
input: Change[], | ||
context: __SerdeContext | ||
): any => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(serializeAws_restJson1_1Change(entry, context)); | ||
} | ||
return contents; | ||
return input.map(entry => serializeAws_restJson1_1Change(entry, context)); | ||
}; | ||
@@ -1220,21 +1183,13 @@ | ||
): any => { | ||
const bodyParams: any = {}; | ||
if (input.SortBy !== undefined) { | ||
bodyParams["SortBy"] = input.SortBy; | ||
} | ||
if (input.SortOrder !== undefined) { | ||
bodyParams["SortOrder"] = input.SortOrder; | ||
} | ||
return bodyParams; | ||
return { | ||
...(input.SortBy !== undefined && { SortBy: input.SortBy }), | ||
...(input.SortOrder !== undefined && { SortOrder: input.SortOrder }) | ||
}; | ||
}; | ||
const serializeAws_restJson1_1ValueList = ( | ||
input: Array<string>, | ||
input: string[], | ||
context: __SerdeContext | ||
): any => { | ||
const contents = []; | ||
for (let entry of input) { | ||
contents.push(entry); | ||
} | ||
return contents; | ||
return input.map(entry => entry); | ||
}; | ||
@@ -1245,3 +1200,3 @@ | ||
context: __SerdeContext | ||
): Array<ChangeSummary> => { | ||
): ChangeSummary[] => { | ||
return (output || []).map((entry: any) => | ||
@@ -1255,3 +1210,3 @@ deserializeAws_restJson1_1ChangeSummary(entry, context) | ||
context: __SerdeContext | ||
): Array<ChangeSetSummaryListItem> => { | ||
): ChangeSetSummaryListItem[] => { | ||
return (output || []).map((entry: any) => | ||
@@ -1266,37 +1221,33 @@ deserializeAws_restJson1_1ChangeSetSummaryListItem(entry, context) | ||
): ChangeSetSummaryListItem => { | ||
let contents: any = { | ||
return { | ||
__type: "ChangeSetSummaryListItem", | ||
ChangeSetArn: undefined, | ||
ChangeSetId: undefined, | ||
ChangeSetName: undefined, | ||
EndTime: undefined, | ||
EntityIdList: undefined, | ||
StartTime: undefined, | ||
Status: undefined | ||
}; | ||
if (output.ChangeSetArn !== undefined && output.ChangeSetArn !== null) { | ||
contents.ChangeSetArn = output.ChangeSetArn; | ||
} | ||
if (output.ChangeSetId !== undefined && output.ChangeSetId !== null) { | ||
contents.ChangeSetId = output.ChangeSetId; | ||
} | ||
if (output.ChangeSetName !== undefined && output.ChangeSetName !== null) { | ||
contents.ChangeSetName = output.ChangeSetName; | ||
} | ||
if (output.EndTime !== undefined && output.EndTime !== null) { | ||
contents.EndTime = output.EndTime; | ||
} | ||
if (output.EntityIdList !== undefined && output.EntityIdList !== null) { | ||
contents.EntityIdList = deserializeAws_restJson1_1ResourceIdList( | ||
output.EntityIdList, | ||
context | ||
); | ||
} | ||
if (output.StartTime !== undefined && output.StartTime !== null) { | ||
contents.StartTime = output.StartTime; | ||
} | ||
if (output.Status !== undefined && output.Status !== null) { | ||
contents.Status = output.Status; | ||
} | ||
return contents; | ||
ChangeSetArn: | ||
output.ChangeSetArn !== undefined && output.ChangeSetArn !== null | ||
? output.ChangeSetArn | ||
: undefined, | ||
ChangeSetId: | ||
output.ChangeSetId !== undefined && output.ChangeSetId !== null | ||
? output.ChangeSetId | ||
: undefined, | ||
ChangeSetName: | ||
output.ChangeSetName !== undefined && output.ChangeSetName !== null | ||
? output.ChangeSetName | ||
: undefined, | ||
EndTime: | ||
output.EndTime !== undefined && output.EndTime !== null | ||
? output.EndTime | ||
: undefined, | ||
EntityIdList: | ||
output.EntityIdList !== undefined && output.EntityIdList !== null | ||
? deserializeAws_restJson1_1ResourceIdList(output.EntityIdList, context) | ||
: undefined, | ||
StartTime: | ||
output.StartTime !== undefined && output.StartTime !== null | ||
? output.StartTime | ||
: undefined, | ||
Status: | ||
output.Status !== undefined && output.Status !== null | ||
? output.Status | ||
: undefined | ||
} as any; | ||
}; | ||
@@ -1308,21 +1259,20 @@ | ||
): ChangeSummary => { | ||
let contents: any = { | ||
return { | ||
__type: "ChangeSummary", | ||
ChangeType: undefined, | ||
Entity: undefined, | ||
ErrorDetailList: undefined | ||
}; | ||
if (output.ChangeType !== undefined && output.ChangeType !== null) { | ||
contents.ChangeType = output.ChangeType; | ||
} | ||
if (output.Entity !== undefined && output.Entity !== null) { | ||
contents.Entity = deserializeAws_restJson1_1Entity(output.Entity, context); | ||
} | ||
if (output.ErrorDetailList !== undefined && output.ErrorDetailList !== null) { | ||
contents.ErrorDetailList = deserializeAws_restJson1_1ErrorDetailList( | ||
output.ErrorDetailList, | ||
context | ||
); | ||
} | ||
return contents; | ||
ChangeType: | ||
output.ChangeType !== undefined && output.ChangeType !== null | ||
? output.ChangeType | ||
: undefined, | ||
Entity: | ||
output.Entity !== undefined && output.Entity !== null | ||
? deserializeAws_restJson1_1Entity(output.Entity, context) | ||
: undefined, | ||
ErrorDetailList: | ||
output.ErrorDetailList !== undefined && output.ErrorDetailList !== null | ||
? deserializeAws_restJson1_1ErrorDetailList( | ||
output.ErrorDetailList, | ||
context | ||
) | ||
: undefined | ||
} as any; | ||
}; | ||
@@ -1334,14 +1284,13 @@ | ||
): Entity => { | ||
let contents: any = { | ||
return { | ||
__type: "Entity", | ||
Identifier: undefined, | ||
Type: undefined | ||
}; | ||
if (output.Identifier !== undefined && output.Identifier !== null) { | ||
contents.Identifier = output.Identifier; | ||
} | ||
if (output.Type !== undefined && output.Type !== null) { | ||
contents.Type = output.Type; | ||
} | ||
return contents; | ||
Identifier: | ||
output.Identifier !== undefined && output.Identifier !== null | ||
? output.Identifier | ||
: undefined, | ||
Type: | ||
output.Type !== undefined && output.Type !== null | ||
? output.Type | ||
: undefined | ||
} as any; | ||
}; | ||
@@ -1353,33 +1302,29 @@ | ||
): EntitySummary => { | ||
let contents: any = { | ||
return { | ||
__type: "EntitySummary", | ||
EntityArn: undefined, | ||
EntityId: undefined, | ||
EntityType: undefined, | ||
LastModifiedDate: undefined, | ||
Name: undefined, | ||
Visibility: undefined | ||
}; | ||
if (output.EntityArn !== undefined && output.EntityArn !== null) { | ||
contents.EntityArn = output.EntityArn; | ||
} | ||
if (output.EntityId !== undefined && output.EntityId !== null) { | ||
contents.EntityId = output.EntityId; | ||
} | ||
if (output.EntityType !== undefined && output.EntityType !== null) { | ||
contents.EntityType = output.EntityType; | ||
} | ||
if ( | ||
output.LastModifiedDate !== undefined && | ||
output.LastModifiedDate !== null | ||
) { | ||
contents.LastModifiedDate = output.LastModifiedDate; | ||
} | ||
if (output.Name !== undefined && output.Name !== null) { | ||
contents.Name = output.Name; | ||
} | ||
if (output.Visibility !== undefined && output.Visibility !== null) { | ||
contents.Visibility = output.Visibility; | ||
} | ||
return contents; | ||
EntityArn: | ||
output.EntityArn !== undefined && output.EntityArn !== null | ||
? output.EntityArn | ||
: undefined, | ||
EntityId: | ||
output.EntityId !== undefined && output.EntityId !== null | ||
? output.EntityId | ||
: undefined, | ||
EntityType: | ||
output.EntityType !== undefined && output.EntityType !== null | ||
? output.EntityType | ||
: undefined, | ||
LastModifiedDate: | ||
output.LastModifiedDate !== undefined && output.LastModifiedDate !== null | ||
? output.LastModifiedDate | ||
: undefined, | ||
Name: | ||
output.Name !== undefined && output.Name !== null | ||
? output.Name | ||
: undefined, | ||
Visibility: | ||
output.Visibility !== undefined && output.Visibility !== null | ||
? output.Visibility | ||
: undefined | ||
} as any; | ||
}; | ||
@@ -1390,3 +1335,3 @@ | ||
context: __SerdeContext | ||
): Array<EntitySummary> => { | ||
): EntitySummary[] => { | ||
return (output || []).map((entry: any) => | ||
@@ -1401,14 +1346,13 @@ deserializeAws_restJson1_1EntitySummary(entry, context) | ||
): ErrorDetail => { | ||
let contents: any = { | ||
return { | ||
__type: "ErrorDetail", | ||
ErrorCode: undefined, | ||
ErrorMessage: undefined | ||
}; | ||
if (output.ErrorCode !== undefined && output.ErrorCode !== null) { | ||
contents.ErrorCode = output.ErrorCode; | ||
} | ||
if (output.ErrorMessage !== undefined && output.ErrorMessage !== null) { | ||
contents.ErrorMessage = output.ErrorMessage; | ||
} | ||
return contents; | ||
ErrorCode: | ||
output.ErrorCode !== undefined && output.ErrorCode !== null | ||
? output.ErrorCode | ||
: undefined, | ||
ErrorMessage: | ||
output.ErrorMessage !== undefined && output.ErrorMessage !== null | ||
? output.ErrorMessage | ||
: undefined | ||
} as any; | ||
}; | ||
@@ -1419,3 +1363,3 @@ | ||
context: __SerdeContext | ||
): Array<ErrorDetail> => { | ||
): ErrorDetail[] => { | ||
return (output || []).map((entry: any) => | ||
@@ -1429,3 +1373,3 @@ deserializeAws_restJson1_1ErrorDetail(entry, context) | ||
context: __SerdeContext | ||
): Array<string> => { | ||
): string[] => { | ||
return (output || []).map((entry: any) => entry); | ||
@@ -1442,3 +1386,3 @@ }; | ||
const collectBody = ( | ||
streamBody: any, | ||
streamBody: any = new Uint8Array(), | ||
context: __SerdeContext | ||
@@ -1458,10 +1402,14 @@ ): Promise<Uint8Array> => { | ||
context: __SerdeContext | ||
): Promise<string> => { | ||
return collectBody(streamBody, context).then(body => | ||
context.utf8Encoder(body) | ||
); | ||
}; | ||
): Promise<string> => | ||
collectBody(streamBody, context).then(body => context.utf8Encoder(body)); | ||
const parseBody = (streamBody: any, context: __SerdeContext): any => { | ||
return collectBodyString(streamBody, context).then(encoded => { | ||
const isSerializableHeaderValue = (value: any): boolean => | ||
value !== undefined && | ||
value !== "" && | ||
(!Object.getOwnPropertyNames(value).includes("length") || | ||
value.length != 0) && | ||
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); | ||
const parseBody = (streamBody: any, context: __SerdeContext): any => | ||
collectBodyString(streamBody, context).then(encoded => { | ||
if (encoded.length) { | ||
@@ -1472,3 +1420,2 @@ return JSON.parse(encoded); | ||
}); | ||
}; | ||
@@ -1475,0 +1422,0 @@ /** |
@@ -0,11 +1,10 @@ | ||
import { name, version } from "./package.json"; | ||
import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; | ||
import { invalidFunction } from "@aws-sdk/invalid-dependency"; | ||
import { Sha256 } from "@aws-crypto/sha256-browser"; | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { parseUrl } from "@aws-sdk/url-parser-browser"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; | ||
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-browser"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; | ||
import { name, version } from "./package.json"; | ||
import { ClientDefaults } from "./MarketplaceCatalogClient"; | ||
@@ -16,15 +15,15 @@ import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
...ClientSharedValues, | ||
runtime: "browser", | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
bodyLengthChecker: calculateBodyLength, | ||
credentialDefaultProvider: invalidFunction("Credential is missing") as any, | ||
defaultUserAgent: defaultUserAgent(name, version), | ||
regionDefaultProvider: invalidFunction("Region is missing") as any, | ||
requestHandler: new FetchHttpHandler(), | ||
sha256: Sha256, | ||
streamCollector, | ||
urlParser: parseUrl, | ||
bodyLengthChecker: calculateBodyLength, | ||
streamCollector, | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
utf8Decoder: fromUtf8, | ||
utf8Encoder: toUtf8, | ||
defaultUserAgent: defaultUserAgent(name, version), | ||
runtime: "browser", | ||
credentialDefaultProvider: invalidFunction("Credential is missing") as any, | ||
regionDefaultProvider: invalidFunction("Region is missing") as any | ||
utf8Encoder: toUtf8 | ||
}; |
@@ -1,6 +0,4 @@ | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { name, version } from "./package.json"; | ||
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-native"; | ||
import { parseUrl } from "@aws-sdk/url-parser-node"; | ||
import { name, version } from "./package.json"; | ||
import { ClientDefaults } from "./MarketplaceCatalogClient"; | ||
@@ -11,8 +9,6 @@ import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; | ||
...BrowserDefaults, | ||
requestHandler: new FetchHttpHandler({ bufferBody: true }), | ||
runtime: "react-native", | ||
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`, | ||
sha256: Sha256, | ||
streamCollector, | ||
urlParser: parseUrl, | ||
defaultUserAgent: `aws-sdk-js-v3-react-native-${name}/${version}`, | ||
runtime: "react-native" | ||
urlParser: parseUrl | ||
}; |
@@ -6,4 +6,4 @@ import { defaultRegionInfoProvider } from "./endpoints"; | ||
disableHostPrefix: false, | ||
signingName: "aws-marketplace", | ||
regionInfoProvider: defaultRegionInfoProvider | ||
regionInfoProvider: defaultRegionInfoProvider, | ||
signingName: "aws-marketplace" | ||
}; |
@@ -0,12 +1,11 @@ | ||
import { name, version } from "./package.json"; | ||
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; | ||
import { Hash } from "@aws-sdk/hash-node"; | ||
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler"; | ||
import { defaultProvider as regionDefaultProvider } from "@aws-sdk/region-provider"; | ||
import { Hash } from "@aws-sdk/hash-node"; | ||
import { NodeHttpHandler } from "@aws-sdk/node-http-handler"; | ||
import { parseUrl } from "@aws-sdk/url-parser-node"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; | ||
import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; | ||
import { streamCollector } from "@aws-sdk/stream-collector-node"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; | ||
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; | ||
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; | ||
import { name, version } from "./package.json"; | ||
import { ClientDefaults } from "./MarketplaceCatalogClient"; | ||
@@ -17,15 +16,15 @@ import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
...ClientSharedValues, | ||
runtime: "node", | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
bodyLengthChecker: calculateBodyLength, | ||
credentialDefaultProvider, | ||
defaultUserAgent: defaultUserAgent(name, version), | ||
regionDefaultProvider, | ||
requestHandler: new NodeHttpHandler(), | ||
sha256: Hash.bind(null, "sha256"), | ||
streamCollector, | ||
urlParser: parseUrl, | ||
bodyLengthChecker: calculateBodyLength, | ||
streamCollector, | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
utf8Decoder: fromUtf8, | ||
utf8Encoder: toUtf8, | ||
defaultUserAgent: defaultUserAgent(name, version), | ||
runtime: "node", | ||
credentialDefaultProvider, | ||
regionDefaultProvider | ||
utf8Encoder: toUtf8 | ||
}; |
@@ -12,3 +12,3 @@ import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client"; | ||
export declare namespace AccessDeniedException { | ||
function isa(o: any): o is AccessDeniedException; | ||
const isa: (o: any) => o is AccessDeniedException; | ||
} | ||
@@ -29,3 +29,3 @@ export interface CancelChangeSetRequest { | ||
export declare namespace CancelChangeSetRequest { | ||
function isa(o: any): o is CancelChangeSetRequest; | ||
const isa: (o: any) => o is CancelChangeSetRequest; | ||
} | ||
@@ -44,3 +44,3 @@ export interface CancelChangeSetResponse { | ||
export declare namespace CancelChangeSetResponse { | ||
function isa(o: any): o is CancelChangeSetResponse; | ||
const isa: (o: any) => o is CancelChangeSetResponse; | ||
} | ||
@@ -70,3 +70,3 @@ /** | ||
export declare namespace Change { | ||
function isa(o: any): o is Change; | ||
const isa: (o: any) => o is Change; | ||
} | ||
@@ -101,3 +101,3 @@ /** | ||
*/ | ||
EntityIdList?: Array<string>; | ||
EntityIdList?: string[]; | ||
/** | ||
@@ -114,3 +114,3 @@ * <p>The time, in ISO 8601 format (2018-02-27T13:45:22Z), when the change set was | ||
export declare namespace ChangeSetSummaryListItem { | ||
function isa(o: any): o is ChangeSetSummaryListItem; | ||
const isa: (o: any) => o is ChangeSetSummaryListItem; | ||
} | ||
@@ -141,6 +141,6 @@ export declare enum ChangeStatus { | ||
*/ | ||
ErrorDetailList?: Array<ErrorDetail>; | ||
ErrorDetailList?: ErrorDetail[]; | ||
} | ||
export declare namespace ChangeSummary { | ||
function isa(o: any): o is ChangeSummary; | ||
const isa: (o: any) => o is ChangeSummary; | ||
} | ||
@@ -162,3 +162,3 @@ export interface DescribeChangeSetRequest { | ||
export declare namespace DescribeChangeSetRequest { | ||
function isa(o: any): o is DescribeChangeSetRequest; | ||
const isa: (o: any) => o is DescribeChangeSetRequest; | ||
} | ||
@@ -170,3 +170,3 @@ export interface DescribeChangeSetResponse { | ||
*/ | ||
ChangeSet?: Array<ChangeSummary>; | ||
ChangeSet?: ChangeSummary[]; | ||
/** | ||
@@ -208,3 +208,3 @@ * <p>The ARN associated with the unique identifier for the change set referenced in this | ||
export declare namespace DescribeChangeSetResponse { | ||
function isa(o: any): o is DescribeChangeSetResponse; | ||
const isa: (o: any) => o is DescribeChangeSetResponse; | ||
} | ||
@@ -225,3 +225,3 @@ export interface DescribeEntityRequest { | ||
export declare namespace DescribeEntityRequest { | ||
function isa(o: any): o is DescribeEntityRequest; | ||
const isa: (o: any) => o is DescribeEntityRequest; | ||
} | ||
@@ -255,3 +255,3 @@ export interface DescribeEntityResponse { | ||
export declare namespace DescribeEntityResponse { | ||
function isa(o: any): o is DescribeEntityResponse; | ||
const isa: (o: any) => o is DescribeEntityResponse; | ||
} | ||
@@ -274,3 +274,3 @@ /** | ||
export declare namespace Entity { | ||
function isa(o: any): o is Entity; | ||
const isa: (o: any) => o is Entity; | ||
} | ||
@@ -315,3 +315,3 @@ /** | ||
export declare namespace EntitySummary { | ||
function isa(o: any): o is EntitySummary; | ||
const isa: (o: any) => o is EntitySummary; | ||
} | ||
@@ -333,3 +333,3 @@ /** | ||
export declare namespace ErrorDetail { | ||
function isa(o: any): o is ErrorDetail; | ||
const isa: (o: any) => o is ErrorDetail; | ||
} | ||
@@ -394,6 +394,6 @@ /** | ||
*/ | ||
ValueList?: Array<string>; | ||
ValueList?: string[]; | ||
} | ||
export declare namespace Filter { | ||
function isa(o: any): o is Filter; | ||
const isa: (o: any) => o is Filter; | ||
} | ||
@@ -409,3 +409,3 @@ /** | ||
export declare namespace InternalServiceException { | ||
function isa(o: any): o is InternalServiceException; | ||
const isa: (o: any) => o is InternalServiceException; | ||
} | ||
@@ -422,3 +422,3 @@ export interface ListChangeSetsRequest { | ||
*/ | ||
FilterList?: Array<Filter>; | ||
FilterList?: Filter[]; | ||
/** | ||
@@ -442,3 +442,3 @@ * <p>The maximum number of results returned by a single call. This value must be provided | ||
export declare namespace ListChangeSetsRequest { | ||
function isa(o: any): o is ListChangeSetsRequest; | ||
const isa: (o: any) => o is ListChangeSetsRequest; | ||
} | ||
@@ -450,3 +450,3 @@ export interface ListChangeSetsResponse { | ||
*/ | ||
ChangeSetSummaryList?: Array<ChangeSetSummaryListItem>; | ||
ChangeSetSummaryList?: ChangeSetSummaryListItem[]; | ||
/** | ||
@@ -458,3 +458,3 @@ * <p>The value of the next token, if it exists. Null if there are no more results.</p> | ||
export declare namespace ListChangeSetsResponse { | ||
function isa(o: any): o is ListChangeSetsResponse; | ||
const isa: (o: any) => o is ListChangeSetsResponse; | ||
} | ||
@@ -476,3 +476,3 @@ export interface ListEntitiesRequest { | ||
*/ | ||
FilterList?: Array<Filter>; | ||
FilterList?: Filter[]; | ||
/** | ||
@@ -494,3 +494,3 @@ * <p>Specifies the upper limit of the elements on a single page. If a value isn't provided, | ||
export declare namespace ListEntitiesRequest { | ||
function isa(o: any): o is ListEntitiesRequest; | ||
const isa: (o: any) => o is ListEntitiesRequest; | ||
} | ||
@@ -502,3 +502,3 @@ export interface ListEntitiesResponse { | ||
*/ | ||
EntitySummaryList?: Array<EntitySummary>; | ||
EntitySummaryList?: EntitySummary[]; | ||
/** | ||
@@ -510,3 +510,3 @@ * <p>The value of the next token if it exists. Null if there is no more result.</p> | ||
export declare namespace ListEntitiesResponse { | ||
function isa(o: any): o is ListEntitiesResponse; | ||
const isa: (o: any) => o is ListEntitiesResponse; | ||
} | ||
@@ -522,3 +522,3 @@ /** | ||
export declare namespace ResourceInUseException { | ||
function isa(o: any): o is ResourceInUseException; | ||
const isa: (o: any) => o is ResourceInUseException; | ||
} | ||
@@ -534,3 +534,3 @@ /** | ||
export declare namespace ResourceNotFoundException { | ||
function isa(o: any): o is ResourceNotFoundException; | ||
const isa: (o: any) => o is ResourceNotFoundException; | ||
} | ||
@@ -546,3 +546,3 @@ /** | ||
export declare namespace ResourceNotSupportedException { | ||
function isa(o: any): o is ResourceNotSupportedException; | ||
const isa: (o: any) => o is ResourceNotSupportedException; | ||
} | ||
@@ -558,3 +558,3 @@ /** | ||
export declare namespace ServiceQuotaExceededException { | ||
function isa(o: any): o is ServiceQuotaExceededException; | ||
const isa: (o: any) => o is ServiceQuotaExceededException; | ||
} | ||
@@ -583,3 +583,3 @@ /** | ||
export declare namespace Sort { | ||
function isa(o: any): o is Sort; | ||
const isa: (o: any) => o is Sort; | ||
} | ||
@@ -600,3 +600,3 @@ export declare enum SortOrder { | ||
*/ | ||
ChangeSet: Array<Change> | undefined; | ||
ChangeSet: Change[] | undefined; | ||
/** | ||
@@ -613,3 +613,3 @@ * <p>Optional case sensitive string of up to 100 ASCII characters. The change set name can | ||
export declare namespace StartChangeSetRequest { | ||
function isa(o: any): o is StartChangeSetRequest; | ||
const isa: (o: any) => o is StartChangeSetRequest; | ||
} | ||
@@ -628,3 +628,3 @@ export interface StartChangeSetResponse { | ||
export declare namespace StartChangeSetResponse { | ||
function isa(o: any): o is StartChangeSetResponse; | ||
const isa: (o: any) => o is StartChangeSetResponse; | ||
} | ||
@@ -640,3 +640,3 @@ /** | ||
export declare namespace ThrottlingException { | ||
function isa(o: any): o is ThrottlingException; | ||
const isa: (o: any) => o is ThrottlingException; | ||
} | ||
@@ -652,3 +652,3 @@ /** | ||
export declare namespace ValidationException { | ||
function isa(o: any): o is ValidationException; | ||
const isa: (o: any) => o is ValidationException; | ||
} |
@@ -1,20 +0,20 @@ | ||
import { CancelChangeSetCommandInput, CancelChangeSetCommandOutput } from "../commands/CancelChangeSetCommand"; | ||
import { DescribeChangeSetCommandInput, DescribeChangeSetCommandOutput } from "../commands/DescribeChangeSetCommand"; | ||
import { DescribeEntityCommandInput, DescribeEntityCommandOutput } from "../commands/DescribeEntityCommand"; | ||
import { ListChangeSetsCommandInput, ListChangeSetsCommandOutput } from "../commands/ListChangeSetsCommand"; | ||
import { ListEntitiesCommandInput, ListEntitiesCommandOutput } from "../commands/ListEntitiesCommand"; | ||
import { StartChangeSetCommandInput, StartChangeSetCommandOutput } from "../commands/StartChangeSetCommand"; | ||
import { CancelChangeSetCommandOutput } from "../commands/CancelChangeSetCommand"; | ||
import { DescribeChangeSetCommandOutput } from "../commands/DescribeChangeSetCommand"; | ||
import { DescribeEntityCommandOutput } from "../commands/DescribeEntityCommand"; | ||
import { ListChangeSetsCommandOutput } from "../commands/ListChangeSetsCommand"; | ||
import { ListEntitiesCommandOutput } from "../commands/ListEntitiesCommand"; | ||
import { StartChangeSetCommandOutput } from "../commands/StartChangeSetCommand"; | ||
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; | ||
import { SerdeContext as __SerdeContext } from "@aws-sdk/types"; | ||
export declare function serializeAws_restJson1_1CancelChangeSetCommand(input: CancelChangeSetCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function serializeAws_restJson1_1DescribeChangeSetCommand(input: DescribeChangeSetCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function serializeAws_restJson1_1DescribeEntityCommand(input: DescribeEntityCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function serializeAws_restJson1_1ListChangeSetsCommand(input: ListChangeSetsCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function serializeAws_restJson1_1ListEntitiesCommand(input: ListEntitiesCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function serializeAws_restJson1_1StartChangeSetCommand(input: StartChangeSetCommandInput, context: __SerdeContext): Promise<__HttpRequest>; | ||
export declare function deserializeAws_restJson1_1CancelChangeSetCommand(output: __HttpResponse, context: __SerdeContext): Promise<CancelChangeSetCommandOutput>; | ||
export declare function deserializeAws_restJson1_1DescribeChangeSetCommand(output: __HttpResponse, context: __SerdeContext): Promise<DescribeChangeSetCommandOutput>; | ||
export declare function deserializeAws_restJson1_1DescribeEntityCommand(output: __HttpResponse, context: __SerdeContext): Promise<DescribeEntityCommandOutput>; | ||
export declare function deserializeAws_restJson1_1ListChangeSetsCommand(output: __HttpResponse, context: __SerdeContext): Promise<ListChangeSetsCommandOutput>; | ||
export declare function deserializeAws_restJson1_1ListEntitiesCommand(output: __HttpResponse, context: __SerdeContext): Promise<ListEntitiesCommandOutput>; | ||
export declare function deserializeAws_restJson1_1StartChangeSetCommand(output: __HttpResponse, context: __SerdeContext): Promise<StartChangeSetCommandOutput>; | ||
export declare const serializeAws_restJson1_1CancelChangeSetCommand: (input: import("../models").CancelChangeSetRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const serializeAws_restJson1_1DescribeChangeSetCommand: (input: import("../models").DescribeChangeSetRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const serializeAws_restJson1_1DescribeEntityCommand: (input: import("../models").DescribeEntityRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const serializeAws_restJson1_1ListChangeSetsCommand: (input: import("../models").ListChangeSetsRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const serializeAws_restJson1_1ListEntitiesCommand: (input: import("../models").ListEntitiesRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const serializeAws_restJson1_1StartChangeSetCommand: (input: import("../models").StartChangeSetRequest, context: __SerdeContext) => Promise<__HttpRequest>; | ||
export declare const deserializeAws_restJson1_1CancelChangeSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CancelChangeSetCommandOutput>; | ||
export declare const deserializeAws_restJson1_1DescribeChangeSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeChangeSetCommandOutput>; | ||
export declare const deserializeAws_restJson1_1DescribeEntityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEntityCommandOutput>; | ||
export declare const deserializeAws_restJson1_1ListChangeSetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChangeSetsCommandOutput>; | ||
export declare const deserializeAws_restJson1_1ListEntitiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEntitiesCommandOutput>; | ||
export declare const deserializeAws_restJson1_1StartChangeSetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartChangeSetCommandOutput>; |
export declare const ClientSharedValues: { | ||
apiVersion: string; | ||
disableHostPrefix: boolean; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
signingName: string; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30
486486
7230
+ Added@aws-sdk/abort-controller@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/config-resolver@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/credential-provider-env@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/credential-provider-imds@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/credential-provider-ini@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/credential-provider-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/credential-provider-process@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/fetch-http-handler@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/hash-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/invalid-dependency@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/is-array-buffer@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-content-length@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-host-header@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-retry@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-serde@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-signing@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-stack@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/middleware-user-agent@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/node-http-handler@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/property-provider@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/protocol-http@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/querystring-builder@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/querystring-parser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/region-provider@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/service-error-classification@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/shared-ini-file-loader@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/signature-v4@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/smithy-client@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/types@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/url-parser-browser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/url-parser-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-base64-browser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-base64-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-body-length-browser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-body-length-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-buffer-from@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-hex-encoding@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-uri-escape@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-user-agent-browser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-user-agent-node@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-utf8-browser@1.0.0-gamma.1(transitive)
+ Added@aws-sdk/util-utf8-node@1.0.0-gamma.1(transitive)
+ Addedcall-bound@1.0.3(transitive)
- Removed@aws-sdk/abort-controller@1.0.0-beta.4(transitive)
- Removed@aws-sdk/config-resolver@1.0.0-beta.4(transitive)
- Removed@aws-sdk/credential-provider-env@1.0.0-beta.4(transitive)
- Removed@aws-sdk/credential-provider-imds@1.0.0-beta.4(transitive)
- Removed@aws-sdk/credential-provider-ini@1.0.0-beta.4(transitive)
- Removed@aws-sdk/credential-provider-node@1.0.0-beta.4(transitive)
- Removed@aws-sdk/credential-provider-process@1.0.0-beta.4(transitive)
- Removed@aws-sdk/fetch-http-handler@1.0.0-beta.4(transitive)
- Removed@aws-sdk/hash-node@1.0.0-beta.4(transitive)
- Removed@aws-sdk/invalid-dependency@1.0.0-beta.2(transitive)
- Removed@aws-sdk/is-array-buffer@1.0.0-beta.2(transitive)
- Removed@aws-sdk/middleware-content-length@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-host-header@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-retry@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-serde@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-signing@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-stack@1.0.0-beta.4(transitive)
- Removed@aws-sdk/middleware-user-agent@1.0.0-beta.4(transitive)
- Removed@aws-sdk/node-http-handler@1.0.0-beta.4(transitive)
- Removed@aws-sdk/property-provider@1.0.0-beta.4(transitive)
- Removed@aws-sdk/protocol-http@1.0.0-beta.4(transitive)
- Removed@aws-sdk/querystring-builder@1.0.0-beta.4(transitive)
- Removed@aws-sdk/querystring-parser@1.0.0-beta.4(transitive)
- Removed@aws-sdk/region-provider@1.0.0-beta.4(transitive)
- Removed@aws-sdk/service-error-classification@1.0.0-beta.2(transitive)
- Removed@aws-sdk/shared-ini-file-loader@1.0.0-beta.4(transitive)
- Removed@aws-sdk/signature-v4@1.0.0-beta.4(transitive)
- Removed@aws-sdk/smithy-client@1.0.0-beta.5(transitive)
- Removed@aws-sdk/stream-collector-browser@1.0.0-beta.4(transitive)
- Removed@aws-sdk/stream-collector-native@1.0.0-beta.4(transitive)
- Removed@aws-sdk/stream-collector-node@1.0.0-beta.4(transitive)
- Removed@aws-sdk/types@1.0.0-beta.4(transitive)
- Removed@aws-sdk/url-parser-browser@1.0.0-beta.4(transitive)
- Removed@aws-sdk/url-parser-node@1.0.0-beta.4(transitive)
- Removed@aws-sdk/util-base64-browser@1.0.0-beta.2(transitive)
- Removed@aws-sdk/util-base64-node@1.0.0-beta.3(transitive)
- Removed@aws-sdk/util-body-length-browser@1.0.0-beta.2(transitive)
- Removed@aws-sdk/util-body-length-node@1.0.0-beta.2(transitive)
- Removed@aws-sdk/util-buffer-from@1.0.0-beta.3(transitive)
- Removed@aws-sdk/util-hex-encoding@1.0.0-beta.2(transitive)
- Removed@aws-sdk/util-uri-escape@1.0.0-beta.4(transitive)
- Removed@aws-sdk/util-user-agent-browser@1.0.0-beta.4(transitive)
- Removed@aws-sdk/util-user-agent-node@1.0.0-beta.4(transitive)
- Removed@aws-sdk/util-utf8-browser@1.0.0-beta.2(transitive)
- Removed@aws-sdk/util-utf8-node@1.0.0-beta.3(transitive)
- Removedcall-bind@1.0.8(transitive)
- Removedcall-bound@1.0.2(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedset-function-length@1.2.2(transitive)
Updated@aws-sdk/types@1.0.0-gamma.1