@anvil-cloud/sdk 0.0.13 → 0.0.15

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.
Files changed (63) hide show
  1. package/aws/cognitoAuth.ts +70 -0
  2. package/aws/cognitoUserPool.ts +132 -0
  3. package/aws/dynamoDB.ts +176 -0
  4. package/aws/eventBus.ts +91 -0
  5. package/aws/httpApi.ts +108 -0
  6. package/aws/index.ts +63 -0
  7. package/aws/lambda.ts +9 -3
  8. package/aws/oauthAuthorizer.ts +70 -0
  9. package/aws/queue.ts +156 -0
  10. package/aws/svelteKitSite.ts +14 -0
  11. package/aws/vpc.ts +159 -0
  12. package/aws/vpcEndpoint.ts +98 -0
  13. package/bin/aws/cognitoAuth.d.ts +36 -0
  14. package/bin/aws/cognitoAuth.js +53 -0
  15. package/bin/aws/cognitoAuth.js.map +1 -0
  16. package/bin/aws/cognitoUserPool.d.ts +82 -0
  17. package/bin/aws/cognitoUserPool.js +65 -0
  18. package/bin/aws/cognitoUserPool.js.map +1 -0
  19. package/bin/aws/dynamoDB.d.ts +115 -0
  20. package/bin/aws/dynamoDB.js +121 -0
  21. package/bin/aws/dynamoDB.js.map +1 -0
  22. package/bin/aws/eventBus.d.ts +47 -0
  23. package/bin/aws/eventBus.js +63 -0
  24. package/bin/aws/eventBus.js.map +1 -0
  25. package/bin/aws/httpApi.d.ts +66 -0
  26. package/bin/aws/httpApi.js +60 -0
  27. package/bin/aws/httpApi.js.map +1 -0
  28. package/bin/aws/index.d.ts +27 -0
  29. package/bin/aws/index.js +37 -1
  30. package/bin/aws/index.js.map +1 -1
  31. package/bin/aws/lambda.d.ts +7 -3
  32. package/bin/aws/lambda.js +2 -0
  33. package/bin/aws/lambda.js.map +1 -1
  34. package/bin/aws/oauthAuthorizer.d.ts +36 -0
  35. package/bin/aws/oauthAuthorizer.js +53 -0
  36. package/bin/aws/oauthAuthorizer.js.map +1 -0
  37. package/bin/aws/queue.d.ts +83 -0
  38. package/bin/aws/queue.js +103 -0
  39. package/bin/aws/queue.js.map +1 -0
  40. package/bin/aws/svelteKitSite.d.ts +9 -0
  41. package/bin/aws/svelteKitSite.js +3 -0
  42. package/bin/aws/svelteKitSite.js.map +1 -1
  43. package/bin/aws/vpc.d.ts +98 -0
  44. package/bin/aws/vpc.js +94 -0
  45. package/bin/aws/vpc.js.map +1 -0
  46. package/bin/aws/vpcEndpoint.d.ts +53 -0
  47. package/bin/aws/vpcEndpoint.js +62 -0
  48. package/bin/aws/vpcEndpoint.js.map +1 -0
  49. package/bin/grants.d.ts +0 -10
  50. package/bin/grants.js +5 -10
  51. package/bin/grants.js.map +1 -1
  52. package/bin/package.json +1 -1
  53. package/bin/types/enums/aws/index.d.ts +211 -7
  54. package/bin/types/enums/aws/index.js +192 -8
  55. package/bin/types/enums/aws/index.js.map +1 -1
  56. package/bin/types/input.d.ts +1040 -0
  57. package/bin/types/output.d.ts +13 -0
  58. package/grants.ts +7 -22
  59. package/package.json +1 -1
  60. package/tsconfig.json +9 -0
  61. package/types/enums/aws/index.ts +239 -7
  62. package/types/input.ts +1079 -0
  63. package/types/output.ts +14 -0
