@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.
- package/LICENSE +201 -0
- package/README.md +244 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +46 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +463 -0
- package/dist-cjs/models/MarketplaceDiscoveryServiceException.js +12 -0
- package/dist-cjs/models/errors.js +71 -0
- package/dist-cjs/runtimeConfig.browser.js +38 -0
- package/dist-cjs/runtimeConfig.js +54 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +43 -0
- package/dist-cjs/schemas/schemas_0.js +951 -0
- package/dist-es/MarketplaceDiscovery.js +37 -0
- package/dist-es/MarketplaceDiscoveryClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commands/GetListingCommand.js +16 -0
- package/dist-es/commands/GetOfferCommand.js +16 -0
- package/dist-es/commands/GetOfferSetCommand.js +16 -0
- package/dist-es/commands/GetOfferTermsCommand.js +16 -0
- package/dist-es/commands/GetProductCommand.js +16 -0
- package/dist-es/commands/ListFulfillmentOptionsCommand.js +16 -0
- package/dist-es/commands/ListPurchaseOptionsCommand.js +16 -0
- package/dist-es/commands/SearchFacetsCommand.js +16 -0
- package/dist-es/commands/SearchListingsCommand.js +16 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +9 -0
- package/dist-es/models/MarketplaceDiscoveryServiceException.js +8 -0
- package/dist-es/models/enums.js +146 -0
- package/dist-es/models/errors.js +63 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetOfferTermsPaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListFulfillmentOptionsPaginator.js +4 -0
- package/dist-es/pagination/ListPurchaseOptionsPaginator.js +4 -0
- package/dist-es/pagination/SearchFacetsPaginator.js +4 -0
- package/dist-es/pagination/SearchListingsPaginator.js +4 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/runtimeConfig.browser.js +33 -0
- package/dist-es/runtimeConfig.js +49 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +39 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +946 -0
- package/dist-types/MarketplaceDiscovery.d.ts +111 -0
- package/dist-types/MarketplaceDiscoveryClient.d.ts +196 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/GetListingCommand.d.ts +579 -0
- package/dist-types/commands/GetOfferCommand.d.ts +314 -0
- package/dist-types/commands/GetOfferSetCommand.d.ts +192 -0
- package/dist-types/commands/GetOfferTermsCommand.d.ts +690 -0
- package/dist-types/commands/GetProductCommand.d.ts +379 -0
- package/dist-types/commands/ListFulfillmentOptionsCommand.d.ts +668 -0
- package/dist-types/commands/ListPurchaseOptionsCommand.d.ts +285 -0
- package/dist-types/commands/SearchFacetsCommand.d.ts +241 -0
- package/dist-types/commands/SearchListingsCommand.d.ts +263 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +17 -0
- package/dist-types/models/MarketplaceDiscoveryServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +338 -0
- package/dist-types/models/errors.d.ts +68 -0
- package/dist-types/models/models_0.d.ts +2881 -0
- package/dist-types/pagination/GetOfferTermsPaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListFulfillmentOptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPurchaseOptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchFacetsPaginator.d.ts +7 -0
- package/dist-types/pagination/SearchListingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +55 -0
- package/dist-types/runtimeConfig.d.ts +55 -0
- package/dist-types/runtimeConfig.native.d.ts +54 -0
- package/dist-types/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +114 -0
- package/dist-types/ts3.4/MarketplaceDiscovery.d.ts +202 -0
- package/dist-types/ts3.4/MarketplaceDiscoveryClient.d.ts +175 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetListingCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferSetCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetOfferTermsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetProductCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListFulfillmentOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListPurchaseOptionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/SearchFacetsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/SearchListingsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +12 -0
- package/dist-types/ts3.4/models/MarketplaceDiscoveryServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +191 -0
- package/dist-types/ts3.4/models/errors.d.ts +39 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1048 -0
- package/dist-types/ts3.4/pagination/GetOfferTermsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListFulfillmentOptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPurchaseOptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchFacetsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/SearchListingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +102 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +106 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +32 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +114 -0
- package/package.json +100 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
|
+
import { type GetListingCommandInput, type GetListingCommandOutput } from "./commands/GetListingCommand";
|
|
3
|
+
import { type GetOfferCommandInput, type GetOfferCommandOutput } from "./commands/GetOfferCommand";
|
|
4
|
+
import { type GetOfferSetCommandInput, type GetOfferSetCommandOutput } from "./commands/GetOfferSetCommand";
|
|
5
|
+
import { type GetOfferTermsCommandInput, type GetOfferTermsCommandOutput } from "./commands/GetOfferTermsCommand";
|
|
6
|
+
import { type GetProductCommandInput, type GetProductCommandOutput } from "./commands/GetProductCommand";
|
|
7
|
+
import { type ListFulfillmentOptionsCommandInput, type ListFulfillmentOptionsCommandOutput } from "./commands/ListFulfillmentOptionsCommand";
|
|
8
|
+
import { type ListPurchaseOptionsCommandInput, type ListPurchaseOptionsCommandOutput } from "./commands/ListPurchaseOptionsCommand";
|
|
9
|
+
import { type SearchFacetsCommandInput, type SearchFacetsCommandOutput } from "./commands/SearchFacetsCommand";
|
|
10
|
+
import { type SearchListingsCommandInput, type SearchListingsCommandOutput } from "./commands/SearchListingsCommand";
|
|
11
|
+
import { MarketplaceDiscoveryClient } from "./MarketplaceDiscoveryClient";
|
|
12
|
+
export interface MarketplaceDiscovery {
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link GetListingCommand}
|
|
15
|
+
*/
|
|
16
|
+
getListing(args: GetListingCommandInput, options?: __HttpHandlerOptions): Promise<GetListingCommandOutput>;
|
|
17
|
+
getListing(args: GetListingCommandInput, cb: (err: any, data?: GetListingCommandOutput) => void): void;
|
|
18
|
+
getListing(args: GetListingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetListingCommandOutput) => void): void;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link GetOfferCommand}
|
|
21
|
+
*/
|
|
22
|
+
getOffer(args: GetOfferCommandInput, options?: __HttpHandlerOptions): Promise<GetOfferCommandOutput>;
|
|
23
|
+
getOffer(args: GetOfferCommandInput, cb: (err: any, data?: GetOfferCommandOutput) => void): void;
|
|
24
|
+
getOffer(args: GetOfferCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOfferCommandOutput) => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* @see {@link GetOfferSetCommand}
|
|
27
|
+
*/
|
|
28
|
+
getOfferSet(args: GetOfferSetCommandInput, options?: __HttpHandlerOptions): Promise<GetOfferSetCommandOutput>;
|
|
29
|
+
getOfferSet(args: GetOfferSetCommandInput, cb: (err: any, data?: GetOfferSetCommandOutput) => void): void;
|
|
30
|
+
getOfferSet(args: GetOfferSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOfferSetCommandOutput) => void): void;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link GetOfferTermsCommand}
|
|
33
|
+
*/
|
|
34
|
+
getOfferTerms(args: GetOfferTermsCommandInput, options?: __HttpHandlerOptions): Promise<GetOfferTermsCommandOutput>;
|
|
35
|
+
getOfferTerms(args: GetOfferTermsCommandInput, cb: (err: any, data?: GetOfferTermsCommandOutput) => void): void;
|
|
36
|
+
getOfferTerms(args: GetOfferTermsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOfferTermsCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link GetProductCommand}
|
|
39
|
+
*/
|
|
40
|
+
getProduct(args: GetProductCommandInput, options?: __HttpHandlerOptions): Promise<GetProductCommandOutput>;
|
|
41
|
+
getProduct(args: GetProductCommandInput, cb: (err: any, data?: GetProductCommandOutput) => void): void;
|
|
42
|
+
getProduct(args: GetProductCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProductCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link ListFulfillmentOptionsCommand}
|
|
45
|
+
*/
|
|
46
|
+
listFulfillmentOptions(args: ListFulfillmentOptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListFulfillmentOptionsCommandOutput>;
|
|
47
|
+
listFulfillmentOptions(args: ListFulfillmentOptionsCommandInput, cb: (err: any, data?: ListFulfillmentOptionsCommandOutput) => void): void;
|
|
48
|
+
listFulfillmentOptions(args: ListFulfillmentOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFulfillmentOptionsCommandOutput) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* @see {@link ListPurchaseOptionsCommand}
|
|
51
|
+
*/
|
|
52
|
+
listPurchaseOptions(): Promise<ListPurchaseOptionsCommandOutput>;
|
|
53
|
+
listPurchaseOptions(args: ListPurchaseOptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListPurchaseOptionsCommandOutput>;
|
|
54
|
+
listPurchaseOptions(args: ListPurchaseOptionsCommandInput, cb: (err: any, data?: ListPurchaseOptionsCommandOutput) => void): void;
|
|
55
|
+
listPurchaseOptions(args: ListPurchaseOptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListPurchaseOptionsCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link SearchFacetsCommand}
|
|
58
|
+
*/
|
|
59
|
+
searchFacets(): Promise<SearchFacetsCommandOutput>;
|
|
60
|
+
searchFacets(args: SearchFacetsCommandInput, options?: __HttpHandlerOptions): Promise<SearchFacetsCommandOutput>;
|
|
61
|
+
searchFacets(args: SearchFacetsCommandInput, cb: (err: any, data?: SearchFacetsCommandOutput) => void): void;
|
|
62
|
+
searchFacets(args: SearchFacetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchFacetsCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link SearchListingsCommand}
|
|
65
|
+
*/
|
|
66
|
+
searchListings(): Promise<SearchListingsCommandOutput>;
|
|
67
|
+
searchListings(args: SearchListingsCommandInput, options?: __HttpHandlerOptions): Promise<SearchListingsCommandOutput>;
|
|
68
|
+
searchListings(args: SearchListingsCommandInput, cb: (err: any, data?: SearchListingsCommandOutput) => void): void;
|
|
69
|
+
searchListings(args: SearchListingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchListingsCommandOutput) => void): void;
|
|
70
|
+
/**
|
|
71
|
+
* @see {@link GetOfferTermsCommand}
|
|
72
|
+
* @param args - command input.
|
|
73
|
+
* @param paginationConfig - optional pagination config.
|
|
74
|
+
* @returns AsyncIterable of {@link GetOfferTermsCommandOutput}.
|
|
75
|
+
*/
|
|
76
|
+
paginateGetOfferTerms(args: GetOfferTermsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<GetOfferTermsCommandOutput>;
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link ListFulfillmentOptionsCommand}
|
|
79
|
+
* @param args - command input.
|
|
80
|
+
* @param paginationConfig - optional pagination config.
|
|
81
|
+
* @returns AsyncIterable of {@link ListFulfillmentOptionsCommandOutput}.
|
|
82
|
+
*/
|
|
83
|
+
paginateListFulfillmentOptions(args: ListFulfillmentOptionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListFulfillmentOptionsCommandOutput>;
|
|
84
|
+
/**
|
|
85
|
+
* @see {@link ListPurchaseOptionsCommand}
|
|
86
|
+
* @param args - command input.
|
|
87
|
+
* @param paginationConfig - optional pagination config.
|
|
88
|
+
* @returns AsyncIterable of {@link ListPurchaseOptionsCommandOutput}.
|
|
89
|
+
*/
|
|
90
|
+
paginateListPurchaseOptions(args?: ListPurchaseOptionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPurchaseOptionsCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link SearchFacetsCommand}
|
|
93
|
+
* @param args - command input.
|
|
94
|
+
* @param paginationConfig - optional pagination config.
|
|
95
|
+
* @returns AsyncIterable of {@link SearchFacetsCommandOutput}.
|
|
96
|
+
*/
|
|
97
|
+
paginateSearchFacets(args?: SearchFacetsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchFacetsCommandOutput>;
|
|
98
|
+
/**
|
|
99
|
+
* @see {@link SearchListingsCommand}
|
|
100
|
+
* @param args - command input.
|
|
101
|
+
* @param paginationConfig - optional pagination config.
|
|
102
|
+
* @returns AsyncIterable of {@link SearchListingsCommandOutput}.
|
|
103
|
+
*/
|
|
104
|
+
paginateSearchListings(args?: SearchListingsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<SearchListingsCommandOutput>;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* <p>The AWS Marketplace Discovery API provides programmatic access to the AWS Marketplace catalog, including searching and browsing listings, retrieving product details and fulfillment options, and accessing public and private offer pricing and terms.</p>
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
export declare class MarketplaceDiscovery extends MarketplaceDiscoveryClient implements MarketplaceDiscovery {
|
|
111
|
+
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
2
|
+
import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
|
|
5
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
6
|
+
import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
7
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
|
|
8
|
+
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
9
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
|
+
import type { GetListingCommandInput, GetListingCommandOutput } from "./commands/GetListingCommand";
|
|
11
|
+
import type { GetOfferCommandInput, GetOfferCommandOutput } from "./commands/GetOfferCommand";
|
|
12
|
+
import type { GetOfferSetCommandInput, GetOfferSetCommandOutput } from "./commands/GetOfferSetCommand";
|
|
13
|
+
import type { GetOfferTermsCommandInput, GetOfferTermsCommandOutput } from "./commands/GetOfferTermsCommand";
|
|
14
|
+
import type { GetProductCommandInput, GetProductCommandOutput } from "./commands/GetProductCommand";
|
|
15
|
+
import type { ListFulfillmentOptionsCommandInput, ListFulfillmentOptionsCommandOutput } from "./commands/ListFulfillmentOptionsCommand";
|
|
16
|
+
import type { ListPurchaseOptionsCommandInput, ListPurchaseOptionsCommandOutput } from "./commands/ListPurchaseOptionsCommand";
|
|
17
|
+
import type { SearchFacetsCommandInput, SearchFacetsCommandOutput } from "./commands/SearchFacetsCommand";
|
|
18
|
+
import type { SearchListingsCommandInput, SearchListingsCommandOutput } from "./commands/SearchListingsCommand";
|
|
19
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
20
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
21
|
+
export { __Client };
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type ServiceInputTypes = GetListingCommandInput | GetOfferCommandInput | GetOfferSetCommandInput | GetOfferTermsCommandInput | GetProductCommandInput | ListFulfillmentOptionsCommandInput | ListPurchaseOptionsCommandInput | SearchFacetsCommandInput | SearchListingsCommandInput;
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export type ServiceOutputTypes = GetListingCommandOutput | GetOfferCommandOutput | GetOfferSetCommandOutput | GetOfferTermsCommandOutput | GetProductCommandOutput | ListFulfillmentOptionsCommandOutput | ListPurchaseOptionsCommandOutput | SearchFacetsCommandOutput | SearchListingsCommandOutput;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
34
|
+
/**
|
|
35
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
36
|
+
*/
|
|
37
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
38
|
+
/**
|
|
39
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
40
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
44
|
+
/**
|
|
45
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
urlParser?: __UrlParser;
|
|
49
|
+
/**
|
|
50
|
+
* A function that can calculate the length of a request body.
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
54
|
+
/**
|
|
55
|
+
* A function that converts a stream into an array of bytes.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
streamCollector?: __StreamCollector;
|
|
59
|
+
/**
|
|
60
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
base64Decoder?: __Decoder;
|
|
64
|
+
/**
|
|
65
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
base64Encoder?: __Encoder;
|
|
69
|
+
/**
|
|
70
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
utf8Decoder?: __Decoder;
|
|
74
|
+
/**
|
|
75
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
utf8Encoder?: __Encoder;
|
|
79
|
+
/**
|
|
80
|
+
* The runtime environment.
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
runtime?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
86
|
+
* trait of an operation.
|
|
87
|
+
*/
|
|
88
|
+
disableHostPrefix?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Unique service identifier.
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
serviceId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
96
|
+
*/
|
|
97
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Enables FIPS compatible endpoints.
|
|
100
|
+
*/
|
|
101
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* The AWS region to which this client will send requests
|
|
104
|
+
*/
|
|
105
|
+
region?: string | __Provider<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Setting a client profile is similar to setting a value for the
|
|
108
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
109
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
110
|
+
*
|
|
111
|
+
* When set, and only for environments where an AWS configuration
|
|
112
|
+
* file exists, fields configurable by this file will be retrieved
|
|
113
|
+
* from the specified profile within that file.
|
|
114
|
+
* Conflicting code configuration and environment variables will
|
|
115
|
+
* still have higher priority.
|
|
116
|
+
*
|
|
117
|
+
* For client credential resolution that involves checking the AWS
|
|
118
|
+
* configuration file, the client's profile (this value) will be
|
|
119
|
+
* used unless a different profile is set in the credential
|
|
120
|
+
* provider options.
|
|
121
|
+
*
|
|
122
|
+
*/
|
|
123
|
+
profile?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
129
|
+
/**
|
|
130
|
+
* Default credentials provider; Not available in browser runtime.
|
|
131
|
+
* @deprecated
|
|
132
|
+
* @internal
|
|
133
|
+
*/
|
|
134
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
135
|
+
/**
|
|
136
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
137
|
+
*/
|
|
138
|
+
maxAttempts?: number | __Provider<number>;
|
|
139
|
+
/**
|
|
140
|
+
* Specifies which retry algorithm to use.
|
|
141
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
retryMode?: string | __Provider<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Optional logger for logging debug/info/warn/error.
|
|
147
|
+
*/
|
|
148
|
+
logger?: __Logger;
|
|
149
|
+
/**
|
|
150
|
+
* Optional extensions
|
|
151
|
+
*/
|
|
152
|
+
extensions?: RuntimeExtension[];
|
|
153
|
+
/**
|
|
154
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
155
|
+
*/
|
|
156
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
export type MarketplaceDiscoveryClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*
|
|
165
|
+
* The configuration interface of MarketplaceDiscoveryClient class constructor that set the region, credentials and other options.
|
|
166
|
+
*/
|
|
167
|
+
export interface MarketplaceDiscoveryClientConfig extends MarketplaceDiscoveryClientConfigType {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export type MarketplaceDiscoveryClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*
|
|
176
|
+
* The resolved configuration interface of MarketplaceDiscoveryClient class. This is resolved and normalized from the {@link MarketplaceDiscoveryClientConfig | constructor configuration interface}.
|
|
177
|
+
*/
|
|
178
|
+
export interface MarketplaceDiscoveryClientResolvedConfig extends MarketplaceDiscoveryClientResolvedConfigType {
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* <p>The AWS Marketplace Discovery API provides programmatic access to the AWS Marketplace catalog, including searching and browsing listings, retrieving product details and fulfillment options, and accessing public and private offer pricing and terms.</p>
|
|
182
|
+
* @public
|
|
183
|
+
*/
|
|
184
|
+
export declare class MarketplaceDiscoveryClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, MarketplaceDiscoveryClientResolvedConfig> {
|
|
185
|
+
/**
|
|
186
|
+
* The resolved configuration of MarketplaceDiscoveryClient class. This is resolved and normalized from the {@link MarketplaceDiscoveryClientConfig | constructor configuration interface}.
|
|
187
|
+
*/
|
|
188
|
+
readonly config: MarketplaceDiscoveryClientResolvedConfig;
|
|
189
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<MarketplaceDiscoveryClientConfig>);
|
|
190
|
+
/**
|
|
191
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
192
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
193
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
194
|
+
*/
|
|
195
|
+
destroy(): void;
|
|
196
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { MarketplaceDiscoveryHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: MarketplaceDiscoveryHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): MarketplaceDiscoveryHttpAuthSchemeProvider;
|
|
11
|
+
setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
|
|
12
|
+
credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
18
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
19
|
+
httpAuthSchemeProvider: MarketplaceDiscoveryHttpAuthSchemeProvider;
|
|
20
|
+
credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type MarketplaceDiscoveryClientResolvedConfig } from "../MarketplaceDiscoveryClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface MarketplaceDiscoveryHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface MarketplaceDiscoveryHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<MarketplaceDiscoveryClientResolvedConfig, HandlerExecutionContext, MarketplaceDiscoveryHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultMarketplaceDiscoveryHttpAuthSchemeParametersProvider: (config: MarketplaceDiscoveryClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<MarketplaceDiscoveryHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface MarketplaceDiscoveryHttpAuthSchemeProvider extends HttpAuthSchemeProvider<MarketplaceDiscoveryHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultMarketplaceDiscoveryHttpAuthSchemeProvider: MarketplaceDiscoveryHttpAuthSchemeProvider;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
|
|
32
|
+
/**
|
|
33
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
34
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
35
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
authSchemePreference?: string[] | Provider<string[]>;
|
|
39
|
+
/**
|
|
40
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
44
|
+
/**
|
|
45
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
48
|
+
httpAuthSchemeProvider?: MarketplaceDiscoveryHttpAuthSchemeProvider;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
|
|
54
|
+
/**
|
|
55
|
+
* A comma-separated list of case-sensitive auth scheme names.
|
|
56
|
+
* An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
|
|
57
|
+
* For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
60
|
+
readonly authSchemePreference: Provider<string[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
66
|
+
/**
|
|
67
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
readonly httpAuthSchemeProvider: MarketplaceDiscoveryHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|