@ez4/aws-function
Advanced tools
Comparing version 0.0.0 to 0.1.0
@@ -26,7 +26,10 @@ import type { Arn, ResourceTags } from '@ez4/aws-common'; | ||
}; | ||
export type UpdateSourceCodeRequest = { | ||
sourceFile: string; | ||
}; | ||
export declare const createFunction: (request: CreateRequest) => Promise<CreateResponse>; | ||
export declare const tagFunction: (functionArn: Arn, tags: ResourceTags) => Promise<void>; | ||
export declare const untagFunction: (functionArn: Arn, tagKeys: string[]) => Promise<void>; | ||
export declare const updateSourceCode: (functionName: string, sourceFile: string) => Promise<void>; | ||
export declare const updateSourceCode: (functionName: string, request: UpdateSourceCodeRequest) => Promise<void>; | ||
export declare const updateConfiguration: (functionName: string, request: UpdateConfigRequest) => Promise<void>; | ||
export declare const deleteFunction: (functionName: string) => Promise<void>; |
@@ -0,1 +1,2 @@ | ||
export * from './types/variables.js'; | ||
export * from './function/service.js'; | ||
@@ -6,2 +7,4 @@ export * from './function/types.js'; | ||
export * from './permission/types.js'; | ||
export * from './mapping/service.js'; | ||
export * from './mapping/types.js'; | ||
export * from './triggers/register.js'; |
import type { EntryState, EntryStates } from '@ez4/stateful'; | ||
import type { FunctionState } from '../function/types.js'; | ||
import type { PermissionParametersGenerator, PermissionState } from './types.js'; | ||
import type { PermissionParameters, PermissionState } from './types.js'; | ||
export declare const isPermission: (resource: EntryState) => resource is PermissionState; | ||
export declare const createPermission: <E extends EntryState>(state: EntryStates<E>, sourceState: EntryState, functionState: FunctionState, getParameters: PermissionParametersGenerator) => PermissionState; | ||
export declare const createPermission: <E extends EntryState>(state: EntryStates<E>, sourceState: EntryState, functionState: FunctionState, parameters: PermissionParameters) => PermissionState; |
@@ -5,11 +5,14 @@ import type { EntryState, StepContext } from '@ez4/stateful'; | ||
export declare const PermissionServiceType = "aws:lambda.permission"; | ||
export type PermissionParameters = Omit<CreateRequest, 'functionName' | 'statementId' | 'action'>; | ||
export type Permission = Omit<CreateRequest, 'functionName' | 'statementId' | 'action'>; | ||
export type GetPermission = (context: StepContext) => Promise<Permission> | Permission; | ||
export type PermissionParameters = { | ||
getPermission: GetPermission; | ||
}; | ||
export type PermissionResult = CreateResponse & { | ||
functionName: string; | ||
}; | ||
export type PermissionParametersGenerator = (context: StepContext) => Promise<PermissionParameters> | PermissionParameters; | ||
export type PermissionState = EntryState & { | ||
type: typeof PermissionServiceType; | ||
parameters: PermissionParametersGenerator; | ||
parameters: PermissionParameters; | ||
result?: PermissionResult; | ||
}; |
{ | ||
"name": "@ez4/aws-function", | ||
"description": "EZ4: Self-managed AWS lambda functions", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"author": "Silas B.", | ||
@@ -26,12 +26,11 @@ "license": "MIT", | ||
"clean:registry": "rm -rf ../../.registry/@ez4/aws-function", | ||
"prepublishOnly": "npm run clean && npm run build && npm run test", | ||
"publish": "npm publish --access public" | ||
"live:publish": "npm run test && npm publish --access public" | ||
}, | ||
"dependencies": { | ||
"@aws-sdk/client-lambda": "^3.614.0", | ||
"@ez4/aws-common": "^0.0.0", | ||
"@ez4/aws-identity": "^0.0.0", | ||
"@ez4/project": "^0.0.0", | ||
"@ez4/stateful": "^0.0.0", | ||
"@ez4/utils": "^0.0.0", | ||
"@ez4/aws-common": "^0.1.0", | ||
"@ez4/aws-identity": "^0.1.0", | ||
"@ez4/project": "^0.1.0", | ||
"@ez4/stateful": "^0.1.0", | ||
"@ez4/utils": "^0.1.0", | ||
"@types/adm-zip": "^0.5.5", | ||
@@ -38,0 +37,0 @@ "adm-zip": "^0.5.14" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30260
24
359
+ Added@ez4/aws-common@0.1.0(transitive)
+ Added@ez4/aws-identity@0.1.0(transitive)
+ Added@ez4/stateful@0.1.0(transitive)
+ Added@ez4/utils@0.1.0(transitive)
- Removed@ez4/aws-common@0.0.0(transitive)
- Removed@ez4/aws-identity@0.0.0(transitive)
- Removed@ez4/stateful@0.0.0(transitive)
- Removed@ez4/utils@0.0.0(transitive)
Updated@ez4/aws-common@^0.1.0
Updated@ez4/aws-identity@^0.1.0
Updated@ez4/project@^0.1.0
Updated@ez4/stateful@^0.1.0
Updated@ez4/utils@^0.1.0