@types/serverless
Advanced tools
Comparing version 1.67.1 to 1.67.2
@@ -26,7 +26,9 @@ import Serverless = require('../index'); | ||
interface VariableResolvers { | ||
[variablePrefix: string]: VariableResolver | { | ||
resolver: VariableResolver, | ||
isDisabledAtPrepopulation?: boolean, | ||
serviceName?: string | ||
}; | ||
[variablePrefix: string]: | ||
| VariableResolver | ||
| { | ||
resolver: VariableResolver; | ||
isDisabledAtPrepopulation?: boolean; | ||
serviceName?: string; | ||
}; | ||
} | ||
@@ -33,0 +35,0 @@ |
@@ -7,2 +7,3 @@ // Type definitions for serverless 1.67 | ||
// Frédéric Barthelet <https://github.com/fredericbarthelet> | ||
// Bryan Hunter <https://github.com/bryan-hunter> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -52,2 +53,4 @@ | ||
} | ||
type Aws = AwsProvider; | ||
} | ||
@@ -54,0 +57,0 @@ |
{ | ||
"name": "@types/serverless", | ||
"version": "1.67.1", | ||
"version": "1.67.2", | ||
"description": "TypeScript definitions for serverless", | ||
@@ -26,2 +26,7 @@ "license": "MIT", | ||
"githubUsername": "fredericbarthelet" | ||
}, | ||
{ | ||
"name": "Bryan Hunter", | ||
"url": "https://github.com/bryan-hunter", | ||
"githubUsername": "bryan-hunter" | ||
} | ||
@@ -38,4 +43,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "7c2a3046fd3eeaeaba3f79798b89740b426f2538d48f0974f525a5f3da6c10b8", | ||
"typesPublisherContentHash": "215a7fe2acbb7ee7be85ae16a601d0702ae65a6d027ef319403903e1c8522f1b", | ||
"typeScriptVersion": "2.9" | ||
} |
import Serverless = require('../../../index'); | ||
declare namespace Aws { | ||
/* | ||
Types based on https://github.com/serverless/serverless/blob/master/docs/providers/aws/guide/serverless.yml.md | ||
*/ | ||
interface Serverless { | ||
service: Service; | ||
frameworkVersion: string; | ||
provider: Provider; | ||
package?: Package; | ||
functions?: Functions; | ||
layers?: Layers; | ||
resources?: Resources; | ||
} | ||
interface Service { | ||
name: string; | ||
awsKmsKeyArn?: string; | ||
} | ||
interface Provider { | ||
name: 'aws'; | ||
runtime: string; | ||
stage?: string; | ||
region?: string; | ||
stackName?: string; | ||
apiName?: string; | ||
websocketsApiName?: string; | ||
websocketsApiRouteSelectionExpression?: string; | ||
profile?: string; | ||
memorySize?: number | string; | ||
reservedConcurrency?: number | string; | ||
timeout?: number | string; | ||
logRetentionInDays?: number | string; | ||
deploymentBucket?: DeploymentBucket; | ||
deploymentPrefix?: string; | ||
role?: string; | ||
rolePermissionsBoundary?: string; | ||
cfnRole?: string; | ||
versionFunctions?: boolean; | ||
environment?: Environment; | ||
endpointType?: string; | ||
apiKeys?: string[]; | ||
apiGateway?: ApiGateway; | ||
alb?: Alb; | ||
httpApi?: HttpApi; | ||
usagePlan?: UsagePlan; | ||
stackTags?: Tags; | ||
iamManagedPolicies?: string[]; | ||
iamRoleStatements?: IamRoleStatement[]; | ||
stackPolicy?: ResourcePolicy[]; | ||
vpc?: Vpc; | ||
notificationArns?: string[]; | ||
stackParameters?: StackParameters[]; | ||
resourcePolicy?: ResourcePolicy[]; | ||
rollbackConfiguration?: RollbackConfiguration; | ||
tags?: Tags; | ||
tracing?: Tracing; | ||
logs?: Logs; | ||
} | ||
interface Tags { | ||
[key: string]: string; | ||
} | ||
interface DeploymentBucket { | ||
name?: string; | ||
maxPreviousDeploymentArtifacts?: number | string; | ||
blockPublicAccess?: boolean; | ||
serverSideEncryption?: string; | ||
sseKMSKeyId?: string; | ||
sseCustomerAlgorithim?: string; | ||
sseCustomerKey?: string; | ||
sseCustomerKeyMD5?: string; | ||
tags?: Tags; | ||
} | ||
interface Environment { | ||
[key: string]: string; | ||
} | ||
interface ApiGateway { | ||
restApiId?: string; | ||
restApiRootResourceId?: string; | ||
restApiResources?: { | ||
[key: string]: string; | ||
}; | ||
websocketApiId?: any; | ||
apiKeySourceType?: string; | ||
minimumCompressionSize?: number | string; | ||
description?: string; | ||
binaryMediaTypes?: string[]; | ||
} | ||
interface CognitoAuthorizer { | ||
type: 'cognito'; | ||
userPoolArn: string; | ||
userPoolClientId: string; | ||
userPoolDomain: string; | ||
allowUnauthenticated?: boolean; | ||
requestExtraParams?: { | ||
prompt?: string; | ||
redirect?: boolean; | ||
}; | ||
scope?: string; | ||
sessionCookieName?: string; | ||
sessionTimeout?: number | string; | ||
} | ||
interface OidcAuthorizer { | ||
type: 'oidc'; | ||
authorizationEndpoint: string; | ||
clientId: string; | ||
clientSecret?: string; | ||
useExistingClientSecret?: boolean; | ||
issuer: string; | ||
tokenEndpoint: string; | ||
userInfoEndpoint: string; | ||
allowUnauthenticated?: boolean; | ||
requestExtraParams?: { | ||
prompt?: string; | ||
redirect?: boolean; | ||
}; | ||
scope?: string; | ||
sessionCookieName?: string; | ||
sessionTimeout?: number | string; | ||
} | ||
interface JwtAuthorizer { | ||
identitySource: string; | ||
issuerUrl: string; | ||
audience: string[]; | ||
} | ||
interface Authorizers { | ||
[key: string]: CognitoAuthorizer | OidcAuthorizer | JwtAuthorizer; | ||
} | ||
interface Alb { | ||
targetGroupPrefix?: string; | ||
authorizers?: Authorizers; | ||
} | ||
interface HttpApi { | ||
id?: string; | ||
name?: string; | ||
payload?: string; | ||
cors?: boolean; | ||
authorizers?: Authorizers; | ||
} | ||
interface Quota { | ||
limit?: number | string; | ||
offset?: number | string; | ||
period?: string; | ||
} | ||
interface Throttle { | ||
burstLimit?: number | string; | ||
rateLimit?: number | string; | ||
} | ||
interface UsagePlan { | ||
quota?: Quota; | ||
throttle?: Throttle; | ||
} | ||
interface IamRoleStatement { | ||
Effect: 'Allow' | 'Deny'; | ||
Sid?: string; | ||
Condition?: { | ||
[key: string]: any; | ||
}; | ||
Action?: string | string[] | { [key: string]: any }; | ||
NotAction?: string | string[] | { [key: string]: any }; | ||
Resource?: string | string[] | { [key: string]: any }; | ||
NotResource?: string | string[] | { [key: string]: any }; | ||
} | ||
interface ResourcePolicy { | ||
Effect: 'Allow' | 'Deny'; | ||
Principal?: string | string[] | { [key: string]: any }; | ||
Action?: string | string[] | { [key: string]: any }; | ||
Resource?: string | string[] | { [key: string]: any }; | ||
Condition?: { | ||
[key: string]: any; | ||
}; | ||
} | ||
interface Vpc { | ||
securityGroupIds: string[]; | ||
subnetIds: string[]; | ||
} | ||
interface StackParameters { | ||
ParameterKey: string; | ||
ParameterValue: string; | ||
} | ||
interface RollbackTrigger { | ||
Arn: string; | ||
Type: string; | ||
} | ||
interface RollbackConfiguration { | ||
MonitoringTimeInMinutes: number | string; | ||
RollbackTriggers: RollbackTrigger[]; | ||
} | ||
interface Tracing { | ||
apiGateway: boolean; | ||
lambda?: boolean; | ||
} | ||
interface RestApiLogs { | ||
accessLogging?: boolean; | ||
format?: string; | ||
executionLogging?: boolean; | ||
level?: string; | ||
fullExecutionData?: boolean; | ||
role?: string; | ||
roleManagedExternally?: boolean; | ||
} | ||
interface WebsocketLogs { | ||
level?: string; | ||
} | ||
interface HttpApiLogs { | ||
format?: string; | ||
} | ||
interface Logs { | ||
restApi?: RestApiLogs; | ||
websocket?: WebsocketLogs; | ||
httpApi?: HttpApiLogs; | ||
frameworkLambda?: boolean; | ||
} | ||
interface Package { | ||
include?: string[]; | ||
exclude?: string[]; | ||
excludeDevDependencies?: boolean; | ||
artifact?: string; | ||
individually?: boolean; | ||
} | ||
interface Destinations { | ||
onSuccess?: string; | ||
onFailure?: string; | ||
} | ||
interface HttpAuthorizer { | ||
name?: string; | ||
arn?: string; | ||
resultTtlInSeconds?: number | string; | ||
identitySource?: string; | ||
identityValidationExpression?: string; | ||
type?: string; | ||
} | ||
interface Http { | ||
path: string; | ||
method: string; | ||
cors?: boolean; | ||
private?: boolean; | ||
authorizer?: HttpAuthorizer; | ||
} | ||
interface HttpApiEventAuthorizer { | ||
name: string; | ||
scopes?: string[]; | ||
} | ||
interface HttpApiEvent { | ||
method: string; | ||
path: string; | ||
authorizer?: HttpApiEventAuthorizer; | ||
} | ||
interface WebsocketAuthorizer { | ||
name?: string; | ||
arn?: string; | ||
identitySource?: string[]; | ||
} | ||
interface Websocket { | ||
route: string; | ||
routeResponseSelectionExpression?: string; | ||
authorizer?: WebsocketAuthorizer; | ||
} | ||
interface S3Rule { | ||
prefix: string; | ||
suffix: string; | ||
} | ||
interface S3 { | ||
bucket: string; | ||
event: string; | ||
rules: S3Rule[]; | ||
existing?: boolean; | ||
} | ||
interface Input { | ||
[key: string]: any; | ||
} | ||
interface InputTransformer { | ||
inputPathsMap: { [key: string]: string }; | ||
inputTemplate: string; | ||
} | ||
interface Schedule { | ||
name?: string; | ||
description?: string; | ||
rate: string; | ||
enabled?: boolean; | ||
input?: Input; | ||
inputPath?: string; | ||
inputTransformer?: InputTransformer; | ||
} | ||
interface FilterPolicy { | ||
pet: string[]; | ||
} | ||
interface DeadLetterTargetImport { | ||
arn: string; | ||
url: string; | ||
} | ||
interface RedrivePolicy { | ||
deadLetterTargetArn?: string; | ||
deadLetterTargetRef?: string; | ||
deadLetterTargetImport?: DeadLetterTargetImport; | ||
} | ||
interface Sns { | ||
topicName: string; | ||
displayName?: string; | ||
filterPolicy?: string[] | { [key: string]: string }; | ||
redrivePolicy?: RedrivePolicy; | ||
} | ||
interface Sqs { | ||
arn: string; | ||
batchSize?: number | string; | ||
maximumRetryAttempts?: number | string; | ||
enabled?: boolean; | ||
} | ||
interface Stream { | ||
arn: string; | ||
batchSize?: number | string; | ||
startingPosition?: string; | ||
enabled?: boolean; | ||
} | ||
interface AlexaSkill { | ||
appId: string; | ||
enabled?: boolean; | ||
} | ||
interface AlexaSmartHome { | ||
appId: string; | ||
enabled?: boolean; | ||
} | ||
interface Iot { | ||
name: string; | ||
description?: string; | ||
enabled?: boolean; | ||
sql: string; | ||
sqlVersion: string; | ||
} | ||
interface Detail { | ||
[key: string]: string[]; | ||
} | ||
interface CloudwatchEventType { | ||
source: string[]; | ||
'detail-type': string[]; | ||
detail: Detail; | ||
} | ||
interface CloudwatchEvent { | ||
event: string; | ||
name?: string; | ||
description?: string; | ||
enabled?: boolean; | ||
input?: Input; | ||
inputPath?: string; | ||
inputTransformer?: InputTransformer; | ||
} | ||
interface CloudwatchLog { | ||
logGroup: string; | ||
filter: string; | ||
} | ||
interface CognitoUserPool { | ||
pool: string; | ||
trigger: string; | ||
existing?: boolean; | ||
} | ||
interface AlbEvent { | ||
listenerArn: string; | ||
priority: number | string; | ||
conditions: { | ||
host: string; | ||
path: string; | ||
}; | ||
} | ||
interface PatternExisting { | ||
source: string[]; | ||
} | ||
interface PatternInput { | ||
source: string[]; | ||
'detail-type': string[]; | ||
detail: Detail; | ||
} | ||
interface EventBridge { | ||
schedule?: string; | ||
eventBus?: string; | ||
pattern?: PatternExisting | PatternInput; | ||
input?: Input; | ||
inputPath?: string; | ||
inputTransformer?: InputTransformer; | ||
} | ||
interface Origin { | ||
DomainName: string; | ||
OriginPath: string; | ||
CustomOriginConfig: { | ||
OriginProtocolPolicy: string; | ||
}; | ||
} | ||
interface CloudFront { | ||
eventType: string; | ||
includeBody: boolean; | ||
pathPattern: string; | ||
origin: Origin; | ||
} | ||
interface Event { | ||
http: Http; | ||
httpApi: HttpApiEvent; | ||
websocket: Websocket; | ||
s3: S3; | ||
schedule: string | Schedule; | ||
sns: Sns; | ||
sqs: Sqs; | ||
stream: Stream; | ||
alexaSkill: AlexaSkill; | ||
alexaSmartHome: AlexaSmartHome; | ||
iot: Iot; | ||
cloudwatchEvent: CloudwatchEvent; | ||
cloudwatchLog: CloudwatchLog; | ||
cognitoUserPool: CognitoUserPool; | ||
alb: AlbEvent; | ||
eventBridge: EventBridge; | ||
cloudFront: CloudFront; | ||
} | ||
interface AwsFunction { | ||
handler: string; | ||
name?: string; | ||
description?: string; | ||
memorySize?: number | string; | ||
reservedConcurrency?: number | string; | ||
provisionedConcurrency?: number | string; | ||
runtime?: string; | ||
timeout?: number | string; | ||
role?: string; | ||
onError?: string; | ||
awsKmsKeyArn?: string; | ||
environment?: Environment; | ||
tags?: Tags; | ||
vpc?: Vpc; | ||
package?: Package; | ||
layers?: string[]; | ||
tracing?: string; | ||
condition?: string; | ||
dependsOn?: string[]; | ||
destinations?: Destinations; | ||
events?: Event[]; | ||
} | ||
interface Functions { | ||
[key: string]: AwsFunction; | ||
} | ||
interface Layer { | ||
path: string; | ||
name?: string; | ||
description?: string; | ||
compatibleRuntimes?: string[]; | ||
licenseInfo?: string; | ||
allowedAccounts?: string[]; | ||
retain?: boolean; | ||
} | ||
interface Layers { | ||
[key: string]: Layer; | ||
} | ||
interface CloudFormationResource { | ||
Type: string; | ||
Properties: { [key: string]: any }; | ||
DependsOn?: string | { [key: string]: any }; | ||
DeletionPolicy?: string; | ||
} | ||
interface CloudFormationResources { | ||
[key: string]: CloudFormationResource; | ||
} | ||
interface Output { | ||
Description?: string; | ||
Value: any; | ||
Export?: { | ||
Name: any; | ||
}; | ||
Condition?: any; | ||
} | ||
interface Outputs { | ||
[key: string]: Output; | ||
} | ||
interface Resources { | ||
Resources: CloudFormationResources; | ||
extensions: CloudFormationResources; | ||
Outputs: Outputs; | ||
} | ||
} | ||
declare class Aws { | ||
@@ -4,0 +547,0 @@ constructor(serverless: Serverless, options: Serverless.Options); |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 07 May 2020 08:03:44 GMT | ||
* Last updated: Tue, 12 May 2020 20:30:15 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by [Hassan Khan](https://github.com/hassankhan), [Jonathan M. Wilbur](https://github.com/JonathanWilbur), [Alex Pavlenko](https://github.com/a-pavlenko), and [Frédéric Barthelet](https://github.com/fredericbarthelet). | ||
These definitions were written by [Hassan Khan](https://github.com/hassankhan), [Jonathan M. Wilbur](https://github.com/JonathanWilbur), [Alex Pavlenko](https://github.com/a-pavlenko), [Frédéric Barthelet](https://github.com/fredericbarthelet), and [Bryan Hunter](https://github.com/bryan-hunter). |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23801
702
1