@aws-sdk/client-marketplace-discovery 3.1027.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 (122) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +244 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +463 -0
  7. package/dist-cjs/models/MarketplaceDiscoveryServiceException.js +12 -0
  8. package/dist-cjs/models/errors.js +71 -0
  9. package/dist-cjs/runtimeConfig.browser.js +38 -0
  10. package/dist-cjs/runtimeConfig.js +54 -0
  11. package/dist-cjs/runtimeConfig.native.js +15 -0
  12. package/dist-cjs/runtimeConfig.shared.js +43 -0
  13. package/dist-cjs/schemas/schemas_0.js +951 -0
  14. package/dist-es/MarketplaceDiscovery.js +37 -0
  15. package/dist-es/MarketplaceDiscoveryClient.js +50 -0
  16. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  17. package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
  18. package/dist-es/commands/GetListingCommand.js +16 -0
  19. package/dist-es/commands/GetOfferCommand.js +16 -0
  20. package/dist-es/commands/GetOfferSetCommand.js +16 -0
  21. package/dist-es/commands/GetOfferTermsCommand.js +16 -0
  22. package/dist-es/commands/GetProductCommand.js +16 -0
  23. package/dist-es/commands/ListFulfillmentOptionsCommand.js +16 -0
  24. package/dist-es/commands/ListPurchaseOptionsCommand.js +16 -0
  25. package/dist-es/commands/SearchFacetsCommand.js +16 -0
  26. package/dist-es/commands/SearchListingsCommand.js +16 -0
  27. package/dist-es/commands/index.js +9 -0
  28. package/dist-es/endpoint/EndpointParameters.js +11 -0
  29. package/dist-es/endpoint/endpointResolver.js +14 -0
  30. package/dist-es/endpoint/ruleset.js +4 -0
  31. package/dist-es/extensionConfiguration.js +1 -0
  32. package/dist-es/index.js +9 -0
  33. package/dist-es/models/MarketplaceDiscoveryServiceException.js +8 -0
  34. package/dist-es/models/enums.js +146 -0
  35. package/dist-es/models/errors.js +63 -0
  36. package/dist-es/models/models_0.js +1 -0
  37. package/dist-es/pagination/GetOfferTermsPaginator.js +4 -0
  38. package/dist-es/pagination/Interfaces.js +1 -0
  39. package/dist-es/pagination/ListFulfillmentOptionsPaginator.js +4 -0
  40. package/dist-es/pagination/ListPurchaseOptionsPaginator.js +4 -0
  41. package/dist-es/pagination/SearchFacetsPaginator.js +4 -0
  42. package/dist-es/pagination/SearchListingsPaginator.js +4 -0
  43. package/dist-es/pagination/index.js +6 -0
  44. package/dist-es/runtimeConfig.browser.js +33 -0
  45. package/dist-es/runtimeConfig.js +49 -0
  46. package/dist-es/runtimeConfig.native.js +11 -0
  47. package/dist-es/runtimeConfig.shared.js +39 -0
  48. package/dist-es/runtimeExtensions.js +9 -0
  49. package/dist-es/schemas/schemas_0.js +946 -0
  50. package/dist-types/MarketplaceDiscovery.d.ts +111 -0
  51. package/dist-types/MarketplaceDiscoveryClient.d.ts +196 -0
  52. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  53. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  54. package/dist-types/commands/GetListingCommand.d.ts +579 -0
  55. package/dist-types/commands/GetOfferCommand.d.ts +314 -0
  56. package/dist-types/commands/GetOfferSetCommand.d.ts +192 -0
  57. package/dist-types/commands/GetOfferTermsCommand.d.ts +690 -0
  58. package/dist-types/commands/GetProductCommand.d.ts +379 -0
  59. package/dist-types/commands/ListFulfillmentOptionsCommand.d.ts +668 -0
  60. package/dist-types/commands/ListPurchaseOptionsCommand.d.ts +285 -0
  61. package/dist-types/commands/SearchFacetsCommand.d.ts +241 -0
  62. package/dist-types/commands/SearchListingsCommand.d.ts +263 -0
  63. package/dist-types/commands/index.d.ts +9 -0
  64. package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
  65. package/dist-types/endpoint/endpointResolver.d.ts +8 -0
  66. package/dist-types/endpoint/ruleset.d.ts +2 -0
  67. package/dist-types/extensionConfiguration.d.ts +9 -0
  68. package/dist-types/index.d.ts +17 -0
  69. package/dist-types/models/MarketplaceDiscoveryServiceException.d.ts +14 -0
  70. package/dist-types/models/enums.d.ts +338 -0
  71. package/dist-types/models/errors.d.ts +68 -0
  72. package/dist-types/models/models_0.d.ts +2881 -0
  73. package/dist-types/pagination/GetOfferTermsPaginator.d.ts +7 -0
  74. package/dist-types/pagination/Interfaces.d.ts +8 -0
  75. package/dist-types/pagination/ListFulfillmentOptionsPaginator.d.ts +7 -0
  76. package/dist-types/pagination/ListPurchaseOptionsPaginator.d.ts +7 -0
  77. package/dist-types/pagination/SearchFacetsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/SearchListingsPaginator.d.ts +7 -0
  79. package/dist-types/pagination/index.d.ts +6 -0
  80. package/dist-types/runtimeConfig.browser.d.ts +55 -0
  81. package/dist-types/runtimeConfig.d.ts +55 -0
  82. package/dist-types/runtimeConfig.native.d.ts +54 -0
  83. package/dist-types/runtimeConfig.shared.d.ts +27 -0
  84. package/dist-types/runtimeExtensions.d.ts +17 -0
  85. package/dist-types/schemas/schemas_0.d.ts +114 -0
  86. package/dist-types/ts3.4/MarketplaceDiscovery.d.ts +202 -0
  87. package/dist-types/ts3.4/MarketplaceDiscoveryClient.d.ts +175 -0
  88. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  89. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  90. package/dist-types/ts3.4/commands/GetListingCommand.d.ts +47 -0
  91. package/dist-types/ts3.4/commands/GetOfferCommand.d.ts +47 -0
  92. package/dist-types/ts3.4/commands/GetOfferSetCommand.d.ts +47 -0
  93. package/dist-types/ts3.4/commands/GetOfferTermsCommand.d.ts +47 -0
  94. package/dist-types/ts3.4/commands/GetProductCommand.d.ts +47 -0
  95. package/dist-types/ts3.4/commands/ListFulfillmentOptionsCommand.d.ts +51 -0
  96. package/dist-types/ts3.4/commands/ListPurchaseOptionsCommand.d.ts +51 -0
  97. package/dist-types/ts3.4/commands/SearchFacetsCommand.d.ts +47 -0
  98. package/dist-types/ts3.4/commands/SearchListingsCommand.d.ts +47 -0
  99. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  100. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  101. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  102. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  103. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  104. package/dist-types/ts3.4/index.d.ts +12 -0
  105. package/dist-types/ts3.4/models/MarketplaceDiscoveryServiceException.d.ts +9 -0
  106. package/dist-types/ts3.4/models/enums.d.ts +191 -0
  107. package/dist-types/ts3.4/models/errors.d.ts +39 -0
  108. package/dist-types/ts3.4/models/models_0.d.ts +1048 -0
  109. package/dist-types/ts3.4/pagination/GetOfferTermsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  111. package/dist-types/ts3.4/pagination/ListFulfillmentOptionsPaginator.d.ts +11 -0
  112. package/dist-types/ts3.4/pagination/ListPurchaseOptionsPaginator.d.ts +11 -0
  113. package/dist-types/ts3.4/pagination/SearchFacetsPaginator.d.ts +11 -0
  114. package/dist-types/ts3.4/pagination/SearchListingsPaginator.d.ts +11 -0
  115. package/dist-types/ts3.4/pagination/index.d.ts +6 -0
  116. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +102 -0
  117. package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
  118. package/dist-types/ts3.4/runtimeConfig.native.d.ts +106 -0
  119. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
  120. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  121. package/dist-types/ts3.4/schemas/schemas_0.d.ts +114 -0
  122. package/package.json +100 -0