@@ -2,14 +2,176 @@
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.LambdaRuntime = exports.LambdaLogRetention = exports.LambdaArchitecture = void 0;
5
+ exports.VpcNatType = exports.SiteOriginProtectionProvider = exports.S3FlowLogLifecycle = exports.LambdaRuntime = exports.LambdaLogRetention = exports.LambdaArchitecture = exports.HttpApiMethod = exports.DynamoDBStreamViewType = exports.DynamoDBStreamStartingPosition = exports.DynamoDBProjectionType = exports.DynamoDBAttributeType = exports.CognitoUserPoolUsernameAttribute = exports.CognitoUserPoolOAuthFlow = exports.CognitoUserPoolMfaMode = exports.CognitoUserPoolMfaMethod = exports.CognitoUserPoolIdentityProviderType = exports.CognitoUserPoolCustomAttributeType = void 0;
6
+ exports.CognitoUserPoolCustomAttributeType = {
7
+ String: "String",
8
+ Number: "Number",
9
+ DateTime: "DateTime",
10
+ Boolean: "Boolean",
11
+ };
12
+ exports.CognitoUserPoolIdentityProviderType = {
13
+ /**
14
+ * Google OAuth 2.0. Requires clientId and clientSecret.
15
+ */
16
+ Google: "Google",
17
+ /**
18
+ * Facebook OAuth 2.0. Requires clientId and clientSecret.
19
+ */
20
+ Facebook: "Facebook",
21
+ /**
22
+ * Login with Amazon. Requires clientId and clientSecret.
23
+ */
24
+ LoginWithAmazon: "LoginWithAmazon",
25
+ /**
26
+ * Sign in with Apple. Requires clientId and clientSecret.
27
+ */
28
+ SignInWithApple: "SignInWithApple",
29
+ /**
30
+ * Generic OIDC provider (Okta, Auth0, Microsoft Entra, etc.). Requires clientId, clientSecret, and oidcIssuer.
31
+ */
32
+ OIDC: "OIDC",
33
+ /**
34
+ * SAML 2.0 provider (corporate SSO, Active Directory Federation Services etc.). Requires metadataUrl or metadataContent.
35
+ */
36
+ SAML: "SAML",
37
+ };
38
+ exports.CognitoUserPoolMfaMethod = {
39
+ /**
40
+ * Time-based one-time password (authenticator app). No additional AWS resources required.
41
+ */
42
+ TOTP: "TOTP",
43
+ /**
44
+ * SMS one-time password via SNS. Requires snsCallerArn.
45
+ */
46
+ SMS: "SMS",
47
+ };
48
+ exports.CognitoUserPoolMfaMode = {
49
+ /**
50
+ * MFA disabled. Default.
51
+ */
52
+ OFF: "OFF",
53
+ /**
54
+ * MFA available but not required. Users opt in.
55
+ */
56
+ OPTIONAL: "OPTIONAL",
57
+ /**
58
+ * MFA required for all users.
59
+ */
60
+ REQUIRED: "REQUIRED",
61
+ };
62
+ exports.CognitoUserPoolOAuthFlow = {
63
+ /**
64
+ * Authorization code grant (PKCE). Most secure — use for all browser and server apps.
65
+ */
66
+ Code: "code",
67
+ /**
68
+ * Implicit grant. Deprecated — tokens visible in browser URL. Avoid for new applications.
69
+ */
70
+ Implicit: "implicit",
71
+ /**
72
+ * Client credentials grant. M2M only — no user interaction.
73
+ */
74
+ Client_credentials: "client_credentials",
75
+ };
76
+ exports.CognitoUserPoolUsernameAttribute = {
77
+ /**
78
+ * Users sign in with their email address.
79
+ */
80
+ Email: "email",
81
+ /**
82
+ * Users sign in with their phone number.
83
+ */
84
+ Phone_number: "phone_number",
85
+ };
86
+ exports.DynamoDBAttributeType = {
87
+ /**
88
+ * String
89
+ */
90
+ S: "S",
91
+ /**
92
+ * Number
93
+ */
94
+ N: "N",
95
+ /**
96
+ * Binary
97
+ */
98
+ B: "B",
99
+ };
100
+ exports.DynamoDBProjectionType = {
101
+ /**
102
+ * All attributes are projected. Default.
103
+ */
104
+ ALL: "ALL",
105
+ /**
106
+ * Only the table and GSI key attributes are projected.
107
+ */
108
+ KEYS_ONLY: "KEYS_ONLY",
109
+ /**
110
+ * Only the specified nonKeyAttributes are projected in addition to keys.
111
+ */
112
+ INCLUDE: "INCLUDE",
113
+ };
114
+ exports.DynamoDBStreamStartingPosition = {
115
+ /**
116
+ * Start reading from the oldest available record in the stream. Replays all existing records up to 24hr retention window. AWS default.
117
+ */
118
+ TRIM_HORIZON: "TRIM_HORIZON",
119
+ /**
120
+ * Start reading from the most recent record. Only processes new events from the point of consumer creation.
121
+ */
122
+ LATEST: "LATEST",
123
+ };
124
+ exports.DynamoDBStreamViewType = {
125
+ /**
126
+ * Only the new item image is written to the stream.
127
+ */
128
+ NEW_IMAGE: "NEW_IMAGE",
129
+ /**
130
+ * Only the old item image is written to the stream.
131
+ */
132
+ OLD_IMAGE: "OLD_IMAGE",
133
+ /**
134
+ * Both old and new item images are written to the stream.
135
+ */
136
+ NEW_AND_OLD_IMAGES: "NEW_AND_OLD_IMAGES",
137
+ /**
138
+ * Only the key attributes are written to the stream.
139
+ */
140
+ KEYS_ONLY: "KEYS_ONLY",
141
+ };
142
+ exports.HttpApiMethod = {
143
+ /**
144
+ * HTTP GET — read operations.
145
+ */
146
+ GET: "GET",
147
+ /**
148
+ * HTTP POST — create operations and async consumers (SQS, EventBridge, Step Functions).
149
+ */
150
+ POST: "POST",
151
+ /**
152
+ * HTTP PUT — replace operations.
153
+ */
154
+ PUT: "PUT",
155
+ /**
156
+ * HTTP PATCH — partial update operations.
157
+ */
158
+ PATCH: "PATCH",
159
+ /**
160
+ * HTTP DELETE — delete operations.
161
+ */
162
+ DELETE: "DELETE",
163
+ /**
164
+ * Matches all HTTP methods. Maps to the $default route key.
165
+ */
166
+ ANY: "ANY",
167
+ };
6
168
  exports.LambdaArchitecture = {
7
169
  /**
8
- * Graviton 20% cheaper, better performance. Default.
170
+ * Graviton - 20% cheaper, better performance. Default.
9
171
  */
10
172
  Arm64: "arm64",
11
173
  /**
12
- * Intel/AMD use for x86-specific native dependencies.
174
+ * Intel/AMD - use for x86-specific native dependencies.
13
175
  */
14
176
  X86_64: "x86_64",
15
177
  };
