Merge pull request #7725 from bmajz/master

Add ECS definitions to AWS type definitions
This commit is contained in:
Horiuchi_H
2016-01-22 18:21:55 +09:00

109
aws-sdk/aws-sdk.d.ts vendored
View File

@@ -56,6 +56,7 @@ declare module "aws-sdk" {
directconnect?: any;
dynamodb?: any;
ec2?: any;
ecs?: any;
elasticache?: any;
elasticbeanstalk?: any;
elastictranscoder?: any;
@@ -151,6 +152,16 @@ declare module "aws-sdk" {
getObject(params: s3.GetObjectRequest, callback: (err: any, data: any) => void): void;
}
export class ECS {
constructor(options?: any);
createService(params: ecs.CreateServicesParams, callback: (err: any, data: any) => void): void;
describeServices(params: ecs.DescribeServicesParams, callback: (err: any, data: any) => void): void;
describeTaskDefinition(params: ecs.DescribeTaskDefinitionParams, callback: (err: any, data: any) => void): void;
registerTaskDefinition(params: ecs.RegisterTaskDefinitionParams, callback: (err: any, data: any) => void): void;
updateService(params: ecs.UpdateServiceParams, callback: (err: any, data: any) => void): void;
}
export class DynamoDB {
constructor(options?: any);
}
@@ -1085,4 +1096,102 @@ declare module "aws-sdk" {
}
}
export module ecs {
export interface CreateServicesParams {
desiredCount: number;
serviceName: string;
taskDefinition: string;
clientToken?: string;
cluster?: string;
deploymentConfiguration?: {
maximumPercent?: number;
minimumHealthyPercent?: number;
};
loadBalancers?: {
containerName?: string;
containerPort?: number;
loadBalancerName?: string;
}[];
role?: string;
}
export interface DescribeServicesParams {
services: string[];
cluster: string;
}
export interface DescribeTaskDefinitionParams {
taskDefinition: string;
}
export interface RegisterTaskDefinitionParams {
containerDefinitions: {
command?: string[],
cpu?: number,
disableNetworking?: boolean,
dnsSearchDomains?: string[],
dnsServers?: string[],
dockerLabels?: any,
dockerSecurityOptions?: string[],
entryPoint?: string[],
environment?: any[],
essential?: boolean,
extraHosts?: {
hostName: string,
ipAddress: string
}[];
hostname?: string,
image?: string,
links?: string[],
logConfiguration?: {
logDriver: string,
options: any
}[],
memory?: number,
mountPoints?: {
containerPath: string,
readOnly: boolean,
sourceVolume: string
}[];
name?: string,
portMappings?: {
containerPort?: number,
hostPort?: number,
protocol: string
}[];
privileged?: boolean,
readonlyRootFilesystem?: boolean,
ulimits?: {
hardLimit: number,
name: string,
softLimit: number
}[];
user?: string,
volumesFrom?: {
readOnly?: boolean,
sourceContainer?: string
}[],
workingDirectory?: string
}[];
family: string;
volumes?: {
host: {
sourcePath: string
},
name: string
}[];
}
export interface UpdateServiceParams {
service: string;
cluster?: string;
deploymentConfiguration?: {
maximumPercent: number;
minimumHealthyPercent: number;
};
desiredCount?: number;
taskDefinition: string;
}
}
}