@aws-sdk/client-marketplace-catalog 3.137.0 → 3.138.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.138.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.137.0...v3.138.0) (2022-07-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-marketplace-catalog:** The SDK for the StartChangeSet API will now automatically set and use an idempotency token in the ClientRequestToken request parameter if the customer does not provide it. ([df77d8b](https://github.com/aws/aws-sdk-js-v3/commit/df77d8b55d0e6a270af332539297f8651095e8c9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_restJson1StartChangeSetCommand = exports.deserializeAws_restJson1ListEntitiesCommand = exports.deserializeAws_restJson1ListChangeSetsCommand = exports.deserializeAws_restJson1DescribeEntityCommand = exports.deserializeAws_restJson1DescribeChangeSetCommand = exports.deserializeAws_restJson1CancelChangeSetCommand = exports.serializeAws_restJson1StartChangeSetCommand = exports.serializeAws_restJson1ListEntitiesCommand = exports.serializeAws_restJson1ListChangeSetsCommand = exports.serializeAws_restJson1DescribeEntityCommand = exports.serializeAws_restJson1DescribeChangeSetCommand = exports.serializeAws_restJson1CancelChangeSetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const uuid_1 = require("uuid");
|
|
6
7
|
const MarketplaceCatalogServiceException_1 = require("../models/MarketplaceCatalogServiceException");
|
|
7
8
|
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const serializeAws_restJson1CancelChangeSetCommand = async (input, context) => {
|
|
@@ -120,6 +121,7 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
|
|
|
120
121
|
};
|
|
121
122
|
exports.serializeAws_restJson1ListEntitiesCommand = serializeAws_restJson1ListEntitiesCommand;
|
|
122
123
|
const serializeAws_restJson1StartChangeSetCommand = async (input, context) => {
|
|
124
|
+
var _a;
|
|
123
125
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
126
|
const headers = {
|
|
125
127
|
"content-type": "application/json",
|
|
@@ -130,7 +132,7 @@ const serializeAws_restJson1StartChangeSetCommand = async (input, context) => {
|
|
|
130
132
|
...(input.Catalog != null && { Catalog: input.Catalog }),
|
|
131
133
|
...(input.ChangeSet != null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) }),
|
|
132
134
|
...(input.ChangeSetName != null && { ChangeSetName: input.ChangeSetName }),
|
|
133
|
-
|
|
135
|
+
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
134
136
|
});
|
|
135
137
|
return new protocol_http_1.HttpRequest({
|
|
136
138
|
protocol,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
3
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { MarketplaceCatalogServiceException as __BaseException } from "../models/MarketplaceCatalogServiceException";
|
|
5
6
|
import { AccessDeniedException, InternalServiceException, ResourceInUseException, ResourceNotFoundException, ResourceNotSupportedException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
7
|
export var serializeAws_restJson1CancelChangeSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -122,16 +123,17 @@ export var serializeAws_restJson1ListEntitiesCommand = function (input, context)
|
|
|
122
123
|
}); };
|
|
123
124
|
export var serializeAws_restJson1StartChangeSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
124
125
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
var _c;
|
|
127
|
+
return __generator(this, function (_d) {
|
|
128
|
+
switch (_d.label) {
|
|
127
129
|
case 0: return [4, context.endpoint()];
|
|
128
130
|
case 1:
|
|
129
|
-
_a =
|
|
131
|
+
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
130
132
|
headers = {
|
|
131
133
|
"content-type": "application/json",
|
|
132
134
|
};
|
|
133
135
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartChangeSet";
|
|
134
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Catalog != null && { Catalog: input.Catalog })), (input.ChangeSet != null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) })), (input.ChangeSetName != null && { ChangeSetName: input.ChangeSetName })), (input.ClientRequestToken
|
|
136
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Catalog != null && { Catalog: input.Catalog })), (input.ChangeSet != null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) })), (input.ChangeSetName != null && { ChangeSetName: input.ChangeSetName })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }));
|
|
135
137
|
return [2, new __HttpRequest({
|
|
136
138
|
protocol: protocol,
|
|
137
139
|
hostname: hostname,
|
|
@@ -242,7 +242,7 @@ export interface DescribeEntityResponse {
|
|
|
242
242
|
*/
|
|
243
243
|
EntityIdentifier?: string;
|
|
244
244
|
/**
|
|
245
|
-
* <p>The ARN associated to the unique identifier for the
|
|
245
|
+
* <p>The ARN associated to the unique identifier for the entity referenced in this
|
|
246
246
|
* request.</p>
|
|
247
247
|
*/
|
|
248
248
|
EntityArn?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-catalog",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Catalog Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.138.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -49,12 +49,14 @@
|
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
|
-
"tslib": "^2.3.1"
|
|
52
|
+
"tslib": "^2.3.1",
|
|
53
|
+
"uuid": "^8.3.2"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@aws-sdk/service-client-documentation-generator": "3.58.0",
|
|
56
57
|
"@tsconfig/recommended": "1.0.1",
|
|
57
58
|
"@types/node": "^12.7.5",
|
|
59
|
+
"@types/uuid": "^8.3.0",
|
|
58
60
|
"concurrently": "7.0.0",
|
|
59
61
|
"downlevel-dts": "0.7.0",
|
|
60
62
|
"rimraf": "3.0.2",
|