@@ -27,25 +189,25 @@ exports.LambdaLogRetention = {
27
189
  */
28
190
  LambdaLogRetention_90d: "90d",
29
191
  /**
30
- * 1 year (365 days) SOC 2 / ISO 27001 / PCI-DSS baseline. Default.
192
+ * 1 year (365 days) - SOC 2 / ISO 27001 / PCI-DSS baseline. Default.
31
193
  */
32
194
  LambdaLogRetention_1y: "1y",
33
195
  /**
34
- * 3 years (1095 days) FedRAMP minimum
196
+ * 3 years (1095 days) - FedRAMP minimum
35
197
  */
36
198
  LambdaLogRetention_3y: "3y",
37
199
  /**
38
- * 6 years (2190 days) HIPAA minimum
200
+ * 6 years (2190 days) - HIPAA minimum
39
201
  */
40
202
  LambdaLogRetention_6y: "6y",
41
203
  /**
42
- * 7 years (2555 days) IRAP minimum
204
+ * 7 years (2555 days) - IRAP minimum
43
205
  */
44
206
  LambdaLogRetention_7y: "7y",
45
207
  };
46
208
  exports.LambdaRuntime = {
47
209
  /**
48
- * Node.js 24 (LTS) recommended
210
+ * Node.js 24 (LTS) - recommended
49
211
  */
50
212
  Nodejs24_x: "nodejs24.x",
51
213
  /**
@@ -53,4 +215,26 @@ exports.LambdaRuntime = {
53
215
  */
54
216
  Nodejs22_x: "nodejs22.x",
55
217
  };
