The resolved configuration interface of TextractClient class. This is resolved and normalized from the constructor configuration interface.

interface TextractClientResolvedConfig {
    authSchemePreference: Provider<string[]>;
    cacheMiddleware: boolean;
    credentials: ((arg?) => Promise<AwsCredentialIdentity>) & AwsSdkSigV4Memoized;
    customUserAgent?: UserAgent;
    defaultSigningName: string;
    defaultsMode: DefaultsMode | Provider<DefaultsMode>;
    disableHostPrefix: boolean;
    endpoint?: Provider<Endpoint>;
    endpointProvider: ((params, context?) => EndpointV2);
    extensions: RuntimeExtension[];
    logger: Logger;
    maxAttempts: Provider<number> | number & Provider<number>;
    profile: string;
    protocol: (undefined | ClientProtocol<any, any> | $ClientProtocol<any, any>) & (ClientProtocol<any, any> | $ClientProtocol<any, any> | ClientProtocolCtor<any, any> | $ClientProtocolCtor<any, any>);
    region: (string | Provider<string>) & (Provider<string> & string | Provider<string> & Provider<undefined | string>);
    requestHandler: RequestHandler<any, any, HttpHandlerOptions> & (HttpHandlerUserInput & RequestHandler<any, any, {}>);
    retryMode: string | Provider<string>;
    retryStrategy: Provider<RetryStrategy | RetryStrategyV2>;
    signer: ((authScheme?) => Promise<RequestSigner>);
    signingEscapePath: boolean;
    systemClockOffset: number;
    tls: boolean;
    useDualstackEndpoint: (boolean | Provider<boolean>) & (Provider<boolean> & (boolean | Provider<boolean | undefined> | undefined));
    useFipsEndpoint: (boolean | Provider<boolean>) & (Provider<boolean> & (boolean | Provider<boolean | undefined> | undefined));
    userAgentAppId: Provider<undefined | string>;
}

Hierarchy (view full)

Properties

authSchemePreference: Provider<string[]>

A comma-separated list of case-sensitive auth scheme names. An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed. For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.

cacheMiddleware: boolean

Default false.

When true, the client will only resolve the middleware stack once per Command class. This means modifying the middlewareStack of the command or client after requests have been made will not be recognized.

Calling client.destroy() also clears this cache.

Enable this only if needing the additional time saved (0-1ms per request) and not needing middleware modifications between requests.

credentials: ((arg?) => Promise<AwsCredentialIdentity>) & AwsSdkSigV4Memoized

Resolved value for input config AwsSdkSigV4AuthInputConfig.credentials This provider MAY memoize the loaded credentials for certain period.

Type declaration

customUserAgent?: UserAgent

The custom user agent header that would be appended to default one

defaultSigningName: string

The @smithy/smithy-client#DefaultsMode that will be used to determine how certain default configuration options are resolved in the SDK.

disableHostPrefix: boolean

Disable dynamically changing the endpoint of the client based on the hostPrefix trait of an operation.

endpoint?: Provider<Endpoint>

Custom endpoint provided by the user. This is normalized to a single interface from the various acceptable types. This field will be undefined if a custom endpoint is not provided.

endpointProvider: ((params, context?) => EndpointV2)

Type declaration

extensions: RuntimeExtension[]

Optional extensions

logger: Logger

Optional logger for logging debug/info/warn/error.

maxAttempts: Provider<number> | number & Provider<number>

Value for how many times a request will be made at most in case of retry.

profile: string

Setting a client profile is similar to setting a value for the AWS_PROFILE environment variable. Setting a profile on a client in code only affects the single client instance, unlike AWS_PROFILE.

When set, and only for environments where an AWS configuration file exists, fields configurable by this file will be retrieved from the specified profile within that file. Conflicting code configuration and environment variables will still have higher priority.

For client credential resolution that involves checking the AWS configuration file, the client's profile (this value) will be used unless a different profile is set in the credential provider options.

protocol: (undefined | ClientProtocol<any, any> | $ClientProtocol<any, any>) & (ClientProtocol<any, any> | $ClientProtocol<any, any> | ClientProtocolCtor<any, any> | $ClientProtocolCtor<any, any>)

A client request/response protocol or constructor of one. A protocol in this context is not e.g. https. It is the combined implementation of how to (de)serialize and create the messages (e.g. http requests/responses) that are being exchanged.

region: (string | Provider<string>) & (Provider<string> & string | Provider<string> & Provider<undefined | string>)

The AWS region to which this client will send requests

requestHandler: RequestHandler<any, any, HttpHandlerOptions> & (HttpHandlerUserInput & RequestHandler<any, any, {}>)

The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.

retryMode: string | Provider<string>

Specifies which retry algorithm to use.

Resolved value for input config RetryInputConfig.retryStrategy

signer: ((authScheme?) => Promise<RequestSigner>)

Resolved value for input config AwsSdkSigV4AuthInputConfig.signer

Type declaration

signingEscapePath: boolean

Resolved value for input config AwsSdkSigV4AuthInputConfig.signingEscapePath

systemClockOffset: number

Resolved value for input config AwsSdkSigV4AuthInputConfig.systemClockOffset

tls: boolean

Whether TLS is enabled for requests.

Deprecated

useDualstackEndpoint: (boolean | Provider<boolean>) & (Provider<boolean> & (boolean | Provider<boolean | undefined> | undefined))

Enables IPv6/IPv4 dualstack endpoint.

useFipsEndpoint: (boolean | Provider<boolean>) & (Provider<boolean> & (boolean | Provider<boolean | undefined> | undefined))

Enables FIPS compatible endpoints.

userAgentAppId: Provider<undefined | string>

Resolved value for input config {config.userAgentAppId}