@aws-sdk/client-marketplace-catalog 3.315.0 → 3.316.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/dist-cjs/MarketplaceCatalog.js +16 -168
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1
- package/dist-es/MarketplaceCatalog.js +16 -168
- package/dist-es/protocols/Aws_restJson1.js +1 -1
- package/dist-types/MarketplaceCatalog.d.ts +24 -57
- package/dist-types/ts3.4/MarketplaceCatalog.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MarketplaceCatalog = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CancelChangeSetCommand_1 = require("./commands/CancelChangeSetCommand");
|
|
5
6
|
const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand");
|
|
6
7
|
const DescribeChangeSetCommand_1 = require("./commands/DescribeChangeSetCommand");
|
|
@@ -14,174 +15,21 @@ const StartChangeSetCommand_1 = require("./commands/StartChangeSetCommand");
|
|
|
14
15
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
15
16
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
16
17
|
const MarketplaceCatalogClient_1 = require("./MarketplaceCatalogClient");
|
|
18
|
+
const commands = {
|
|
19
|
+
CancelChangeSetCommand: CancelChangeSetCommand_1.CancelChangeSetCommand,
|
|
20
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
21
|
+
DescribeChangeSetCommand: DescribeChangeSetCommand_1.DescribeChangeSetCommand,
|
|
22
|
+
DescribeEntityCommand: DescribeEntityCommand_1.DescribeEntityCommand,
|
|
23
|
+
GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
|
|
24
|
+
ListChangeSetsCommand: ListChangeSetsCommand_1.ListChangeSetsCommand,
|
|
25
|
+
ListEntitiesCommand: ListEntitiesCommand_1.ListEntitiesCommand,
|
|
26
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
27
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
28
|
+
StartChangeSetCommand: StartChangeSetCommand_1.StartChangeSetCommand,
|
|
29
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
30
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
31
|
+
};
|
|
17
32
|
class MarketplaceCatalog extends MarketplaceCatalogClient_1.MarketplaceCatalogClient {
|
|
18
|
-
cancelChangeSet(args, optionsOrCb, cb) {
|
|
19
|
-
const command = new CancelChangeSetCommand_1.CancelChangeSetCommand(args);
|
|
20
|
-
if (typeof optionsOrCb === "function") {
|
|
21
|
-
this.send(command, optionsOrCb);
|
|
22
|
-
}
|
|
23
|
-
else if (typeof cb === "function") {
|
|
24
|
-
if (typeof optionsOrCb !== "object")
|
|
25
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
26
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
describeChangeSet(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new DescribeChangeSetCommand_1.DescribeChangeSetCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
describeEntity(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new DescribeEntityCommand_1.DescribeEntityCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
listChangeSets(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new ListChangeSetsCommand_1.ListChangeSetsCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
listEntities(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new ListEntitiesCommand_1.ListEntitiesCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
startChangeSet(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new StartChangeSetCommand_1.StartChangeSetCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
tagResource(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
untagResource(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
33
|
}
|
|
187
34
|
exports.MarketplaceCatalog = MarketplaceCatalog;
|
|
35
|
+
(0, smithy_client_1.createAggregatedClient)(commands, MarketplaceCatalog);
|
|
@@ -216,7 +216,7 @@ const se_StartChangeSetCommand = async (input, context) => {
|
|
|
216
216
|
ChangeSet: (_) => (0, smithy_client_1._json)(_),
|
|
217
217
|
ChangeSetName: [],
|
|
218
218
|
ChangeSetTags: (_) => (0, smithy_client_1._json)(_),
|
|
219
|
-
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
219
|
+
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
220
220
|
}));
|
|
221
221
|
return new protocol_http_1.HttpRequest({
|
|
222
222
|
protocol,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CancelChangeSetCommand, } from "./commands/CancelChangeSetCommand";
|
|
2
3
|
import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
|
|
3
4
|
import { DescribeChangeSetCommand, } from "./commands/DescribeChangeSetCommand";
|
|
@@ -11,173 +12,20 @@ import { StartChangeSetCommand, } from "./commands/StartChangeSetCommand";
|
|
|
11
12
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
12
13
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
13
14
|
import { MarketplaceCatalogClient } from "./MarketplaceCatalogClient";
|
|
15
|
+
const commands = {
|
|
16
|
+
CancelChangeSetCommand,
|
|
17
|
+
DeleteResourcePolicyCommand,
|
|
18
|
+
DescribeChangeSetCommand,
|
|
19
|
+
DescribeEntityCommand,
|
|
20
|
+
GetResourcePolicyCommand,
|
|
21
|
+
ListChangeSetsCommand,
|
|
22
|
+
ListEntitiesCommand,
|
|
23
|
+
ListTagsForResourceCommand,
|
|
24
|
+
PutResourcePolicyCommand,
|
|
25
|
+
StartChangeSetCommand,
|
|
26
|
+
TagResourceCommand,
|
|
27
|
+
UntagResourceCommand,
|
|
28
|
+
};
|
|
14
29
|
export class MarketplaceCatalog extends MarketplaceCatalogClient {
|
|
15
|
-
cancelChangeSet(args, optionsOrCb, cb) {
|
|
16
|
-
const command = new CancelChangeSetCommand(args);
|
|
17
|
-
if (typeof optionsOrCb === "function") {
|
|
18
|
-
this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
else if (typeof cb === "function") {
|
|
21
|
-
if (typeof optionsOrCb !== "object")
|
|
22
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new DeleteResourcePolicyCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
describeChangeSet(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new DescribeChangeSetCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
describeEntity(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new DescribeEntityCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new GetResourcePolicyCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
listChangeSets(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new ListChangeSetsCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
listEntities(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new ListEntitiesCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new ListTagsForResourceCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new PutResourcePolicyCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
startChangeSet(args, optionsOrCb, cb) {
|
|
142
|
-
const command = new StartChangeSetCommand(args);
|
|
143
|
-
if (typeof optionsOrCb === "function") {
|
|
144
|
-
this.send(command, optionsOrCb);
|
|
145
|
-
}
|
|
146
|
-
else if (typeof cb === "function") {
|
|
147
|
-
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
149
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return this.send(command, optionsOrCb);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
tagResource(args, optionsOrCb, cb) {
|
|
156
|
-
const command = new TagResourceCommand(args);
|
|
157
|
-
if (typeof optionsOrCb === "function") {
|
|
158
|
-
this.send(command, optionsOrCb);
|
|
159
|
-
}
|
|
160
|
-
else if (typeof cb === "function") {
|
|
161
|
-
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
163
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
return this.send(command, optionsOrCb);
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
untagResource(args, optionsOrCb, cb) {
|
|
170
|
-
const command = new UntagResourceCommand(args);
|
|
171
|
-
if (typeof optionsOrCb === "function") {
|
|
172
|
-
this.send(command, optionsOrCb);
|
|
173
|
-
}
|
|
174
|
-
else if (typeof cb === "function") {
|
|
175
|
-
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
177
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
return this.send(command, optionsOrCb);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
30
|
}
|
|
31
|
+
createAggregatedClient(commands, MarketplaceCatalog);
|
|
@@ -204,7 +204,7 @@ export const se_StartChangeSetCommand = async (input, context) => {
|
|
|
204
204
|
ChangeSet: (_) => _json(_),
|
|
205
205
|
ChangeSetName: [],
|
|
206
206
|
ChangeSetTags: (_) => _json(_),
|
|
207
|
-
ClientRequestToken: (_) => _ ?? generateIdempotencyToken(),
|
|
207
|
+
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
208
208
|
}));
|
|
209
209
|
return new __HttpRequest({
|
|
210
210
|
protocol,
|
|
@@ -12,121 +12,88 @@ import { StartChangeSetCommandInput, StartChangeSetCommandOutput } from "./comma
|
|
|
12
12
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
13
13
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
14
14
|
import { MarketplaceCatalogClient } from "./MarketplaceCatalogClient";
|
|
15
|
-
|
|
16
|
-
* @public
|
|
17
|
-
* <p>Catalog API actions allow you to manage your entities through list, describe, and
|
|
18
|
-
* update capabilities. An entity can be a product or an offer on AWS Marketplace. </p>
|
|
19
|
-
* <p>You can automate your entity update process by integrating the AWS Marketplace Catalog
|
|
20
|
-
* API with your AWS Marketplace product build or deployment pipelines. You can also create
|
|
21
|
-
* your own applications on top of the Catalog API to manage your products on AWS
|
|
22
|
-
* Marketplace.</p>
|
|
23
|
-
*/
|
|
24
|
-
export declare class MarketplaceCatalog extends MarketplaceCatalogClient {
|
|
15
|
+
export interface MarketplaceCatalog {
|
|
25
16
|
/**
|
|
26
|
-
* @
|
|
27
|
-
* <p>Used to cancel an open change request. Must be sent before the status of the request
|
|
28
|
-
* changes to <code>APPLYING</code>, the final stage of completing your change request. You
|
|
29
|
-
* can describe a change during the 60-day request history retention period for API
|
|
30
|
-
* calls.</p>
|
|
17
|
+
* @see {@link CancelChangeSetCommand}
|
|
31
18
|
*/
|
|
32
19
|
cancelChangeSet(args: CancelChangeSetCommandInput, options?: __HttpHandlerOptions): Promise<CancelChangeSetCommandOutput>;
|
|
33
20
|
cancelChangeSet(args: CancelChangeSetCommandInput, cb: (err: any, data?: CancelChangeSetCommandOutput) => void): void;
|
|
34
21
|
cancelChangeSet(args: CancelChangeSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelChangeSetCommandOutput) => void): void;
|
|
35
22
|
/**
|
|
36
|
-
* @
|
|
37
|
-
* <p>Deletes a resource-based policy on an Entity that is identified by its resource
|
|
38
|
-
* ARN.</p>
|
|
23
|
+
* @see {@link DeleteResourcePolicyCommand}
|
|
39
24
|
*/
|
|
40
25
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
|
|
41
26
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
42
27
|
deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
|
|
43
28
|
/**
|
|
44
|
-
* @
|
|
45
|
-
* <p>Provides information about a given change set.</p>
|
|
29
|
+
* @see {@link DescribeChangeSetCommand}
|
|
46
30
|
*/
|
|
47
31
|
describeChangeSet(args: DescribeChangeSetCommandInput, options?: __HttpHandlerOptions): Promise<DescribeChangeSetCommandOutput>;
|
|
48
32
|
describeChangeSet(args: DescribeChangeSetCommandInput, cb: (err: any, data?: DescribeChangeSetCommandOutput) => void): void;
|
|
49
33
|
describeChangeSet(args: DescribeChangeSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeChangeSetCommandOutput) => void): void;
|
|
50
34
|
/**
|
|
51
|
-
* @
|
|
52
|
-
* <p>Returns the metadata and content of the entity.</p>
|
|
35
|
+
* @see {@link DescribeEntityCommand}
|
|
53
36
|
*/
|
|
54
37
|
describeEntity(args: DescribeEntityCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEntityCommandOutput>;
|
|
55
38
|
describeEntity(args: DescribeEntityCommandInput, cb: (err: any, data?: DescribeEntityCommandOutput) => void): void;
|
|
56
39
|
describeEntity(args: DescribeEntityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEntityCommandOutput) => void): void;
|
|
57
40
|
/**
|
|
58
|
-
* @
|
|
59
|
-
* <p>Gets a resource-based policy of an Entity that is identified by its resource
|
|
60
|
-
* ARN.</p>
|
|
41
|
+
* @see {@link GetResourcePolicyCommand}
|
|
61
42
|
*/
|
|
62
43
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
|
|
63
44
|
getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
64
45
|
getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
|
|
65
46
|
/**
|
|
66
|
-
* @
|
|
67
|
-
* <p>Returns the list of change sets owned by the account being used to make the call. You
|
|
68
|
-
* can filter this list by providing any combination of <code>entityId</code>,
|
|
69
|
-
* <code>ChangeSetName</code>, and status. If you provide more than one filter, the API
|
|
70
|
-
* operation applies a logical AND between the filters.</p>
|
|
71
|
-
* <p>You can describe a change during the 60-day request history retention period for API
|
|
72
|
-
* calls.</p>
|
|
47
|
+
* @see {@link ListChangeSetsCommand}
|
|
73
48
|
*/
|
|
74
49
|
listChangeSets(args: ListChangeSetsCommandInput, options?: __HttpHandlerOptions): Promise<ListChangeSetsCommandOutput>;
|
|
75
50
|
listChangeSets(args: ListChangeSetsCommandInput, cb: (err: any, data?: ListChangeSetsCommandOutput) => void): void;
|
|
76
51
|
listChangeSets(args: ListChangeSetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChangeSetsCommandOutput) => void): void;
|
|
77
52
|
/**
|
|
78
|
-
* @
|
|
79
|
-
* <p>Provides the list of entities of a given type.</p>
|
|
53
|
+
* @see {@link ListEntitiesCommand}
|
|
80
54
|
*/
|
|
81
55
|
listEntities(args: ListEntitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListEntitiesCommandOutput>;
|
|
82
56
|
listEntities(args: ListEntitiesCommandInput, cb: (err: any, data?: ListEntitiesCommandOutput) => void): void;
|
|
83
57
|
listEntities(args: ListEntitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEntitiesCommandOutput) => void): void;
|
|
84
58
|
/**
|
|
85
|
-
* @
|
|
86
|
-
* <p>Lists all tags that have been added to a resource (either an <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#catalog-api-entities">entity</a> or <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets">change set</a>).</p>
|
|
59
|
+
* @see {@link ListTagsForResourceCommand}
|
|
87
60
|
*/
|
|
88
61
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
89
62
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
90
63
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
91
64
|
/**
|
|
92
|
-
* @
|
|
93
|
-
* <p>Attaches a resource-based policy to an Entity. Examples of an entity include:
|
|
94
|
-
* <code>AmiProduct</code> and <code>ContainerProduct</code>.</p>
|
|
65
|
+
* @see {@link PutResourcePolicyCommand}
|
|
95
66
|
*/
|
|
96
67
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
|
|
97
68
|
putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
98
69
|
putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
|
|
99
70
|
/**
|
|
100
|
-
* @
|
|
101
|
-
* <p>Allows you to request changes for your entities. Within a single
|
|
102
|
-
* <code>ChangeSet</code>, you can't start the same change type against the same entity
|
|
103
|
-
* multiple times. Additionally, when a <code>ChangeSet</code> is running, all the entities
|
|
104
|
-
* targeted by the different changes are locked until the change set has completed (either
|
|
105
|
-
* succeeded, cancelled, or failed). If you try to start a change set containing a change
|
|
106
|
-
* against an entity that is already locked, you will receive a
|
|
107
|
-
* <code>ResourceInUseException</code> error.</p>
|
|
108
|
-
* <p>For example, you can't start the <code>ChangeSet</code> described in the <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/API_StartChangeSet.html#API_StartChangeSet_Examples">example</a> later in this topic because it contains two changes to run the same
|
|
109
|
-
* change type (<code>AddRevisions</code>) against the same entity
|
|
110
|
-
* (<code>entity-id@1</code>).</p>
|
|
111
|
-
* <p>For more information about working with change sets, see <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets"> Working with change sets</a>. For information on change types for single-AMI
|
|
112
|
-
* products, see <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/ami-products.html#working-with-single-AMI-products">Working with single-AMI products</a>. Als, for more information on change types
|
|
113
|
-
* available for container-based products, see <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/container-products.html#working-with-container-products">Working with container products</a>.</p>
|
|
71
|
+
* @see {@link StartChangeSetCommand}
|
|
114
72
|
*/
|
|
115
73
|
startChangeSet(args: StartChangeSetCommandInput, options?: __HttpHandlerOptions): Promise<StartChangeSetCommandOutput>;
|
|
116
74
|
startChangeSet(args: StartChangeSetCommandInput, cb: (err: any, data?: StartChangeSetCommandOutput) => void): void;
|
|
117
75
|
startChangeSet(args: StartChangeSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartChangeSetCommandOutput) => void): void;
|
|
118
76
|
/**
|
|
119
|
-
* @
|
|
120
|
-
* <p>Tags a resource (either an <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#catalog-api-entities">entity</a> or <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets">change set</a>).</p>
|
|
77
|
+
* @see {@link TagResourceCommand}
|
|
121
78
|
*/
|
|
122
79
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
123
80
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
124
81
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
125
82
|
/**
|
|
126
|
-
* @
|
|
127
|
-
* <p>Removes a tag or list of tags from a resource (either an <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#catalog-api-entities">entity</a> or <a href="https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets">change set</a>).</p>
|
|
83
|
+
* @see {@link UntagResourceCommand}
|
|
128
84
|
*/
|
|
129
85
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
130
86
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
131
87
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
132
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* <p>Catalog API actions allow you to manage your entities through list, describe, and
|
|
92
|
+
* update capabilities. An entity can be a product or an offer on AWS Marketplace. </p>
|
|
93
|
+
* <p>You can automate your entity update process by integrating the AWS Marketplace Catalog
|
|
94
|
+
* API with your AWS Marketplace product build or deployment pipelines. You can also create
|
|
95
|
+
* your own applications on top of the Catalog API to manage your products on AWS
|
|
96
|
+
* Marketplace.</p>
|
|
97
|
+
*/
|
|
98
|
+
export declare class MarketplaceCatalog extends MarketplaceCatalogClient implements MarketplaceCatalog {
|
|
99
|
+
}
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
UntagResourceCommandOutput,
|
|
49
49
|
} from "./commands/UntagResourceCommand";
|
|
50
50
|
import { MarketplaceCatalogClient } from "./MarketplaceCatalogClient";
|
|
51
|
-
export
|
|
51
|
+
export interface MarketplaceCatalog {
|
|
52
52
|
cancelChangeSet(
|
|
53
53
|
args: CancelChangeSetCommandInput,
|
|
54
54
|
options?: __HttpHandlerOptions
|
|
@@ -206,3 +206,6 @@ export declare class MarketplaceCatalog extends MarketplaceCatalogClient {
|
|
|
206
206
|
cb: (err: any, data?: UntagResourceCommandOutput) => void
|
|
207
207
|
): void;
|
|
208
208
|
}
|
|
209
|
+
export declare class MarketplaceCatalog
|
|
210
|
+
extends MarketplaceCatalogClient
|
|
211
|
+
implements MarketplaceCatalog {}
|
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.316.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|