@aws-sdk/client-marketplace-agreement 3.463.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.
Files changed (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +249 -0
  3. package/dist-cjs/MarketplaceAgreement.js +17 -0
  4. package/dist-cjs/MarketplaceAgreementClient.js +43 -0
  5. package/dist-cjs/commands/DescribeAgreementCommand.js +51 -0
  6. package/dist-cjs/commands/GetAgreementTermsCommand.js +51 -0
  7. package/dist-cjs/commands/SearchAgreementsCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/endpoint/EndpointParameters.js +12 -0
  10. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  11. package/dist-cjs/endpoint/ruleset.js +7 -0
  12. package/dist-cjs/extensionConfiguration.js +2 -0
  13. package/dist-cjs/index.js +12 -0
  14. package/dist-cjs/models/MarketplaceAgreementServiceException.js +12 -0
  15. package/dist-cjs/models/index.js +4 -0
  16. package/dist-cjs/models/models_0.js +137 -0
  17. package/dist-cjs/pagination/GetAgreementTermsPaginator.js +29 -0
  18. package/dist-cjs/pagination/Interfaces.js +2 -0
  19. package/dist-cjs/pagination/SearchAgreementsPaginator.js +29 -0
  20. package/dist-cjs/pagination/index.js +6 -0
  21. package/dist-cjs/protocols/Aws_json1_0.js +420 -0
  22. package/dist-cjs/runtimeConfig.browser.js +39 -0
  23. package/dist-cjs/runtimeConfig.js +50 -0
  24. package/dist-cjs/runtimeConfig.native.js +15 -0
  25. package/dist-cjs/runtimeConfig.shared.js +24 -0
  26. package/dist-cjs/runtimeExtensions.js +22 -0
  27. package/dist-es/MarketplaceAgreement.js +13 -0
  28. package/dist-es/MarketplaceAgreementClient.js +39 -0
  29. package/dist-es/commands/DescribeAgreementCommand.js +47 -0
  30. package/dist-es/commands/GetAgreementTermsCommand.js +47 -0
  31. package/dist-es/commands/SearchAgreementsCommand.js +47 -0
  32. package/dist-es/commands/index.js +3 -0
  33. package/dist-es/endpoint/EndpointParameters.js +8 -0
  34. package/dist-es/endpoint/endpointResolver.js +8 -0
  35. package/dist-es/endpoint/ruleset.js +4 -0
  36. package/dist-es/extensionConfiguration.js +1 -0
  37. package/dist-es/index.js +7 -0
  38. package/dist-es/models/MarketplaceAgreementServiceException.js +8 -0
  39. package/dist-es/models/index.js +1 -0
  40. package/dist-es/models/models_0.js +129 -0
  41. package/dist-es/pagination/GetAgreementTermsPaginator.js +25 -0
  42. package/dist-es/pagination/Interfaces.js +1 -0
  43. package/dist-es/pagination/SearchAgreementsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +3 -0
  45. package/dist-es/protocols/Aws_json1_0.js +411 -0
  46. package/dist-es/runtimeConfig.browser.js +34 -0
  47. package/dist-es/runtimeConfig.js +45 -0
  48. package/dist-es/runtimeConfig.native.js +11 -0
  49. package/dist-es/runtimeConfig.shared.js +20 -0
  50. package/dist-es/runtimeExtensions.js +18 -0
  51. package/dist-types/MarketplaceAgreement.d.ts +51 -0
  52. package/dist-types/MarketplaceAgreementClient.d.ts +192 -0
  53. package/dist-types/commands/DescribeAgreementCommand.d.ts +112 -0
  54. package/dist-types/commands/GetAgreementTermsCommand.d.ts +235 -0
  55. package/dist-types/commands/SearchAgreementsCommand.d.ts +213 -0
  56. package/dist-types/commands/index.d.ts +3 -0
  57. package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
  58. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  59. package/dist-types/endpoint/ruleset.d.ts +2 -0
  60. package/dist-types/extensionConfiguration.d.ts +8 -0
  61. package/dist-types/index.d.ts +35 -0
  62. package/dist-types/models/MarketplaceAgreementServiceException.d.ts +13 -0
  63. package/dist-types/models/index.d.ts +1 -0
  64. package/dist-types/models/models_0.d.ts +1350 -0
  65. package/dist-types/pagination/GetAgreementTermsPaginator.d.ts +7 -0
  66. package/dist-types/pagination/Interfaces.d.ts +8 -0
  67. package/dist-types/pagination/SearchAgreementsPaginator.d.ts +7 -0
  68. package/dist-types/pagination/index.d.ts +3 -0
  69. package/dist-types/protocols/Aws_json1_0.d.ts +29 -0
  70. package/dist-types/runtimeConfig.browser.d.ts +46 -0
  71. package/dist-types/runtimeConfig.d.ts +46 -0
  72. package/dist-types/runtimeConfig.native.d.ts +45 -0
  73. package/dist-types/runtimeConfig.shared.d.ts +19 -0
  74. package/dist-types/runtimeExtensions.d.ts +17 -0
  75. package/dist-types/ts3.4/MarketplaceAgreement.d.ts +58 -0
  76. package/dist-types/ts3.4/MarketplaceAgreementClient.d.ts +139 -0
  77. package/dist-types/ts3.4/commands/DescribeAgreementCommand.d.ts +38 -0
  78. package/dist-types/ts3.4/commands/GetAgreementTermsCommand.d.ts +38 -0
  79. package/dist-types/ts3.4/commands/SearchAgreementsCommand.d.ts +38 -0
  80. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  81. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
  82. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  83. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  84. package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
  85. package/dist-types/ts3.4/index.d.ts +10 -0
  86. package/dist-types/ts3.4/models/MarketplaceAgreementServiceException.d.ts +8 -0
  87. package/dist-types/ts3.4/models/index.d.ts +1 -0
  88. package/dist-types/ts3.4/models/models_0.d.ts +458 -0
  89. package/dist-types/ts3.4/pagination/GetAgreementTermsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  91. package/dist-types/ts3.4/pagination/SearchAgreementsPaginator.d.ts +11 -0
  92. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  93. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +41 -0
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +99 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +99 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +90 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  98. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  99. package/package.json +102 -0
@@ -0,0 +1,213 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { MarketplaceAgreementClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceAgreementClient";
5
+ import { SearchAgreementsInput, SearchAgreementsOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SearchAgreementsCommand}.
14
+ */
15
+ export interface SearchAgreementsCommandInput extends SearchAgreementsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchAgreementsCommand}.
21
+ */
22
+ export interface SearchAgreementsCommandOutput extends SearchAgreementsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Searches across all agreements that a proposer or an acceptor has in AWS Marketplace. The search returns a list of agreements with basic agreement information.</p>
27
+ * <p>The following filter combinations are supported:</p>
28
+ * <ul>
29
+ * <li>
30
+ * <p>
31
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
32
+ * <code>ResourceIdentifier</code>
33
+ * </p>
34
+ * </li>
35
+ * <li>
36
+ * <p>
37
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
38
+ * <code>OfferId</code>
39
+ * </p>
40
+ * </li>
41
+ * <li>
42
+ * <p>
43
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
44
+ * <code>AcceptorAccountId</code>
45
+ * </p>
46
+ * </li>
47
+ * <li>
48
+ * <p>
49
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
50
+ * <code>Status</code>
51
+ * </p>
52
+ * </li>
53
+ * <li>
54
+ * <p>
55
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
56
+ * <code>ResourceIdentifier</code> + <code>Status</code>
57
+ * </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
62
+ * <code>OfferId</code> + <code>Status</code>
63
+ * </p>
64
+ * </li>
65
+ * <li>
66
+ * <p>
67
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
68
+ * <code>AcceptorAccountId</code> + <code>Status</code>
69
+ * </p>
70
+ * </li>
71
+ * <li>
72
+ * <p>
73
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
74
+ * <code>ResourceType</code> + <code>Status</code>
75
+ * </p>
76
+ * </li>
77
+ * <li>
78
+ * <p>
79
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
80
+ * <code>AcceptorAccountId</code> + <code>ResourceType</code> +
81
+ * <code>Status</code>
82
+ * </p>
83
+ * </li>
84
+ * <li>
85
+ * <p>
86
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
87
+ * <code>AcceptorAccountId</code> + <code>OfferId</code>
88
+ * </p>
89
+ * </li>
90
+ * <li>
91
+ * <p>
92
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
93
+ * <code>AcceptorAccountId</code> + <code>OfferId</code> + <code>Status</code>
94
+ * </p>
95
+ * </li>
96
+ * <li>
97
+ * <p>
98
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
99
+ * <code>AcceptorAccountId</code> + <code>ResourceIdentifier</code>
100
+ * </p>
101
+ * </li>
102
+ * <li>
103
+ * <p>
104
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
105
+ * <code>AcceptorAccountId</code> + <code>ResourceIdentifier</code> +
106
+ * <code>Status</code>
107
+ * </p>
108
+ * </li>
109
+ * <li>
110
+ * <p>
111
+ * <code>PartyType</code> as <code>Proposer</code> + <code>AgreementType</code> +
112
+ * <code>AcceptorAccountId</code> + <code>ResourceType</code>
113
+ * </p>
114
+ * </li>
115
+ * </ul>
116
+ * @example
117
+ * Use a bare-bones client and the command you need to make an API call.
118
+ * ```javascript
119
+ * import { MarketplaceAgreementClient, SearchAgreementsCommand } from "@aws-sdk/client-marketplace-agreement"; // ES Modules import
120
+ * // const { MarketplaceAgreementClient, SearchAgreementsCommand } = require("@aws-sdk/client-marketplace-agreement"); // CommonJS import
121
+ * const client = new MarketplaceAgreementClient(config);
122
+ * const input = { // SearchAgreementsInput
123
+ * catalog: "STRING_VALUE",
124
+ * filters: [ // FilterList
125
+ * { // Filter
126
+ * name: "STRING_VALUE",
127
+ * values: [ // FilterValueList
128
+ * "STRING_VALUE",
129
+ * ],
130
+ * },
131
+ * ],
132
+ * sort: { // Sort
133
+ * sortBy: "STRING_VALUE",
134
+ * sortOrder: "ASCENDING" || "DESCENDING",
135
+ * },
136
+ * maxResults: Number("int"),
137
+ * nextToken: "STRING_VALUE",
138
+ * };
139
+ * const command = new SearchAgreementsCommand(input);
140
+ * const response = await client.send(command);
141
+ * // { // SearchAgreementsOutput
142
+ * // agreementViewSummaries: [ // AgreementViewSummaryList
143
+ * // { // AgreementViewSummary
144
+ * // agreementId: "STRING_VALUE",
145
+ * // acceptanceTime: new Date("TIMESTAMP"),
146
+ * // startTime: new Date("TIMESTAMP"),
147
+ * // endTime: new Date("TIMESTAMP"),
148
+ * // agreementType: "STRING_VALUE",
149
+ * // acceptor: { // Acceptor
150
+ * // accountId: "STRING_VALUE",
151
+ * // },
152
+ * // proposer: { // Proposer
153
+ * // accountId: "STRING_VALUE",
154
+ * // },
155
+ * // proposalSummary: { // ProposalSummary
156
+ * // resources: [ // Resources
157
+ * // { // Resource
158
+ * // id: "STRING_VALUE",
159
+ * // type: "STRING_VALUE",
160
+ * // },
161
+ * // ],
162
+ * // offerId: "STRING_VALUE",
163
+ * // },
164
+ * // status: "ACTIVE" || "ARCHIVED" || "CANCELLED" || "EXPIRED" || "RENEWED" || "REPLACED" || "ROLLED_BACK" || "SUPERSEDED" || "TERMINATED",
165
+ * // },
166
+ * // ],
167
+ * // nextToken: "STRING_VALUE",
168
+ * // };
169
+ *
170
+ * ```
171
+ *
172
+ * @param SearchAgreementsCommandInput - {@link SearchAgreementsCommandInput}
173
+ * @returns {@link SearchAgreementsCommandOutput}
174
+ * @see {@link SearchAgreementsCommandInput} for command's `input` shape.
175
+ * @see {@link SearchAgreementsCommandOutput} for command's `response` shape.
176
+ * @see {@link MarketplaceAgreementClientResolvedConfig | config} for MarketplaceAgreementClient's `config` shape.
177
+ *
178
+ * @throws {@link AccessDeniedException} (client fault)
179
+ * <p>User does not have sufficient access to perform this action.</p>
180
+ *
181
+ * @throws {@link InternalServerException} (server fault)
182
+ * <p>Unexpected error during processing of request.</p>
183
+ *
184
+ * @throws {@link ThrottlingException} (client fault)
185
+ * <p>Request was denied due to request throttling.</p>
186
+ *
187
+ * @throws {@link ValidationException} (client fault)
188
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
189
+ *
190
+ * @throws {@link MarketplaceAgreementServiceException}
191
+ * <p>Base exception class for all service exceptions from MarketplaceAgreement service.</p>
192
+ *
193
+ */
194
+ export declare class SearchAgreementsCommand extends $Command<SearchAgreementsCommandInput, SearchAgreementsCommandOutput, MarketplaceAgreementClientResolvedConfig> {
195
+ readonly input: SearchAgreementsCommandInput;
196
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
197
+ /**
198
+ * @public
199
+ */
200
+ constructor(input: SearchAgreementsCommandInput);
201
+ /**
202
+ * @internal
203
+ */
204
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MarketplaceAgreementClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SearchAgreementsCommandInput, SearchAgreementsCommandOutput>;
205
+ /**
206
+ * @internal
207
+ */
208
+ private serialize;
209
+ /**
210
+ * @internal
211
+ */
212
+ private deserialize;
213
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./DescribeAgreementCommand";
2
+ export * from "./GetAgreementTermsCommand";
3
+ export * from "./SearchAgreementsCommand";
@@ -0,0 +1,22 @@
1
+ import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface ClientInputEndpointParameters {
6
+ region?: string | Provider<string>;
7
+ useDualstackEndpoint?: boolean | Provider<boolean>;
8
+ useFipsEndpoint?: boolean | Provider<boolean>;
9
+ endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
+ }
11
+ export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
12
+ defaultSigningName: string;
13
+ };
14
+ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
15
+ defaultSigningName: string;
16
+ };
17
+ export interface EndpointParameters extends __EndpointParameters {
18
+ Region?: string;
19
+ UseDualStack?: boolean;
20
+ UseFIPS?: boolean;
21
+ Endpoint?: string;
22
+ }
@@ -0,0 +1,5 @@
1
+ import { EndpointV2, Logger } from "@smithy/types";
2
+ import { EndpointParameters } from "./EndpointParameters";
3
+ export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
+ logger?: Logger;
5
+ }) => EndpointV2;
@@ -0,0 +1,2 @@
1
+ import { RuleSetObject } from "@smithy/types";
2
+ export declare const ruleSet: RuleSetObject;
@@ -0,0 +1,8 @@
1
+ import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface MarketplaceAgreementExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * <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>
3
+ * <p>To manage agreements in AWS Marketplace, you must ensure that your AWS Identity and
4
+ * Access Management (IAM) policies and roles are set up. The user must have the required
5
+ * policies/permissions that allow them to carry out the actions in AWS:</p>
6
+ * <ul>
7
+ * <li>
8
+ * <p>
9
+ * <code>DescribeAgreement</code> – Grants permission to users to obtain detailed
10
+ * meta data about any of their agreements.</p>
11
+ * </li>
12
+ * <li>
13
+ * <p>
14
+ * <code>GetAgreementTerms</code> – Grants permission to users to obtain details
15
+ * about the terms of an agreement.</p>
16
+ * </li>
17
+ * <li>
18
+ * <p>
19
+ * <code>SearchAgreements</code> – Grants permission to users to search through all
20
+ * their agreements.</p>
21
+ * </li>
22
+ * </ul>
23
+ *
24
+ * @packageDocumentation
25
+ */
26
+ export * from "./MarketplaceAgreementClient";
27
+ export * from "./MarketplaceAgreement";
28
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
29
+ export { RuntimeExtension } from "./runtimeExtensions";
30
+ export { MarketplaceAgreementExtensionConfiguration } from "./extensionConfiguration";
31
+ export * from "./commands";
32
+ export * from "./pagination";
33
+ export * from "./models";
34
+ import "@aws-sdk/util-endpoints";
35
+ export { MarketplaceAgreementServiceException } from "./models/MarketplaceAgreementServiceException";
@@ -0,0 +1,13 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
2
+ export { __ServiceException, __ServiceExceptionOptions };
3
+ /**
4
+ * @public
5
+ *
6
+ * Base exception class for all service exceptions from MarketplaceAgreement service.
7
+ */
8
+ export declare class MarketplaceAgreementServiceException extends __ServiceException {
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(options: __ServiceExceptionOptions);
13
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";