Filled out the 'config' object for 'aws-sdk'.

This commit is contained in:
Brian Geppert
2014-11-12 02:08:14 -06:00
parent 39531c32fe
commit 11694760b1
+70 -1
View File
@@ -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;
}