Skip to content

Commit e42eb49

Browse files
authored
docs: fix various tsdoc tags (#1481)
* docs: fix various tsdoc tags * set changeset to empty
1 parent d8446cf commit e42eb49

File tree

63 files changed

+391
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+391
-42
lines changed

.changeset/proud-bats-unite.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/config-resolver/src/endpointsConfig/resolveCustomEndpointsConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export interface CustomEndpointsInputConfig extends EndpointsInputConfig {
1313
endpoint: string | Endpoint | Provider<Endpoint>;
1414
}
1515

16+
/**
17+
* @internal
18+
*/
1619
interface PreviouslyResolved {
1720
urlParser: UrlParser;
1821
}

packages/config-resolver/src/endpointsConfig/resolveEndpointsConfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ export interface EndpointsInputConfig {
2424
useDualstackEndpoint?: boolean | Provider<boolean>;
2525
}
2626

27+
/**
28+
* @internal
29+
*/
2730
interface PreviouslyResolved {
2831
regionInfoProvider: RegionInfoProvider;
2932
urlParser: UrlParser;
@@ -55,7 +58,7 @@ export interface EndpointsResolvedConfig extends Required<EndpointsInputConfig>
5558
/**
5659
* @internal
5760
*
58-
* @deprecated endpoints rulesets use @smithy/middleware-endpoint resolveEndpointConfig.
61+
* @deprecated endpoints rulesets use \@smithy/middleware-endpoint resolveEndpointConfig.
5962
* All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits.
6063
*/
6164
export const resolveEndpointsConfig = <T>(

packages/eventstream-serde-config-resolver/src/EventStreamSerdeConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export interface EventStreamSerdeResolvedConfig {
1212
eventStreamMarshaller: EventStreamMarshaller;
1313
}
1414

15+
/**
16+
* @internal
17+
*/
1518
interface PreviouslyResolved {
1619
/**
1720
* Provide the event stream marshaller for the given runtime

packages/fetch-http-handler/src/fetch-http-handler.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import { requestTimeout } from "./request-timeout";
88

99
declare let AbortController: any;
1010

11+
/**
12+
* @public
13+
*/
1114
export { FetchHttpHandlerOptions };
1215

13-
type FetchHttpHandlerConfig = FetchHttpHandlerOptions;
14-
1516
/**
1617
* @internal
1718
* Detection of keepalive support. Can be overridden for testing.
@@ -35,9 +36,9 @@ export type AdditionalRequestParameters = {
3536
*
3637
* HttpHandler implementation using browsers' `fetch` global function.
3738
*/
38-
export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
39-
private config?: FetchHttpHandlerConfig;
40-
private configProvider: Promise<FetchHttpHandlerConfig>;
39+
export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerOptions> {
40+
private config?: FetchHttpHandlerOptions;
41+
private configProvider: Promise<FetchHttpHandlerOptions>;
4142

4243
/**
4344
* @returns the input if it is an HttpHandler of any class,
@@ -51,7 +52,7 @@ export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
5152
return instanceOrOptions as HttpHandler<any>;
5253
}
5354
// input is ctor options or undefined.
54-
return new FetchHttpHandler(instanceOrOptions as FetchHttpHandlerConfig);
55+
return new FetchHttpHandler(instanceOrOptions as FetchHttpHandlerOptions);
5556
}
5657

5758
constructor(options?: FetchHttpHandlerOptions | Provider<FetchHttpHandlerOptions | void>) {
@@ -199,15 +200,15 @@ export class FetchHttpHandler implements HttpHandler<FetchHttpHandlerConfig> {
199200
return Promise.race(raceOfPromises).finally(removeSignalEventListener);
200201
}
201202

202-
updateHttpClientConfig(key: keyof FetchHttpHandlerConfig, value: FetchHttpHandlerConfig[typeof key]): void {
203+
updateHttpClientConfig(key: keyof FetchHttpHandlerOptions, value: FetchHttpHandlerOptions[typeof key]): void {
203204
this.config = undefined;
204205
this.configProvider = this.configProvider.then((config) => {
205206
(config as Record<typeof key, typeof value>)[key] = value;
206207
return config;
207208
});
208209
}
209210

210-
httpHandlerConfigs(): FetchHttpHandlerConfig {
211+
httpHandlerConfigs(): FetchHttpHandlerOptions {
211212
return this.config ?? {};
212213
}
213214
}

packages/middleware-endpoint/src/resolveEndpointConfig.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
5151
serviceConfiguredEndpoint?: never;
5252
}
5353

54+
/**
55+
* @internal
56+
*/
5457
interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters> {
5558
urlParser: UrlParser;
5659
region: Provider<string>;
@@ -63,7 +66,7 @@ interface PreviouslyResolved<T extends EndpointParameters = EndpointParameters>
6366
* @internal
6467
*
6568
* This supercedes the similarly named EndpointsResolvedConfig (no parametric types)
66-
* from resolveEndpointsConfig.ts in @smithy/config-resolver.
69+
* from resolveEndpointsConfig.ts in \@smithy/config-resolver.
6770
*/
6871
export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointParameters> {
6972
/**

packages/middleware-retry/src/AdaptiveRetryStrategy.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import { DefaultRateLimiter, RateLimiter, RETRY_MODES } from "@smithy/util-retry
44
import { StandardRetryStrategy, StandardRetryStrategyOptions } from "./StandardRetryStrategy";
55

66
/**
7+
* @public
78
* Strategy options to be passed to AdaptiveRetryStrategy
89
*/
910
export interface AdaptiveRetryStrategyOptions extends StandardRetryStrategyOptions {
1011
rateLimiter?: RateLimiter;
1112
}
1213

1314
/**
15+
* @public
1416
* @deprecated use AdaptiveRetryStrategy from @smithy/util-retry
1517
*/
1618
export class AdaptiveRetryStrategy extends StandardRetryStrategy {

packages/middleware-retry/src/StandardRetryStrategy.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import { asSdkError } from "./util";
2121

2222
/**
2323
* Strategy options to be passed to StandardRetryStrategy
24+
* @public
25+
* @deprecated use StandardRetryStrategy from @smithy/util-retry
2426
*/
2527
export interface StandardRetryStrategyOptions {
2628
retryDecider?: RetryDecider;
@@ -29,6 +31,7 @@ export interface StandardRetryStrategyOptions {
2931
}
3032

3133
/**
34+
* @public
3235
* @deprecated use StandardRetryStrategy from @smithy/util-retry
3336
*/
3437
export class StandardRetryStrategy implements RetryStrategy {

packages/middleware-retry/src/configurations.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ import {
99
StandardRetryStrategy,
1010
} from "@smithy/util-retry";
1111

12+
/**
13+
* @internal
14+
*/
1215
export const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS";
16+
/**
17+
* @internal
18+
*/
1319
export const CONFIG_MAX_ATTEMPTS = "max_attempts";
1420

21+
/**
22+
* @internal
23+
*/
1524
export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS: LoadedConfigSelectors<number> = {
1625
environmentVariableSelector: (env) => {
1726
const value = env[ENV_MAX_ATTEMPTS];
@@ -73,6 +82,9 @@ export interface RetryResolvedConfig {
7382
retryStrategy: Provider<RetryStrategyV2 | RetryStrategy>;
7483
}
7584

85+
/**
86+
* @internal
87+
*/
7688
export const resolveRetryConfig = <T>(input: T & PreviouslyResolved & RetryInputConfig): T & RetryResolvedConfig => {
7789
const { retryStrategy } = input;
7890
const maxAttempts = normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
@@ -92,9 +104,19 @@ export const resolveRetryConfig = <T>(input: T & PreviouslyResolved & RetryInput
92104
};
93105
};
94106

107+
/**
108+
* @internal
109+
*/
95110
export const ENV_RETRY_MODE = "AWS_RETRY_MODE";
111+
112+
/**
113+
* @internal
114+
*/
96115
export const CONFIG_RETRY_MODE = "retry_mode";
97116

117+
/**
118+
* @internal
119+
*/
98120
export const NODE_RETRY_MODE_CONFIG_OPTIONS: LoadedConfigSelectors<string> = {
99121
environmentVariableSelector: (env) => env[ENV_RETRY_MODE],
100122
configFileSelector: (profile) => profile[CONFIG_RETRY_MODE],

packages/middleware-retry/src/defaultRetryQuota.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { NO_RETRY_INCREMENT, RETRY_COST, TIMEOUT_RETRY_COST } from "@smithy/util
33

44
import { RetryQuota } from "./types";
55

6+
/**
7+
* @internal
8+
*/
69
export interface DefaultRetryQuotaOptions {
710
/**
811
* The total amount of retry token to be incremented from retry token balance
@@ -22,6 +25,9 @@ export interface DefaultRetryQuotaOptions {
2225
timeoutRetryCost?: number;
2326
}
2427

28+
/**
29+
* @internal
30+
*/
2531
export const getDefaultRetryQuota = (initialRetryTokens: number, options?: DefaultRetryQuotaOptions): RetryQuota => {
2632
const MAX_CAPACITY = initialRetryTokens;
2733
const noRetryIncrement = options?.noRetryIncrement ?? NO_RETRY_INCREMENT;

packages/middleware-retry/src/delayDecider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MAXIMUM_RETRY_DELAY } from "@smithy/util-retry";
22

33
/**
4+
* @internal
45
* Calculate a capped, fully-jittered exponential backoff time.
56
*/
67
export const defaultDelayDecider = (delayBase: number, attempts: number) =>

packages/middleware-retry/src/omitRetryHeadersMiddleware.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import {
99
} from "@smithy/types";
1010
import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry";
1111

12+
/**
13+
* @internal
14+
*/
1215
export const omitRetryHeadersMiddleware =
1316
() =>
1417
<Output extends MetadataBearer = MetadataBearer>(next: FinalizeHandler<any, Output>): FinalizeHandler<any, Output> =>
@@ -21,6 +24,9 @@ export const omitRetryHeadersMiddleware =
2124
return next(args);
2225
};
2326

27+
/**
28+
* @internal
29+
*/
2430
export const omitRetryHeadersMiddlewareOptions: RelativeMiddlewareOptions = {
2531
name: "omitRetryHeadersMiddleware",
2632
tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"],
@@ -29,8 +35,13 @@ export const omitRetryHeadersMiddlewareOptions: RelativeMiddlewareOptions = {
2935
override: true,
3036
};
3137

32-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
33-
export const getOmitRetryHeadersPlugin = (options: unknown): Pluggable<any, any> => ({
38+
/**
39+
* @internal
40+
*/
41+
export const getOmitRetryHeadersPlugin = (
42+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
43+
options: unknown
44+
): Pluggable<any, any> => ({
3445
applyToStack: (clientStack) => {
3546
clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions);
3647
},

packages/middleware-retry/src/retryDecider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
import { SdkError } from "@smithy/types";
88

99
/**
10+
* @internal
1011
* @deprecated this is only used in the deprecated StandardRetryStrategy. Do not use in new code.
1112
*/
1213
export const defaultRetryDecider = (error: SdkError) => {

packages/middleware-retry/src/retryMiddleware.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ import { RetryResolvedConfig } from "./configurations";
2424
import { isStreamingPayload } from "./isStreamingPayload/isStreamingPayload";
2525
import { asSdkError } from "./util";
2626

27+
/**
28+
* @internal
29+
*/
2730
export const retryMiddleware =
2831
(options: RetryResolvedConfig) =>
2932
<Output extends MetadataBearer = MetadataBearer>(
@@ -116,6 +119,9 @@ const getRetryErrorType = (error: SdkError): RetryErrorType => {
116119
return "CLIENT_ERROR";
117120
};
118121

122+
/**
123+
* @internal
124+
*/
119125
export const retryMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLocation = {
120126
name: "retryMiddleware",
121127
tags: ["RETRY"],
@@ -124,12 +130,18 @@ export const retryMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLoc
124130
override: true,
125131
};
126132

133+
/**
134+
* @internal
135+
*/
127136
export const getRetryPlugin = (options: RetryResolvedConfig): Pluggable<any, any> => ({
128137
applyToStack: (clientStack) => {
129138
clientStack.add(retryMiddleware(options), retryMiddlewareOptions);
130139
},
131140
});
132141

142+
/**
143+
* @internal
144+
*/
133145
export const getRetryAfterHint = (response: unknown): Date | undefined => {
134146
if (!HttpResponse.isInstance(response)) return;
135147

packages/middleware-retry/src/types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import { SdkError } from "@smithy/types";
55
* already attempted, the HTTP status code, and the error received (if any).
66
*
77
* @param error - The error encountered.
8+
*
9+
* @deprecated
10+
* @internal
811
*/
912
export interface RetryDecider {
1013
(error: SdkError): boolean;
@@ -15,13 +18,18 @@ export interface RetryDecider {
1518
*
1619
* @param delayBase - The base delay (in milliseconds).
1720
* @param attempts - The number of times the action has already been tried.
21+
*
22+
* @deprecated
23+
* @internal
1824
*/
1925
export interface DelayDecider {
2026
(delayBase: number, attempts: number): number;
2127
}
2228

2329
/**
2430
* Interface that specifies the retry quota behavior.
31+
* @deprecated
32+
* @internal
2533
*/
2634
export interface RetryQuota {
2735
/**
@@ -41,6 +49,10 @@ export interface RetryQuota {
4149
releaseRetryTokens: (releaseCapacityAmount?: number) => void;
4250
}
4351

52+
/**
53+
* @deprecated
54+
* @internal
55+
*/
4456
export interface RateLimiter {
4557
/**
4658
* If there is sufficient capacity (tokens) available, it immediately returns.

packages/middleware-stack/src/MiddlewareStack.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const getMiddlewareNameWithAliases = (name: string | undefined, aliases: Array<s
3232
return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`;
3333
};
3434

35+
/**
36+
* @internal
37+
*/
3538
export const constructStack = <Input extends object, Output extends object>(): MiddlewareStack<Input, Output> => {
3639
let absoluteEntries: AbsoluteMiddlewareEntry<Input, Output>[] = [];
3740
let relativeEntries: RelativeMiddlewareEntry<Input, Output>[] = [];

packages/node-config-provider/src/configLoader.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ import { fromEnv, GetterFromEnv } from "./fromEnv";
55
import { fromSharedConfigFiles, GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles";
66
import { fromStatic, FromStaticConfig } from "./fromStatic";
77

8+
/**
9+
* @internal
10+
*/
811
export type LocalConfigOptions = SharedConfigInit;
912

13+
/**
14+
* @internal
15+
*/
1016
export interface LoadedConfigSelectors<T> {
1117
/**
1218
* A getter function getting the config values from all the environment
@@ -24,6 +30,9 @@ export interface LoadedConfigSelectors<T> {
2430
default: FromStaticConfig<T>;
2531
}
2632

33+
/**
34+
* @internal
35+
*/
2736
export const loadConfig = <T = string>(
2837
{ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors<T>,
2938
configuration: LocalConfigOptions = {}

0 commit comments

Comments
 (0)