218
+ exports.S3FlowLogLifecycle = {
219
+ /**
220
+ * Auto-tiered: Standard (0-30d) → Standard-IA (30-90d) → Glacier Instant Retrieval (90d+). Suitable for compliance retention at minimal long-term cost.
221
+ */
222
+ Standard: "standard",
223
+ };
224
+ exports.SiteOriginProtectionProvider = {
225
+ /**
226
+ * Cloudflare — inject x-origin-secret via a Cloudflare Transform Rule.
227
+ */
228
+ Cloudflare: "cloudflare",
229
+ };
230
+ exports.VpcNatType = {
231
+ /**
232
+ * AWS managed NAT Gateway. One per AZ for true HA. ~$32/month per AZ plus $0.045/GB data processed.
233
+ */
234
+ Gateway: "gateway",
235
+ /**
236
+ * fck-nat EC2 instance. Single instance regardless of AZ count. ~$4-6/month for t4g.small. Accepted single point of failure tradeoff for cost savings.
237
+ */
238
+ Fck_nat: "fck-nat",
239
+ };
56
240
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/aws/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,kBAAkB,GAAG;IAC9B;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,MAAM,EAAE,QAAQ;CACV,CAAC;AAIE,QAAA,kBAAkB,GAAG;IAC9B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,sBAAsB,EAAE,KAAK;IAC7B;;OAEG;IACH,sBAAsB,EAAE,KAAK;IAC7B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;IAC3B;;OAEG;IACH,qBAAqB,EAAE,IAAI;CACrB,CAAC;AAIE,QAAA,aAAa,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,YAAY;IACxB;;OAEG;IACH,UAAU,EAAE,YAAY;CAClB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../types/enums/aws/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAGpE,QAAA,kCAAkC,GAAG;IAC9C,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACZ,CAAC;AAIE,QAAA,mCAAmC,GAAG;IAC/C;;OAEG;IACH,MAAM,EAAE,QAAQ;IAChB;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM;CACN,CAAC;AAIE,QAAA,wBAAwB,GAAG;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,GAAG,EAAE,KAAK;CACJ,CAAC;AAIE,QAAA,sBAAsB,GAAG;IAClC;;OAEG;IACH,GAAG,EAAE,KAAK;IACV;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,QAAQ,EAAE,UAAU;CACd,CAAC;AAIE,QAAA,wBAAwB,GAAG;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,kBAAkB,EAAE,oBAAoB;CAClC,CAAC;AAIE,QAAA,gCAAgC,GAAG;IAC5C;;OAEG;IACH,KAAK,EAAE,OAAO;IACd;;OAEG;IACH,YAAY,EAAE,cAAc;CACtB,CAAC;AAIE,QAAA,qBAAqB,GAAG;IACjC;;OAEG;IACH,CAAC,EAAE,GAAG;IACN;;OAEG;IACH,CAAC,EAAE,GAAG;IACN;;OAEG;IACH,CAAC,EAAE,GAAG;CACA,CAAC;AAIE,QAAA,sBAAsB,GAAG;IAClC;;OAEG;IACH,GA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