You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-marketplace-catalog): Added three new APIs to support tagging and tag-based authorization: TagResource, UntagResource, and ListTagsForResource. Added optional parameters to the StartChangeSet API to support tagging a resource while making a request to create it.
* <p>Catalog API actions allow you to manage your entities through list, describe, and update
38
-
* capabilities. An entity can be a product or an offer on AWS Marketplace. </p>
39
-
*
48
+
* <p>Catalog API actions allow you to manage your entities through list, describe, and
49
+
* update capabilities. An entity can be a product or an offer on AWS Marketplace. </p>
40
50
* <p>You can automate your entity update process by integrating the AWS Marketplace Catalog
41
51
* API with your AWS Marketplace product build or deployment pipelines. You can also create
42
52
* your own applications on top of the Catalog API to manage your products on AWS
@@ -147,7 +157,6 @@ export class MarketplaceCatalog extends MarketplaceCatalogClient {
147
157
* can filter this list by providing any combination of <code>entityId</code>,
148
158
* <code>ChangeSetName</code>, and status. If you provide more than one filter, the API
149
159
* operation applies a logical AND between the filters.</p>
150
-
*
151
160
* <p>You can describe a change during the 60-day request history retention period for API
152
161
* calls.</p>
153
162
*/
@@ -210,19 +219,49 @@ export class MarketplaceCatalog extends MarketplaceCatalogClient {
210
219
}
211
220
212
221
/**
213
-
* <p>This operation allows you to request changes for your entities. Within a single
214
-
* ChangeSet, you cannot start the same change type against the same entity multiple times.
215
-
* Additionally, when a ChangeSet is running, all the entities targeted by the different
216
-
* changes are locked until the ChangeSet has completed (either succeeded, cancelled, or failed). If
217
-
* you try to start a ChangeSet containing a change against an entity that is already
218
-
* locked, you will receive a <code>ResourceInUseException</code>.</p>
219
-
*
220
-
* <p>For example, you cannot start the ChangeSet 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 execute the same change
221
-
* type (<code>AddRevisions</code>) against the same entity
222
-
* (<code>entity-id@1)</code>.</p>
223
-
*
224
-
* <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">
225
-
* Working with change sets</a>.</p>
222
+
* <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>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
247
+
this.send(command,optionsOrCb||{},cb);
248
+
}else{
249
+
returnthis.send(command,optionsOrCb);
250
+
}
251
+
}
252
+
253
+
/**
254
+
* <p>Allows you to request changes for your entities. Within a single
255
+
* <code>ChangeSet</code>, you can't start the same change type against the same entity
256
+
* multiple times. Additionally, when a <code>ChangeSet</code> is running, all the entities
257
+
* targeted by the different changes are locked until the change set has completed (either
258
+
* succeeded, cancelled, or failed). If you try to start a change set containing a change
259
+
* against an entity that is already locked, you will receive a
260
+
* <code>ResourceInUseException</code> error.</p>
261
+
* <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
262
+
* change type (<code>AddRevisions</code>) against the same entity
263
+
* (<code>entity-id@1</code>).</p>
264
+
* <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>.</p>
226
265
*/
227
266
publicstartChangeSet(
228
267
args: StartChangeSetCommandInput,
@@ -252,4 +291,62 @@ export class MarketplaceCatalog extends MarketplaceCatalogClient {
252
291
returnthis.send(command,optionsOrCb);
253
292
}
254
293
}
294
+
295
+
/**
296
+
* <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>
if(typeofoptionsOrCb!=="object")thrownewError(`Expect http options but get ${typeofoptionsOrCb}`);
315
+
this.send(command,optionsOrCb||{},cb);
316
+
}else{
317
+
returnthis.send(command,optionsOrCb);
318
+
}
319
+
}
320
+
321
+
/**
322
+
* <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>
* <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>
37
+
* @example
38
+
* Use a bare-bones client and the command you need to make an API call.
39
+
* ```javascript
40
+
* import { MarketplaceCatalogClient, ListTagsForResourceCommand } from "@aws-sdk/client-marketplace-catalog"; // ES Modules import
0 commit comments