@aws-sdk/client-marketplace-catalog 3.425.0 → 3.427.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.
@@ -213,7 +213,7 @@ const se_StartChangeSetCommand = async (input, context) => {
213
213
  let body;
214
214
  body = JSON.stringify((0, smithy_client_1.take)(input, {
215
215
  Catalog: [],
216
- ChangeSet: (_) => (0, smithy_client_1._json)(_),
216
+ ChangeSet: (_) => se_RequestedChangeList(_, context),
217
217
  ChangeSetName: [],
218
218
  ChangeSetTags: (_) => (0, smithy_client_1._json)(_),
219
219
  ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
@@ -374,7 +374,7 @@ const de_DescribeChangeSetCommand = async (output, context) => {
374
374
  });
375
375
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
376
376
  const doc = (0, smithy_client_1.take)(data, {
377
- ChangeSet: smithy_client_1._json,
377
+ ChangeSet: (_) => de_ChangeSetDescription(_, context),
378
378
  ChangeSetArn: smithy_client_1.expectString,
379
379
  ChangeSetId: smithy_client_1.expectString,
380
380
  ChangeSetName: smithy_client_1.expectString,
@@ -429,6 +429,7 @@ const de_DescribeEntityCommand = async (output, context) => {
429
429
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
430
430
  const doc = (0, smithy_client_1.take)(data, {
431
431
  Details: smithy_client_1.expectString,
432
+ DetailsDocument: (_) => de_JsonDocumentType(_, context),
432
433
  EntityArn: smithy_client_1.expectString,
433
434
  EntityIdentifier: smithy_client_1.expectString,
434
435
  EntityType: smithy_client_1.expectString,
@@ -940,6 +941,47 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
940
941
  });
941
942
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
942
943
  };
944
+ const se_Change = (input, context) => {
945
+ return (0, smithy_client_1.take)(input, {
946
+ ChangeName: [],
947
+ ChangeType: [],
948
+ Details: [],
949
+ DetailsDocument: (_) => se_JsonDocumentType(_, context),
950
+ Entity: smithy_client_1._json,
951
+ EntityTags: smithy_client_1._json,
952
+ });
953
+ };
954
+ const se_JsonDocumentType = (input, context) => {
955
+ return input;
956
+ };
957
+ const se_RequestedChangeList = (input, context) => {
958
+ return input
959
+ .filter((e) => e != null)
960
+ .map((entry) => {
961
+ return se_Change(entry, context);
962
+ });
963
+ };
964
+ const de_ChangeSetDescription = (output, context) => {
965
+ const retVal = (output || [])
966
+ .filter((e) => e != null)
967
+ .map((entry) => {
968
+ return de_ChangeSummary(entry, context);
969
+ });
970
+ return retVal;
971
+ };
972
+ const de_ChangeSummary = (output, context) => {
973
+ return (0, smithy_client_1.take)(output, {
974
+ ChangeName: smithy_client_1.expectString,
975
+ ChangeType: smithy_client_1.expectString,
976
+ Details: smithy_client_1.expectString,
977
+ DetailsDocument: (_) => de_JsonDocumentType(_, context),
978
+ Entity: smithy_client_1._json,
979
+ ErrorDetailList: smithy_client_1._json,
980
+ });
981
+ };
982
+ const de_JsonDocumentType = (output, context) => {
983
+ return output;
984
+ };
943
985
  const deserializeMetadata = (output) => ({
944
986
  httpStatusCode: output.statusCode,
945
987
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -201,7 +201,7 @@ export const se_StartChangeSetCommand = async (input, context) => {
201
201
  let body;
202
202
  body = JSON.stringify(take(input, {
203
203
  Catalog: [],
204
- ChangeSet: (_) => _json(_),
204
+ ChangeSet: (_) => se_RequestedChangeList(_, context),
205
205
  ChangeSetName: [],
206
206
  ChangeSetTags: (_) => _json(_),
207
207
  ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
@@ -357,7 +357,7 @@ export const de_DescribeChangeSetCommand = async (output, context) => {
357
357
  });
358
358
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
359
359
  const doc = take(data, {
360
- ChangeSet: _json,
360
+ ChangeSet: (_) => de_ChangeSetDescription(_, context),
361
361
  ChangeSetArn: __expectString,
362
362
  ChangeSetId: __expectString,
363
363
  ChangeSetName: __expectString,
@@ -411,6 +411,7 @@ export const de_DescribeEntityCommand = async (output, context) => {
411
411
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
412
412
  const doc = take(data, {
413
413
  Details: __expectString,
414
+ DetailsDocument: (_) => de_JsonDocumentType(_, context),
414
415
  EntityArn: __expectString,
415
416
  EntityIdentifier: __expectString,
416
417
  EntityType: __expectString,
@@ -913,6 +914,47 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
913
914
  });
914
915
  return __decorateServiceException(exception, parsedOutput.body);
915
916
  };
917
+ const se_Change = (input, context) => {
918
+ return take(input, {
919
+ ChangeName: [],
920
+ ChangeType: [],
921
+ Details: [],
922
+ DetailsDocument: (_) => se_JsonDocumentType(_, context),
923
+ Entity: _json,
924
+ EntityTags: _json,
925
+ });
926
+ };
927
+ const se_JsonDocumentType = (input, context) => {
928
+ return input;
929
+ };
930
+ const se_RequestedChangeList = (input, context) => {
931
+ return input
932
+ .filter((e) => e != null)
933
+ .map((entry) => {
934
+ return se_Change(entry, context);
935
+ });
936
+ };
937
+ const de_ChangeSetDescription = (output, context) => {
938
+ const retVal = (output || [])
939
+ .filter((e) => e != null)
940
+ .map((entry) => {
941
+ return de_ChangeSummary(entry, context);
942
+ });
943
+ return retVal;
944
+ };
945
+ const de_ChangeSummary = (output, context) => {
946
+ return take(output, {
947
+ ChangeName: __expectString,
948
+ ChangeType: __expectString,
949
+ Details: __expectString,
950
+ DetailsDocument: (_) => de_JsonDocumentType(_, context),
951
+ Entity: _json,
952
+ ErrorDetailList: _json,
953
+ });
954
+ };
955
+ const de_JsonDocumentType = (output, context) => {
956
+ return output;
957
+ };
916
958
  const deserializeMetadata = (output) => ({
917
959
  httpStatusCode: output.statusCode,
918
960
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -23,7 +23,7 @@ export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyR
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Deletes a resource-based policy on an Entity that is identified by its resource
26
+ * <p>Deletes a resource-based policy on an entity that is identified by its resource
27
27
  * ARN.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
@@ -53,6 +53,7 @@ export interface DescribeChangeSetCommandOutput extends DescribeChangeSetRespons
53
53
  * // Identifier: "STRING_VALUE",
54
54
  * // },
55
55
  * // Details: "STRING_VALUE",
56
+ * // DetailsDocument: "DOCUMENT_VALUE",
56
57
  * // ErrorDetailList: [ // ErrorDetailList
57
58
  * // { // ErrorDetail
58
59
  * // ErrorCode: "STRING_VALUE",
@@ -42,6 +42,7 @@ export interface DescribeEntityCommandOutput extends DescribeEntityResponse, __M
42
42
  * // EntityArn: "STRING_VALUE",
43
43
  * // LastModifiedDate: "STRING_VALUE",
44
44
  * // Details: "STRING_VALUE",
45
+ * // DetailsDocument: "DOCUMENT_VALUE",
45
46
  * // };
46
47
  *
47
48
  * ```
@@ -23,7 +23,7 @@ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyRespons
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Gets a resource-based policy of an Entity that is identified by its resource
26
+ * <p>Gets a resource-based policy of an entity that is identified by its resource
27
27
  * ARN.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
@@ -23,7 +23,7 @@ export interface PutResourcePolicyCommandOutput extends PutResourcePolicyRespons
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Attaches a resource-based policy to an Entity. Examples of an entity include:
26
+ * <p>Attaches a resource-based policy to an entity. Examples of an entity include:
27
27
  * <code>AmiProduct</code> and <code>ContainerProduct</code>.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
@@ -33,9 +33,9 @@ export interface StartChangeSetCommandOutput extends StartChangeSetResponse, __M
33
33
  * <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
34
34
  * change type (<code>AddRevisions</code>) against the same entity
35
35
  * (<code>entity-id@1</code>).</p>
36
- * <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
37
- * 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
38
- * 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>
36
+ * <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 about change types for
37
+ * single-AMI 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>. Also, for more information about change
38
+ * types 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>
39
39
  * @example
40
40
  * Use a bare-bones client and the command you need to make an API call.
41
41
  * ```javascript
@@ -57,7 +57,8 @@ export interface StartChangeSetCommandOutput extends StartChangeSetResponse, __M
57
57
  * Value: "STRING_VALUE", // required
58
58
  * },
59
59
  * ],
60
- * Details: "STRING_VALUE", // required
60
+ * Details: "STRING_VALUE",
61
+ * DetailsDocument: "DOCUMENT_VALUE",
61
62
  * ChangeName: "STRING_VALUE",
62
63
  * },
63
64
  * ],
@@ -1,4 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DocumentType as __DocumentType } from "@smithy/types";
2
3
  import { MarketplaceCatalogServiceException as __BaseException } from "./MarketplaceCatalogServiceException";
3
4
  /**
4
5
  * @public
@@ -121,7 +122,7 @@ export declare class ValidationException extends __BaseException {
121
122
  export interface DeleteResourcePolicyRequest {
122
123
  /**
123
124
  * @public
124
- * <p>The Amazon Resource Name (ARN) of the Entity resource that is associated with the
125
+ * <p>The Amazon Resource Name (ARN) of the entity resource that is associated with the
125
126
  * resource policy.</p>
126
127
  */
127
128
  ResourceArn: string | undefined;
@@ -204,6 +205,11 @@ export interface ChangeSummary {
204
205
  * change.</p>
205
206
  */
206
207
  Details?: string;
208
+ /**
209
+ * @public
210
+ * <p>The JSON value of the details specific to the change type of the requested change.</p>
211
+ */
212
+ DetailsDocument?: __DocumentType;
207
213
  /**
208
214
  * @public
209
215
  * <p>An array of <code>ErrorDetail</code> objects associated with the change.</p>
@@ -350,6 +356,11 @@ export interface DescribeEntityResponse {
350
356
  * <p>This stringified JSON object includes the details of the entity.</p>
351
357
  */
352
358
  Details?: string;
359
+ /**
360
+ * @public
361
+ * <p>The JSON value of the details specific to the entity.</p>
362
+ */
363
+ DetailsDocument?: __DocumentType;
353
364
  }
354
365
  /**
355
366
  * @public
@@ -370,7 +381,7 @@ export declare class ResourceNotSupportedException extends __BaseException {
370
381
  export interface GetResourcePolicyRequest {
371
382
  /**
372
383
  * @public
373
- * <p>The Amazon Resource Name (ARN) of the Entity resource that is associated with the
384
+ * <p>The Amazon Resource Name (ARN) of the entity resource that is associated with the
374
385
  * resource policy.</p>
375
386
  */
376
387
  ResourceArn: string | undefined;
@@ -467,8 +478,9 @@ export interface Sort {
467
478
  /**
468
479
  * @public
469
480
  * <p>For <code>ListEntities</code>, supported attributes include
470
- * <code>LastModifiedDate</code> (default), <code>Visibility</code>,
471
- * <code>EntityId</code>, and <code>Name</code>.</p>
481
+ * <code>LastModifiedDate</code> (default) and <code>EntityId</code>. In addition to
482
+ * <code>LastModifiedDate</code> and <code>EntityId</code>, each
483
+ * <code>EntityType</code> might support additional fields.</p>
472
484
  * <p>For <code>ListChangeSets</code>, supported attributes include <code>StartTime</code>
473
485
  * and <code>EndTime</code>.</p>
474
486
  */
@@ -635,6 +647,14 @@ export interface ListEntitiesRequest {
635
647
  * the default value is 20.</p>
636
648
  */
637
649
  MaxResults?: number;
650
+ /**
651
+ * @public
652
+ * <p>Filters the returned set of entities based on their owner. The default is
653
+ * <code>SELF</code>. To list entities shared with you
654
+ * through AWS Resource Access Manager (AWS RAM), set to <code>SHARED</code>. Entities shared through the AWS Marketplace
655
+ * Catalog API <code>PutResourcePolicy</code> operation can't be discovered through the
656
+ * <code>SHARED</code> parameter.</p>
657
+ */
638
658
  OwnershipType?: OwnershipType | string;
639
659
  }
640
660
  /**
@@ -743,8 +763,8 @@ export interface ListTagsForResourceResponse {
743
763
  export interface PutResourcePolicyRequest {
744
764
  /**
745
765
  * @public
746
- * <p>The Amazon Resource Name (ARN) of the Entity resource you want to associate with a
747
- * resource policy. </p>
766
+ * <p>The Amazon Resource Name (ARN) of the entity resource you want to associate with a
767
+ * resource policy.</p>
748
768
  */
749
769
  ResourceArn: string | undefined;
750
770
  /**
@@ -782,7 +802,7 @@ export interface Change {
782
802
  * <p>Change types are single string values that describe your intention for the change.
783
803
  * Each change type is unique for each <code>EntityType</code> provided in the change's
784
804
  * scope. For more information on change types available for single-AMI products, see
785
- * <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>. Also, for more information on change
805
+ * <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>. Also, for more information about change
786
806
  * types 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>
787
807
  */
788
808
  ChangeType: string | undefined;
@@ -798,12 +818,18 @@ export interface Change {
798
818
  EntityTags?: Tag[];
799
819
  /**
800
820
  * @public
801
- * <p>This object contains details specific to the change type of the requested
802
- * change. For more
803
- * information on change types available for single-AMI 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>. Also, for more information on change
821
+ * <p>This object contains details specific to the change type of the requested change. For
822
+ * more information about change types available for single-AMI 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>. Also, for more information about change
804
823
  * types 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>
805
824
  */
806
- Details: string | undefined;
825
+ Details?: string;
826
+ /**
827
+ * @public
828
+ * <p>Alternative field that accepts a JSON value instead of a string for
829
+ * <code>ChangeType</code> details. You can use either <code>Details</code> or
830
+ * <code>DetailsDocument</code>, but not both.</p>
831
+ */
832
+ DetailsDocument?: __DocumentType;
807
833
  /**
808
834
  * @public
809
835
  * <p>Optional name for the change.</p>
@@ -1,4 +1,5 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DocumentType as __DocumentType } from "@smithy/types";
2
3
  import { MarketplaceCatalogServiceException as __BaseException } from "./MarketplaceCatalogServiceException";
3
4
  export declare class AccessDeniedException extends __BaseException {
4
5
  readonly name: "AccessDeniedException";
@@ -76,6 +77,7 @@ export interface ChangeSummary {
76
77
  ChangeType?: string;
77
78
  Entity?: Entity;
78
79
  Details?: string;
80
+ DetailsDocument?: __DocumentType;
79
81
  ErrorDetailList?: ErrorDetail[];
80
82
  ChangeName?: string;
81
83
  }
@@ -113,6 +115,7 @@ export interface DescribeEntityResponse {
113
115
  EntityArn?: string;
114
116
  LastModifiedDate?: string;
115
117
  Details?: string;
118
+ DetailsDocument?: __DocumentType;
116
119
  }
117
120
  export declare class ResourceNotSupportedException extends __BaseException {
118
121
  readonly name: "ResourceNotSupportedException";
@@ -216,7 +219,8 @@ export interface Change {
216
219
  ChangeType: string | undefined;
217
220
  Entity: Entity | undefined;
218
221
  EntityTags?: Tag[];
219
- Details: string | undefined;
222
+ Details?: string;
223
+ DetailsDocument?: __DocumentType;
220
224
  ChangeName?: string;
221
225
  }
222
226
  export interface StartChangeSetRequest {
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.425.0",
4
+ "version": "3.427.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,16 +21,16 @@
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.425.0",
25
- "@aws-sdk/credential-provider-node": "3.425.0",
24
+ "@aws-sdk/client-sts": "3.427.0",
25
+ "@aws-sdk/credential-provider-node": "3.427.0",
26
26
  "@aws-sdk/middleware-host-header": "3.425.0",
27
27
  "@aws-sdk/middleware-logger": "3.425.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.425.0",
29
29
  "@aws-sdk/middleware-signing": "3.425.0",
30
- "@aws-sdk/middleware-user-agent": "3.425.0",
30
+ "@aws-sdk/middleware-user-agent": "3.427.0",
31
31
  "@aws-sdk/region-config-resolver": "3.425.0",
32
32
  "@aws-sdk/types": "3.425.0",
33
- "@aws-sdk/util-endpoints": "3.425.0",
33
+ "@aws-sdk/util-endpoints": "3.427.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.425.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.425.0",
36
36
  "@smithy/config-resolver": "^2.0.11",