mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Filled out the 'config' object for 'aws-sdk'.
This commit is contained in:
Vendored
+70
-1
@@ -18,7 +18,76 @@ declare module "aws-sdk" {
|
||||
accessKeyId: string;
|
||||
}
|
||||
|
||||
export interface ClientConfig {
|
||||
export interface Logger {
|
||||
write?: (chunk: any, encoding?: string, callback?: () => void) => void;
|
||||
log?: (...messages: any[]) => void;
|
||||
}
|
||||
|
||||
export interface HttpOptions {
|
||||
proxy?: string;
|
||||
agent?: any;
|
||||
timeout?: number;
|
||||
xhrAsync?: boolean;
|
||||
xhrWithCredentials?: boolean;
|
||||
}
|
||||
|
||||
export interface ClientConfigPartial {
|
||||
credentials?: Credentials;
|
||||
region?: string;
|
||||
computeChecksums?: boolean;
|
||||
convertResponseTypes?: boolean;
|
||||
logger?: Logger;
|
||||
maxRedirects?: number;
|
||||
maxRetries?: number;
|
||||
paramValidation?: boolean;
|
||||
s3ForcePathStyle?: boolean;
|
||||
signatureVersion?: string;
|
||||
sslEnabled?: boolean;
|
||||
systemClockOffset?: number;
|
||||
autoscaling?: any;
|
||||
cloudformation?: any;
|
||||
cloudfront?: any;
|
||||
cloudsearch?: any;
|
||||
cloudsearchdomain?: any;
|
||||
cloudtrail?: any;
|
||||
cloudwatch?: any;
|
||||
cloudwatchlogs?: any;
|
||||
cognitoidentity?: any;
|
||||
cognitosync?: any;
|
||||
datapipeline?: any;
|
||||
directconnect?: any;
|
||||
dynamodb?: any;
|
||||
ec2?: any;
|
||||
elasticache?: any;
|
||||
elasticbeanstalk?: any;
|
||||
elastictranscoder?: any;
|
||||
elb?: any;
|
||||
emr?: any;
|
||||
glacier?: any;
|
||||
httpOptions?: HttpOptions;
|
||||
iam?: any;
|
||||
importexport?: any;
|
||||
kinesis?: any;
|
||||
opsworks?: any;
|
||||
rds?: any;
|
||||
redshift?: any;
|
||||
route53?: any;
|
||||
route53domains?: any;
|
||||
s3?: any;
|
||||
ses?: any;
|
||||
simpledb?: any;
|
||||
sns?: any;
|
||||
sqs?: any;
|
||||
storagegateway?: any;
|
||||
sts?: any;
|
||||
support?: any;
|
||||
swf?: any;
|
||||
}
|
||||
|
||||
export interface ClientConfig extends ClientConfigPartial {
|
||||
update?: (options: ClientConfigPartial, allUnknownKeys?: boolean) => void;
|
||||
getCredentials?: (callback: (err?: any) => void) => void ;
|
||||
loadFromPath?: (path: string) => void;
|
||||
credentials: Credentials;
|
||||
region: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user