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;

0 commit comments

Comments
 (0)