@aws-sdk/client-account
Version:
AWS SDK for JavaScript Account Client for Node.js, Browser and React Native
192 lines (191 loc) • 6.26 kB
TypeScript
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
} from "@aws-sdk/middleware-host-header";
import {
UserAgentInputConfig,
UserAgentResolvedConfig,
} from "@aws-sdk/middleware-user-agent";
import {
RegionInputConfig,
RegionResolvedConfig,
} from "@smithy/config-resolver";
import {
EndpointInputConfig,
EndpointResolvedConfig,
} from "@smithy/middleware-endpoint";
import {
RetryInputConfig,
RetryResolvedConfig,
} from "@smithy/middleware-retry";
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
import {
Client as __Client,
DefaultsMode as __DefaultsMode,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@smithy/smithy-client";
import {
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,
Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
UserAgent as __UserAgent,
} from "@smithy/types";
import {
HttpAuthSchemeInputConfig,
HttpAuthSchemeResolvedConfig,
} from "./auth/httpAuthSchemeProvider";
import {
AcceptPrimaryEmailUpdateCommandInput,
AcceptPrimaryEmailUpdateCommandOutput,
} from "./commands/AcceptPrimaryEmailUpdateCommand";
import {
DeleteAlternateContactCommandInput,
DeleteAlternateContactCommandOutput,
} from "./commands/DeleteAlternateContactCommand";
import {
DisableRegionCommandInput,
DisableRegionCommandOutput,
} from "./commands/DisableRegionCommand";
import {
EnableRegionCommandInput,
EnableRegionCommandOutput,
} from "./commands/EnableRegionCommand";
import {
GetAlternateContactCommandInput,
GetAlternateContactCommandOutput,
} from "./commands/GetAlternateContactCommand";
import {
GetContactInformationCommandInput,
GetContactInformationCommandOutput,
} from "./commands/GetContactInformationCommand";
import {
GetPrimaryEmailCommandInput,
GetPrimaryEmailCommandOutput,
} from "./commands/GetPrimaryEmailCommand";
import {
GetRegionOptStatusCommandInput,
GetRegionOptStatusCommandOutput,
} from "./commands/GetRegionOptStatusCommand";
import {
ListRegionsCommandInput,
ListRegionsCommandOutput,
} from "./commands/ListRegionsCommand";
import {
PutAlternateContactCommandInput,
PutAlternateContactCommandOutput,
} from "./commands/PutAlternateContactCommand";
import {
PutContactInformationCommandInput,
PutContactInformationCommandOutput,
} from "./commands/PutContactInformationCommand";
import {
StartPrimaryEmailUpdateCommandInput,
StartPrimaryEmailUpdateCommandOutput,
} from "./commands/StartPrimaryEmailUpdateCommand";
import {
ClientInputEndpointParameters,
ClientResolvedEndpointParameters,
EndpointParameters,
} from "./endpoint/EndpointParameters";
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
export { __Client };
export type ServiceInputTypes =
| AcceptPrimaryEmailUpdateCommandInput
| DeleteAlternateContactCommandInput
| DisableRegionCommandInput
| EnableRegionCommandInput
| GetAlternateContactCommandInput
| GetContactInformationCommandInput
| GetPrimaryEmailCommandInput
| GetRegionOptStatusCommandInput
| ListRegionsCommandInput
| PutAlternateContactCommandInput
| PutContactInformationCommandInput
| StartPrimaryEmailUpdateCommandInput;
export type ServiceOutputTypes =
| AcceptPrimaryEmailUpdateCommandOutput
| DeleteAlternateContactCommandOutput
| DisableRegionCommandOutput
| EnableRegionCommandOutput
| GetAlternateContactCommandOutput
| GetContactInformationCommandOutput
| GetPrimaryEmailCommandOutput
| GetRegionOptStatusCommandOutput
| ListRegionsCommandOutput
| PutAlternateContactCommandOutput
| PutContactInformationCommandOutput
| StartPrimaryEmailUpdateCommandOutput;
export interface ClientDefaults
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
requestHandler?: __HttpHandlerUserInput;
sha256?: __ChecksumConstructor | __HashConstructor;
urlParser?: __UrlParser;
bodyLengthChecker?: __BodyLengthCalculator;
streamCollector?: __StreamCollector;
base64Decoder?: __Decoder;
base64Encoder?: __Encoder;
utf8Decoder?: __Decoder;
utf8Encoder?: __Encoder;
runtime?: string;
disableHostPrefix?: boolean;
serviceId?: string;
useDualstackEndpoint?: boolean | __Provider<boolean>;
useFipsEndpoint?: boolean | __Provider<boolean>;
region?: string | __Provider<string>;
profile?: string;
defaultUserAgentProvider?: Provider<__UserAgent>;
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
maxAttempts?: number | __Provider<number>;
retryMode?: string | __Provider<string>;
logger?: __Logger;
extensions?: RuntimeExtension[];
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
}
export type AccountClientConfigType = Partial<
__SmithyConfiguration<__HttpHandlerOptions>
> &
ClientDefaults &
UserAgentInputConfig &
RetryInputConfig &
RegionInputConfig &
HostHeaderInputConfig &
EndpointInputConfig<EndpointParameters> &
HttpAuthSchemeInputConfig &
ClientInputEndpointParameters;
export interface AccountClientConfig extends AccountClientConfigType {}
export type AccountClientResolvedConfigType =
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RuntimeExtensionsConfig &
UserAgentResolvedConfig &
RetryResolvedConfig &
RegionResolvedConfig &
HostHeaderResolvedConfig &
EndpointResolvedConfig<EndpointParameters> &
HttpAuthSchemeResolvedConfig &
ClientResolvedEndpointParameters;
export interface AccountClientResolvedConfig
extends AccountClientResolvedConfigType {}
export declare class AccountClient extends __Client<
__HttpHandlerOptions,
ServiceInputTypes,
ServiceOutputTypes,
AccountClientResolvedConfig
> {
readonly config: AccountClientResolvedConfig;
constructor(
...[configuration]: __CheckOptionalClientConfig<AccountClientConfig>
);
destroy(): void;
}