@stacksjs/ts-cloud 0.2.27 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,15 +32,21 @@ export interface InvokeResult {
32
32
  }
33
33
  export interface CreateFunctionParams {
34
34
  FunctionName: string;
35
- Runtime: 'nodejs18.x' | 'nodejs20.x' | 'python3.11' | 'python3.12' | string;
35
+ /** Omit for container-image functions (PackageType: 'Image'). */
36
+ Runtime?: 'nodejs18.x' | 'nodejs20.x' | 'python3.11' | 'python3.12' | string;
36
37
  Role: string;
37
- Handler: string;
38
+ /** Omit for container-image functions (the image CMD is the entrypoint). */
39
+ Handler?: string;
38
40
  Code: {
39
41
  ZipFile?: string;
40
42
  S3Bucket?: string;
41
43
  S3Key?: string;
42
44
  S3ObjectVersion?: string;
45
+ /** ECR image URI for container-image functions. */
46
+ ImageUri?: string;
43
47
  };
48
+ /** 'Zip' (default) or 'Image' for container-image deployments. */
49
+ PackageType?: 'Zip' | 'Image';
44
50
  Description?: string;
45
51
  Timeout?: number;
46
52
  MemorySize?: number;
@@ -64,6 +70,8 @@ export interface UpdateFunctionCodeParams {
64
70
  S3Bucket?: string;
65
71
  S3Key?: string;
66
72
  S3ObjectVersion?: string;
73
+ /** ECR image URI for container-image functions. */
74
+ ImageUri?: string;
67
75
  Publish?: boolean;
68
76
  Architectures?: ('x86_64' | 'arm64')[];
69
77
  }