@@ -0,0 +1,690 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MarketplaceDiscoveryClient";
4
+ import type { GetOfferTermsInput, GetOfferTermsOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOfferTermsCommand}.
14
+ */
15
+ export interface GetOfferTermsCommandInput extends GetOfferTermsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOfferTermsCommand}.
21
+ */
22
+ export interface GetOfferTermsCommandOutput extends GetOfferTermsOutput, __MetadataBearer {
23
+ }
24
+ declare const GetOfferTermsCommand_base: {
25
+ new (input: GetOfferTermsCommandInput): import("@smithy/smithy-client").CommandImpl<GetOfferTermsCommandInput, GetOfferTermsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetOfferTermsCommandInput): import("@smithy/smithy-client").CommandImpl<GetOfferTermsCommandInput, GetOfferTermsCommandOutput, MarketplaceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the terms attached to an offer, such as pricing terms (usage-based, contract, BYOL, free trial), legal terms, payment schedules, validity terms, support terms, and renewal terms.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { MarketplaceDiscoveryClient, GetOfferTermsCommand } from "@aws-sdk/client-marketplace-discovery"; // ES Modules import
35
+ * // const { MarketplaceDiscoveryClient, GetOfferTermsCommand } = require("@aws-sdk/client-marketplace-discovery"); // CommonJS import
36
+ * // import type { MarketplaceDiscoveryClientConfig } from "@aws-sdk/client-marketplace-discovery";
37
+ * const config = {}; // type is MarketplaceDiscoveryClientConfig
38
+ * const client = new MarketplaceDiscoveryClient(config);
39
+ * const input = { // GetOfferTermsInput
40
+ * offerId: "STRING_VALUE", // required
41
+ * maxResults: Number("int"),
42
+ * nextToken: "STRING_VALUE",
43
+ * };
44
+ * const command = new GetOfferTermsCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetOfferTermsOutput
47
+ * // offerTerms: [ // OfferTermsList // required
48
+ * // { // OfferTerm Union: only one key present
49
+ * // byolPricingTerm: { // ByolPricingTerm
50
+ * // id: "STRING_VALUE", // required
51
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
52
+ * // },
53
+ * // configurableUpfrontPricingTerm: { // ConfigurableUpfrontPricingTerm
54
+ * // id: "STRING_VALUE", // required
55
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
56
+ * // currencyCode: "STRING_VALUE", // required
57
+ * // rateCards: [ // ConfigurableUpfrontRateCardList
58
+ * // { // ConfigurableUpfrontRateCardItem
59
+ * // selector: { // Selector
60
+ * // type: "Duration", // required
61
+ * // value: "STRING_VALUE", // required
62
+ * // },
63
+ * // constraints: { // Constraints
64
+ * // multipleDimensionSelection: "Allowed" || "Disallowed", // required
65
+ * // quantityConfiguration: "Allowed" || "Disallowed", // required
66
+ * // },
67
+ * // rateCard: [ // RateCardList // required
68
+ * // { // RateCardItem
69
+ * // dimensionKey: "STRING_VALUE", // required
70
+ * // displayName: "STRING_VALUE", // required
71
+ * // description: "STRING_VALUE",
72
+ * // dimensionLabels: [ // DimensionLabelList
73
+ * // { // DimensionLabel
74
+ * // labelType: "Region" || "SagemakerOption", // required
75
+ * // labelValue: "STRING_VALUE", // required
76
+ * // displayName: "STRING_VALUE",
77
+ * // },
78
+ * // ],
79
+ * // unit: "STRING_VALUE", // required
80
+ * // price: "STRING_VALUE", // required
81
+ * // },
82
+ * // ],
83
+ * // },
84
+ * // ],
85
+ * // },
86
+ * // fixedUpfrontPricingTerm: { // FixedUpfrontPricingTerm
87
+ * // id: "STRING_VALUE", // required
88
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
89
+ * // currencyCode: "STRING_VALUE", // required
90
+ * // duration: "STRING_VALUE",
91
+ * // price: "STRING_VALUE", // required
92
+ * // grants: [ // GrantList // required
93
+ * // { // GrantItem
94
+ * // dimensionKey: "STRING_VALUE", // required
95
+ * // displayName: "STRING_VALUE", // required
96
+ * // description: "STRING_VALUE",
97
+ * // dimensionLabels: [
98
+ * // {
99
+ * // labelType: "Region" || "SagemakerOption", // required
100
+ * // labelValue: "STRING_VALUE", // required
101
+ * // displayName: "STRING_VALUE",
102
+ * // },
103
+ * // ],
104
+ * // unit: "STRING_VALUE", // required
105
+ * // maxQuantity: Number("int"),
106
+ * // },
107
+ * // ],
108
+ * // },
109
+ * // freeTrialPricingTerm: { // FreeTrialPricingTerm
110
+ * // id: "STRING_VALUE", // required
111
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
112
+ * // duration: "STRING_VALUE",
113
+ * // grants: [ // required
114
+ * // {
115
+ * // dimensionKey: "STRING_VALUE", // required
116
+ * // displayName: "STRING_VALUE", // required
117
+ * // description: "STRING_VALUE",
118
+ * // dimensionLabels: [
119
+ * // {
120
+ * // labelType: "Region" || "SagemakerOption", // required
121
+ * // labelValue: "STRING_VALUE", // required
122
+ * // displayName: "STRING_VALUE",
123
+ * // },
124
+ * // ],
125
+ * // unit: "STRING_VALUE", // required
126
+ * // maxQuantity: Number("int"),
127
+ * // },
128
+ * // ],
129
+ * // },
130
+ * // legalTerm: { // LegalTerm
131
+ * // id: "STRING_VALUE", // required
132
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
133
+ * // documents: [ // DocumentList // required
134
+ * // { // DocumentItem
135
+ * // type: "CustomEula" || "CustomDsa" || "EnterpriseEula" || "StandardEula" || "StandardDsa", // required
136
+ * // url: "STRING_VALUE", // required
137
+ * // version: "STRING_VALUE",
138
+ * // },
139
+ * // ],
140
+ * // },
141
+ * // paymentScheduleTerm: { // PaymentScheduleTerm
142
+ * // id: "STRING_VALUE", // required
143
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
144
+ * // currencyCode: "STRING_VALUE", // required
145
+ * // schedule: [ // ScheduleList // required
146
+ * // { // ScheduleItem
147
+ * // chargeDate: new Date("TIMESTAMP"), // required
148
+ * // chargeAmount: "STRING_VALUE", // required
149
+ * // },
150
+ * // ],
151
+ * // },
152
+ * // recurringPaymentTerm: { // RecurringPaymentTerm
153
+ * // id: "STRING_VALUE", // required
154
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
155
+ * // currencyCode: "STRING_VALUE", // required
156
+ * // billingPeriod: "Monthly", // required
157
+ * // price: "STRING_VALUE", // required
158
+ * // },
159
+ * // renewalTerm: { // RenewalTerm
160
+ * // id: "STRING_VALUE", // required
161
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
162
+ * // },
163
+ * // supportTerm: { // SupportTerm
164
+ * // id: "STRING_VALUE", // required
165
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
166
+ * // refundPolicy: "STRING_VALUE", // required
167
+ * // },
168
+ * // usageBasedPricingTerm: { // UsageBasedPricingTerm
169
+ * // id: "STRING_VALUE", // required
170
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
171
+ * // currencyCode: "STRING_VALUE", // required
172
+ * // rateCards: [ // UsageBasedRateCardList // required
173
+ * // { // UsageBasedRateCardItem
174
+ * // rateCard: [ // required
175
+ * // {
176
+ * // dimensionKey: "STRING_VALUE", // required
177
+ * // displayName: "STRING_VALUE", // required
178
+ * // description: "STRING_VALUE",
179
+ * // dimensionLabels: [
180
+ * // {
181
+ * // labelType: "Region" || "SagemakerOption", // required
182
+ * // labelValue: "STRING_VALUE", // required
183
+ * // displayName: "STRING_VALUE",
184
+ * // },
185
+ * // ],
186
+ * // unit: "STRING_VALUE", // required
187
+ * // price: "STRING_VALUE", // required
188
+ * // },
189
+ * // ],
190
+ * // },
191
+ * // ],
192
+ * // },
193
+ * // validityTerm: { // ValidityTerm
194
+ * // id: "STRING_VALUE", // required
195
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
196
+ * // agreementDuration: "STRING_VALUE",
197
+ * // agreementEndDate: new Date("TIMESTAMP"),
198
+ * // agreementStartDate: new Date("TIMESTAMP"),
199
+ * // },
200
+ * // variablePaymentTerm: { // VariablePaymentTerm
201
+ * // id: "STRING_VALUE", // required
202
+ * // type: "ByolPricingTerm" || "ConfigurableUpfrontPricingTerm" || "FixedUpfrontPricingTerm" || "UsageBasedPricingTerm" || "FreeTrialPricingTerm" || "LegalTerm" || "PaymentScheduleTerm" || "RecurringPaymentTerm" || "RenewalTerm" || "SupportTerm" || "ValidityTerm" || "VariablePaymentTerm", // required
203
+ * // currencyCode: "STRING_VALUE", // required
204
+ * // maxTotalChargeAmount: "STRING_VALUE", // required
205
+ * // },
206
+ * // },
207
+ * // ],
208
+ * // nextToken: "STRING_VALUE",
209
+ * // };
210
+ *
211
+ * ```
212
+ *
213
+ * @param GetOfferTermsCommandInput - {@link GetOfferTermsCommandInput}
214
+ * @returns {@link GetOfferTermsCommandOutput}
215
+ * @see {@link GetOfferTermsCommandInput} for command's `input` shape.
216
+ * @see {@link GetOfferTermsCommandOutput} for command's `response` shape.
217
+ * @see {@link MarketplaceDiscoveryClientResolvedConfig | config} for MarketplaceDiscoveryClient's `config` shape.
218
+ *
219
+ * @throws {@link ResourceNotFoundException} (client fault)
220
+ * <p>The specified resource doesn't exist.</p>
221
+ *
222
+ * @throws {@link AccessDeniedException} (client fault)
223
+ * <p>You don't have sufficient access to perform this action.</p>
224
+ *
225
+ * @throws {@link InternalServerException} (server fault)
226
+ * <p>Unexpected error during processing of the request.</p>
227
+ *
228
+ * @throws {@link ThrottlingException} (client fault)
229
+ * <p>The request was denied due to request throttling.</p>
230
+ *
231
+ * @throws {@link ValidationException} (client fault)
232
+ * <p>The input fails to satisfy the constraints specified by the service.</p>
233
+ *
234
+ * @throws {@link MarketplaceDiscoveryServiceException}
235
+ * <p>Base exception class for all service exceptions from MarketplaceDiscovery service.</p>
236
+ *
237
+ *
238
+ * @example GetOfferTerms for Usage-based ML Model offer
239
+ * ```javascript
240
+ * //
241
+ * const input = {
242
+ * offerId: "offer-sampleUsageBasedId"
243
+ * };
244
+ * const command = new GetOfferTermsCommand(input);
245
+ * const response = await client.send(command);
246
+ * /* response is
247
+ * {
248
+ * offerTerms: [
249
+ * {
250
+ * usageBasedPricingTerm: {
251
+ * currencyCode: "USD",
252
+ * id: "term-sampleUsageBasedPricingId",
253
+ * rateCards: [
254
+ * {
255
+ * rateCard: [
256
+ * {
257
+ * description: "Model inference on the ml.m5.2xlarge instance type, batch mode",
258
+ * dimensionKey: "ml.m5.2xlarge.m.i.b",
259
+ * dimensionLabels: [
260
+ * {
261
+ * displayName: "Model Batch Transform",
262
+ * labelType: "SagemakerOption",
263
+ * labelValue: "Model Batch Transform"
264
+ * }
265
+ * ],
266
+ * displayName: "ml.m5.2xlarge Inference (Batch)",
267
+ * price: "2.00000000",
268
+ * unit: "HostHrs"
269
+ * },
270
+ * {
271
+ * description: "Model inference on the ml.m5.2xlarge instance type, real-time mode",
272
+ * dimensionKey: "ml.m5.2xlarge.m.i.r",
273
+ * dimensionLabels: [
274
+ * {
275
+ * displayName: "Model Real-Time Inference",
276
+ * labelType: "SagemakerOption",
277
+ * labelValue: "Model Real-Time Inference"
278
+ * }
279
+ * ],
280
+ * displayName: "ml.m5.2xlarge Inference (Real-Time)",
281
+ * price: "2.00000000",
282
+ * unit: "HostHrs"
283
+ * },
284
+ * {
285
+ * description: "Model inference on the ml.m5.large instance type, batch mode",
286
+ * dimensionKey: "ml.m5.large.m.i.b",
287
+ * dimensionLabels: [
288
+ * {
289
+ * displayName: "Model Batch Transform",
290
+ * labelType: "SagemakerOption",
291
+ * labelValue: "Model Batch Transform"
292
+ * }
293
+ * ],
294
+ * displayName: "ml.m5.large Inference (Batch)",
295
+ * price: "2.00000000",
296
+ * unit: "HostHrs"
297
+ * },
298
+ * {
299
+ * description: "Model inference on the ml.m5.large instance type, real-time mode",
300
+ * dimensionKey: "ml.m5.large.m.i.r",
301
+ * dimensionLabels: [
302
+ * {
303
+ * displayName: "Model Real-Time Inference",
304
+ * labelType: "SagemakerOption",
305
+ * labelValue: "Model Real-Time Inference"
306
+ * }
307
+ * ],
308
+ * displayName: "ml.m5.large Inference (Real-Time)",
309
+ * price: "2.00000000",
310
+ * unit: "HostHrs"
311
+ * }
312
+ * ]
313
+ * }
314
+ * ],
315
+ * type: "UsageBasedPricingTerm"
316
+ * }
317
+ * },
318
+ * {
319
+ * fixedUpfrontPricingTerm: {
320
+ * currencyCode: "USD",
321
+ * duration: "P365D",
322
+ * grants: [
323
+ * {
324
+ * description: "Model inference on the ml.m5.2xlarge instance type, batch mode",
325
+ * dimensionKey: "ml.m5.2xlarge.m.i.b",
326
+ * dimensionLabels: [
327
+ * {
328
+ * displayName: "Model Batch Transform",
329
+ * labelType: "SagemakerOption",
330
+ * labelValue: "Model Batch Transform"
331
+ * }
332
+ * ],
333
+ * displayName: "ml.m5.2xlarge Inference (Batch)",
334
+ * maxQuantity: 2147483647,
335
+ * unit: "HostHrs"
336
+ * },
337
+ * {
338
+ * description: "Model inference on the ml.m5.2xlarge instance type, real-time mode",
339
+ * dimensionKey: "ml.m5.2xlarge.m.i.r",
340
+ * dimensionLabels: [
341
+ * {
342
+ * displayName: "Model Real-Time Inference",
343
+ * labelType: "SagemakerOption",
344
+ * labelValue: "Model Real-Time Inference"
345
+ * }
346
+ * ],
347
+ * displayName: "ml.m5.2xlarge Inference (Real-Time)",
348
+ * maxQuantity: 2147483647,
349
+ * unit: "HostHrs"
350
+ * },
351
+ * {
352
+ * description: "Model inference on the ml.m5.large instance type, batch mode",
353
+ * dimensionKey: "ml.m5.large.m.i.b",
354
+ * dimensionLabels: [
355
+ * {
356
+ * displayName: "Model Batch Transform",
357
+ * labelType: "SagemakerOption",
358
+ * labelValue: "Model Batch Transform"
359
+ * }
360
+ * ],
361
+ * displayName: "ml.m5.large Inference (Batch)",
362
+ * maxQuantity: 2147483647,
363
+ * unit: "HostHrs"
364
+ * },
365
+ * {
366
+ * description: "Model inference on the ml.m5.large instance type, real-time mode",
367
+ * dimensionKey: "ml.m5.large.m.i.r",
368
+ * dimensionLabels: [
369
+ * {
370
+ * displayName: "Model Real-Time Inference",
371
+ * labelType: "SagemakerOption",
372
+ * labelValue: "Model Real-Time Inference"
373
+ * }
374
+ * ],
375
+ * displayName: "ml.m5.large Inference (Real-Time)",
376
+ * maxQuantity: 2147483647,
377
+ * unit: "HostHrs"
378
+ * }
379
+ * ],
380
+ * id: "term-sampleFixedUpfrontPricingId",
381
+ * price: "0.00000000",
382
+ * type: "FixedUpfrontPricingTerm"
383
+ * }
384
+ * },
385
+ * {
386
+ * legalTerm: {
387
+ * documents: [
388
+ * {
389
+ * type: "StandardEula",
390
+ * url: "https://example.com/legal/standard-eula"
391
+ * }
392
+ * ],
393
+ * id: "term-sampleLegalId",
394
+ * type: "LegalTerm"
395
+ * }
396
+ * },
397
+ * {
398
+ * validityTerm: {
399
+ * agreementDuration: "P2011D",
400
+ * id: "term-sampleValidityId",
401
+ * type: "ValidityTerm"
402
+ * }
403
+ * },
404
+ * {
405
+ * paymentScheduleTerm: {
406
+ * currencyCode: "USD",
407
+ * id: "term-samplePaymentScheduleId",
408
+ * schedule: [
409
+ * {
410
+ * chargeAmount: "5.00000000",
411
+ * chargeDate: "2026-07-15T00:00:00.000Z"
412
+ * }
413
+ * ],
414
+ * type: "PaymentScheduleTerm"
415
+ * }
416
+ * }
417
+ * ]
418
+ * }
419
+ * *\/
420
+ * ```
421
+ *
422
+ * @example GetOfferTerms for BYOL offer
423
+ * ```javascript
424
+ * //
425
+ * const input = {
426
+ * offerId: "offer-sampleByolId"
427
+ * };
428
+ * const command = new GetOfferTermsCommand(input);
429
+ * const response = await client.send(command);
430
+ * /* response is
431
+ * {
432
+ * offerTerms: [
433
+ * {
434
+ * byolPricingTerm: {
435
+ * id: "term-byol-001",
436
+ * type: "ByolPricingTerm"
437
+ * }
438
+ * },
439
+ * {
440
+ * legalTerm: {
441
+ * documents: [
442
+ * {
443
+ * type: "CustomEula",
444
+ * url: "https://example.com/eula"
445
+ * }
446
+ * ],
447
+ * id: "term-legal-003",
448
+ * type: "LegalTerm"
449
+ * }
450
+ * }
451
+ * ]
452
+ * }
453
+ * *\/
454
+ * ```
455
+ *
456
+ * @example GetOfferTerms for configurable upfront pricing
457
+ * ```javascript
458
+ * //
459
+ * const input = {
460
+ * offerId: "offer-sampleConfigUpfrontId"
461
+ * };
462
+ * const command = new GetOfferTermsCommand(input);
463
+ * const response = await client.send(command);
464
+ * /* response is
465
+ * {
466
+ * offerTerms: [
467
+ * {
468
+ * configurableUpfrontPricingTerm: {
469
+ * currencyCode: "USD",
470
+ * id: "term-config-001",
471
+ * rateCards: [
472
+ * {
473
+ * constraints: {
474
+ * multipleDimensionSelection: "Allowed",
475
+ * quantityConfiguration: "Allowed"
476
+ * },
477
+ * rateCard: [
478
+ * {
479
+ * dimensionKey: "api_calls_us_east_1",
480
+ * dimensionLabels: [
481
+ * {
482
+ * displayName: "US East (N. Virginia)",
483
+ * labelType: "Region",
484
+ * labelValue: "us-east-1"
485
+ * }
486
+ * ],
487
+ * displayName: "API Calls (US East)",
488
+ * price: "0.001",
489
+ * unit: "Requests"
490
+ * },
491
+ * {
492
+ * dimensionKey: "api_calls_us_west_2",
493
+ * dimensionLabels: [
494
+ * {
495
+ * displayName: "US West (Oregon)",
496
+ * labelType: "Region",
497
+ * labelValue: "us-west-2"
498
+ * }
499
+ * ],
500
+ * displayName: "API Calls (US West)",
501
+ * price: "0.001",
502
+ * unit: "Requests"
503
+ * }
504
+ * ],
505
+ * selector: {
506
+ * type: "Duration",
507
+ * value: "P12M"
508
+ * }
509
+ * }
510
+ * ],
511
+ * type: "ConfigurableUpfrontPricingTerm"
512
+ * }
513
+ * }
514
+ * ]
515
+ * }
516
+ * *\/
517
+ * ```
518
+ *
519
+ * @example GetOfferTerms for free trial offer
520
+ * ```javascript
521
+ * //
522
+ * const input = {
523
+ * offerId: "offer-sampleFreeTrialId"
524
+ * };
525
+ * const command = new GetOfferTermsCommand(input);
526
+ * const response = await client.send(command);
527
+ * /* response is
528
+ * {
529
+ * offerTerms: [
530
+ * {
531
+ * freeTrialPricingTerm: {
532
+ * duration: "P30D",
533
+ * grants: [
534
+ * {
535
+ * dimensionKey: "ml.m5.large.m.i.r",
536
+ * dimensionLabels: [
537
+ * {
538
+ * displayName: "Model Real-Time Inference",
539
+ * labelType: "SagemakerOption",
540
+ * labelValue: "Model Real-Time Inference"
541
+ * }
542
+ * ],
543
+ * displayName: "ml.m5.large Inference (Real-Time)",
544
+ * maxQuantity: 100,
545
+ * unit: "HostHrs"
546
+ * }
547
+ * ],
548
+ * id: "term-trial-001",
549
+ * type: "FreeTrialPricingTerm"
550
+ * }
551
+ * }
552
+ * ]
553
+ * }
554
+ * *\/
555
+ * ```
556
+ *
557
+ * @example GetOfferTerms for recurring payment
558
+ * ```javascript
559
+ * //
560
+ * const input = {
561
+ * offerId: "offer-sampleRecurringId"
562
+ * };
563
+ * const command = new GetOfferTermsCommand(input);
564
+ * const response = await client.send(command);
565
+ * /* response is
566
+ * {
567
+ * offerTerms: [
568
+ * {
569
+ * recurringPaymentTerm: {
570
+ * billingPeriod: "Monthly",
571
+ * currencyCode: "USD",
572
+ * id: "term-recurring-001",
573
+ * price: "99.00",
574
+ * type: "RecurringPaymentTerm"
575
+ * }
576
+ * }
577
+ * ]
578
+ * }
579
+ * *\/
580
+ * ```
581
+ *
582
+ * @example GetOfferTerms for variable payment
583
+ * ```javascript
584
+ * //
585
+ * const input = {
586
+ * offerId: "offer-sampleVariableId"
587
+ * };
588
+ * const command = new GetOfferTermsCommand(input);
589
+ * const response = await client.send(command);
590
+ * /* response is
591
+ * {
592
+ * offerTerms: [
593
+ * {
594
+ * variablePaymentTerm: {
595
+ * currencyCode: "USD",
596
+ * id: "term-variable-001",
597
+ * maxTotalChargeAmount: "10000.00",
598
+ * type: "VariablePaymentTerm"
599
+ * }
600
+ * }
601
+ * ]
602
+ * }
603
+ * *\/
604
+ * ```
605
+ *
606
+ * @example GetOfferTerms for renewal term
607
+ * ```javascript
608
+ * //
609
+ * const input = {
610
+ * offerId: "offer-sampleRenewalId"
611
+ * };
612
+ * const command = new GetOfferTermsCommand(input);
613
+ * const response = await client.send(command);
614
+ * /* response is
615
+ * {
616
+ * offerTerms: [
617
+ * {
618
+ * renewalTerm: {
619
+ * id: "term-renewal-001",
620
+ * type: "RenewalTerm"
621
+ * }
622
+ * }
623
+ * ]
624
+ * }
625
+ * *\/
626
+ * ```
627
+ *
628
+ * @example GetOfferTerms for support term
629
+ * ```javascript
630
+ * //
631
+ * const input = {
632
+ * offerId: "offer-sampleSupportId"
633
+ * };
634
+ * const command = new GetOfferTermsCommand(input);
635
+ * const response = await client.send(command);
636
+ * /* response is
637
+ * {
638
+ * offerTerms: [
639
+ * {
640
+ * supportTerm: {
641
+ * id: "term-support-001",
642
+ * refundPolicy: "30-day money back guarantee",
643
+ * type: "SupportTerm"
644
+ * }
645
+ * }
646
+ * ]
647
+ * }
648
+ * *\/
649
+ * ```
650
+ *
651
+ * @example GetOfferTerms for validity term with dates
652
+ * ```javascript
653
+ * //
654
+ * const input = {
655
+ * offerId: "offer-sampleValidityId"
656
+ * };
657
+ * const command = new GetOfferTermsCommand(input);
658
+ * const response = await client.send(command);
659
+ * /* response is
660
+ * {
661
+ * offerTerms: [
662
+ * {
663
+ * validityTerm: {
664
+ * agreementDuration: "P365D",
665
+ * agreementEndDate: "2026-12-31T23:59:59.000Z",
666
+ * agreementStartDate: "2026-01-01T00:00:00.000Z",
667
+ * id: "term-validity-001",
668
+ * type: "ValidityTerm"
669
+ * }
670
+ * }
671
+ * ]
672
+ * }
673
+ * *\/
674
+ * ```
675
+ *
676
+ * @public
677
+ */
678
+ export declare class GetOfferTermsCommand extends GetOfferTermsCommand_base {
679
+ /** @internal type navigation helper, not in runtime. */
680
+ protected static __types: {
681
+ api: {
682
+ input: GetOfferTermsInput;
683
+ output: GetOfferTermsOutput;
684
+ };
685
+ sdk: {
686
+ input: GetOfferTermsCommandInput;
687
+ output: GetOfferTermsCommandOutput;
688
+ };
689
+ };
690
+ }