@aws-sdk/client-marketplace-agreement 3.975.0 → 3.978.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/index.js
CHANGED
|
@@ -654,18 +654,22 @@ class SearchAgreementsCommand extends smithyClient.Command
|
|
|
654
654
|
.build() {
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
const paginateGetAgreementTerms = core.createPaginator(MarketplaceAgreementClient, GetAgreementTermsCommand, "nextToken", "nextToken", "maxResults");
|
|
658
|
+
|
|
659
|
+
const paginateSearchAgreements = core.createPaginator(MarketplaceAgreementClient, SearchAgreementsCommand, "nextToken", "nextToken", "maxResults");
|
|
660
|
+
|
|
657
661
|
const commands = {
|
|
658
662
|
DescribeAgreementCommand,
|
|
659
663
|
GetAgreementTermsCommand,
|
|
660
664
|
SearchAgreementsCommand,
|
|
661
665
|
};
|
|
666
|
+
const paginators = {
|
|
667
|
+
paginateGetAgreementTerms,
|
|
668
|
+
paginateSearchAgreements,
|
|
669
|
+
};
|
|
662
670
|
class MarketplaceAgreement extends MarketplaceAgreementClient {
|
|
663
671
|
}
|
|
664
|
-
smithyClient.createAggregatedClient(commands, MarketplaceAgreement);
|
|
665
|
-
|
|
666
|
-
const paginateGetAgreementTerms = core.createPaginator(MarketplaceAgreementClient, GetAgreementTermsCommand, "nextToken", "nextToken", "maxResults");
|
|
667
|
-
|
|
668
|
-
const paginateSearchAgreements = core.createPaginator(MarketplaceAgreementClient, SearchAgreementsCommand, "nextToken", "nextToken", "maxResults");
|
|
672
|
+
smithyClient.createAggregatedClient(commands, MarketplaceAgreement, { paginators });
|
|
669
673
|
|
|
670
674
|
const PaymentRequestApprovalStrategy = {
|
|
671
675
|
AUTO_APPROVE_ON_EXPIRATION: "AUTO_APPROVE_ON_EXPIRATION",
|
|
@@ -3,11 +3,17 @@ import { DescribeAgreementCommand, } from "./commands/DescribeAgreementCommand";
|
|
|
3
3
|
import { GetAgreementTermsCommand, } from "./commands/GetAgreementTermsCommand";
|
|
4
4
|
import { SearchAgreementsCommand, } from "./commands/SearchAgreementsCommand";
|
|
5
5
|
import { MarketplaceAgreementClient } from "./MarketplaceAgreementClient";
|
|
6
|
+
import { paginateGetAgreementTerms } from "./pagination/GetAgreementTermsPaginator";
|
|
7
|
+
import { paginateSearchAgreements } from "./pagination/SearchAgreementsPaginator";
|
|
6
8
|
const commands = {
|
|
7
9
|
DescribeAgreementCommand,
|
|
8
10
|
GetAgreementTermsCommand,
|
|
9
11
|
SearchAgreementsCommand,
|
|
10
12
|
};
|
|
13
|
+
const paginators = {
|
|
14
|
+
paginateGetAgreementTerms,
|
|
15
|
+
paginateSearchAgreements,
|
|
16
|
+
};
|
|
11
17
|
export class MarketplaceAgreement extends MarketplaceAgreementClient {
|
|
12
18
|
}
|
|
13
|
-
createAggregatedClient(commands, MarketplaceAgreement);
|
|
19
|
+
createAggregatedClient(commands, MarketplaceAgreement, { paginators });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { DescribeAgreementCommandInput, DescribeAgreementCommandOutput } from "./commands/DescribeAgreementCommand";
|
|
3
3
|
import { GetAgreementTermsCommandInput, GetAgreementTermsCommandOutput } from "./commands/GetAgreementTermsCommand";
|
|
4
4
|
import { SearchAgreementsCommandInput, SearchAgreementsCommandOutput } from "./commands/SearchAgreementsCommand";
|
|
@@ -23,6 +23,20 @@ export interface MarketplaceAgreement {
|
|
|
23
23
|
searchAgreements(args: SearchAgreementsCommandInput, options?: __HttpHandlerOptions): Promise<SearchAgreementsCommandOutput>;
|
|
24
24
|
searchAgreements(args: SearchAgreementsCommandInput, cb: (err: any, data?: SearchAgreementsCommandOutput) => void): void;
|
|
25
25
|
searchAgreements(args: SearchAgreementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchAgreementsCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* @see {@link GetAgreementTermsCommand}
|
|
28
|
+
* @param args - command input.
|
|
29
|
+
* @param paginationConfig - optional pagination config.
|
|
30
|
+
* @returns AsyncIterable of {@link GetAgreementTermsCommandOutput}.
|
|
31
|
+
*/
|
|
32
|
+
paginateGetAgreementTerms(args: GetAgreementTermsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetAgreementTermsCommandOutput>;
|
|
33
|
+
/**
|
|
34
|
+
* @see {@link SearchAgreementsCommand}
|
|
35
|
+
* @param args - command input.
|
|
36
|
+
* @param paginationConfig - optional pagination config.
|
|
37
|
+
* @returns AsyncIterable of {@link SearchAgreementsCommandOutput}.
|
|
38
|
+
*/
|
|
39
|
+
paginateSearchAgreements(args?: SearchAgreementsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchAgreementsCommandOutput>;
|
|
26
40
|
}
|
|
27
41
|
/**
|
|
28
42
|
* <p>AWS Marketplace is a curated digital catalog that customers can use to find, buy, deploy, and manage third-party software, data, and services to build solutions and run their businesses. The AWS Marketplace Agreement Service provides an API interface that helps AWS Marketplace sellers manage their product-related agreements, including listing, searching, and filtering agreements.</p> <p>To manage agreements in AWS Marketplace, you must ensure that your AWS Identity and Access Management (IAM) policies and roles are set up. The user must have the required policies/permissions that allow them to carry out the actions in AWS:</p> <ul> <li> <p> <code>DescribeAgreement</code> – Grants permission to users to obtain detailed meta data about any of their agreements.</p> </li> <li> <p> <code>GetAgreementTerms</code> – Grants permission to users to obtain details about the terms of an agreement.</p> </li> <li> <p> <code>SearchAgreements</code> – Grants permission to users to search through all their agreements.</p> </li> </ul>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
PaginationConfiguration,
|
|
4
|
+
Paginator,
|
|
5
|
+
} from "@smithy/types";
|
|
2
6
|
import {
|
|
3
7
|
DescribeAgreementCommandInput,
|
|
4
8
|
DescribeAgreementCommandOutput,
|
|
@@ -53,6 +57,20 @@ export interface MarketplaceAgreement {
|
|
|
53
57
|
options: __HttpHandlerOptions,
|
|
54
58
|
cb: (err: any, data?: SearchAgreementsCommandOutput) => void
|
|
55
59
|
): void;
|
|
60
|
+
paginateGetAgreementTerms(
|
|
61
|
+
args: GetAgreementTermsCommandInput,
|
|
62
|
+
paginationConfig?: Pick<
|
|
63
|
+
PaginationConfiguration,
|
|
64
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
65
|
+
>
|
|
66
|
+
): Paginator<GetAgreementTermsCommandOutput>;
|
|
67
|
+
paginateSearchAgreements(
|
|
68
|
+
args?: SearchAgreementsCommandInput,
|
|
69
|
+
paginationConfig?: Pick<
|
|
70
|
+
PaginationConfiguration,
|
|
71
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
72
|
+
>
|
|
73
|
+
): Paginator<SearchAgreementsCommandOutput>;
|
|
56
74
|
}
|
|
57
75
|
export declare class MarketplaceAgreement
|
|
58
76
|
extends MarketplaceAgreementClient
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-agreement",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Agreement Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.978.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-marketplace-agreement",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
27
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.973.4",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
27
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
31
|
+
"@aws-sdk/types": "^3.973.1",
|
|
32
32
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
35
35
|
"@smithy/config-resolver": "^4.4.6",
|
|
36
|
-
"@smithy/core": "^3.
|
|
36
|
+
"@smithy/core": "^3.22.0",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
38
38
|
"@smithy/hash-node": "^4.2.8",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.9",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.8",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.8",
|
|
46
46
|
"@smithy/node-http-handler": "^4.4.8",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.8",
|
|
48
|
-
"@smithy/smithy-client": "^4.
|
|
48
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
49
49
|
"@smithy/types": "^4.12.0",
|
|
50
50
|
"@smithy/url-parser": "^4.2.8",
|
|
51
51
|
"@smithy/util-base64": "^4.3.0",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
56
56
|
"@smithy/util-endpoints": "^3.2.8",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.8",
|
|
58
58
|
"@smithy/util-retry": "^4.2.8",
|