@candlerip/shared 0.0.116 → 0.0.119

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 (237) hide show
  1. package/aws/{common/index.d.ts → index.d.ts} +0 -2
  2. package/aws/{common/index.js → index.js} +0 -2
  3. package/aws/{common/s3 → s3}/index.d.ts +0 -1
  4. package/aws/{common/s3 → s3}/index.js +0 -1
  5. package/cache/common/cache-key/cache-key/configs.d.ts +1 -1
  6. package/cache/common/cache-key/page-data-dictionary-cache-key/page-data-dictionary-cache-key-page/index.d.ts +1 -0
  7. package/cache/common/cache-key/page-data-dictionary-cache-key/page-data-dictionary-cache-key-page/index.js +1 -0
  8. package/cache/common/cache-key/page-data-dictionary-cache-key/page-data-dictionary-cache-key-page/type-guards.d.ts +2 -0
  9. package/cache/common/cache-key/page-data-dictionary-cache-key/page-data-dictionary-cache-key-page/type-guards.js +2 -0
  10. package/cache/common/cache-key/page-dictionary-cache-key/configs.d.ts +1 -1
  11. package/common/index.d.ts +0 -2
  12. package/common/index.js +0 -2
  13. package/common/page/configs.d.ts +1 -1
  14. package/common/page/configs.js +1 -0
  15. package/common/translation/translation-code/page/configs.d.ts +1 -1
  16. package/common/translation/translation-code/page/configs.js +1 -0
  17. package/common/translation/translation-code/page/maps.d.ts +3 -0
  18. package/common/translation/translation-code/page/maps.js +3 -0
  19. package/package.json +3 -8
  20. package/aws/cdk/ec2/index.d.ts +0 -1
  21. package/aws/cdk/ec2/index.js +0 -1
  22. package/aws/cdk/ec2/utils/add-security-group-ingress-rule-cdk/index.d.ts +0 -2
  23. package/aws/cdk/ec2/utils/add-security-group-ingress-rule-cdk/index.js +0 -4
  24. package/aws/cdk/ec2/utils/add-security-group-ingress-rule-cdk/types.d.ts +0 -2
  25. package/aws/cdk/ec2/utils/create-ec2-instance-cdk/index.d.ts +0 -2
  26. package/aws/cdk/ec2/utils/create-ec2-instance-cdk/index.js +0 -30
  27. package/aws/cdk/ec2/utils/create-ec2-instance-cdk/type.d.ts +0 -8
  28. package/aws/cdk/ec2/utils/create-ec2-instance-cdk/type.js +0 -1
  29. package/aws/cdk/ec2/utils/create-security-group-cdk/index.d.ts +0 -2
  30. package/aws/cdk/ec2/utils/create-security-group-cdk/index.js +0 -6
  31. package/aws/cdk/ec2/utils/create-security-group-cdk/type.d.ts +0 -3
  32. package/aws/cdk/ec2/utils/create-security-group-cdk/type.js +0 -1
  33. package/aws/cdk/ec2/utils/create-vpc-cdk/index.d.ts +0 -2
  34. package/aws/cdk/ec2/utils/create-vpc-cdk/index.js +0 -17
  35. package/aws/cdk/ec2/utils/create-vpc-cdk/type.d.ts +0 -3
  36. package/aws/cdk/ec2/utils/create-vpc-cdk/type.js +0 -1
  37. package/aws/cdk/ec2/utils/index.d.ts +0 -4
  38. package/aws/cdk/ec2/utils/index.js +0 -4
  39. package/aws/cdk/index.d.ts +0 -7
  40. package/aws/cdk/index.js +0 -7
  41. package/aws/cdk/lambda/index.d.ts +0 -1
  42. package/aws/cdk/lambda/index.js +0 -1
  43. package/aws/cdk/lambda/utils/attach-sqs-to-lambda-cdk/index.d.ts +0 -2
  44. package/aws/cdk/lambda/utils/attach-sqs-to-lambda-cdk/index.js +0 -25
  45. package/aws/cdk/lambda/utils/attach-sqs-to-lambda-cdk/types.d.ts +0 -8
  46. package/aws/cdk/lambda/utils/attach-sqs-to-lambda-cdk/types.js +0 -1
  47. package/aws/cdk/lambda/utils/create-lambda-cdk/index.d.ts +0 -2
  48. package/aws/cdk/lambda/utils/create-lambda-cdk/index.js +0 -37
  49. package/aws/cdk/lambda/utils/create-lambda-cdk/types.d.ts +0 -10
  50. package/aws/cdk/lambda/utils/create-lambda-cdk/types.js +0 -1
  51. package/aws/cdk/lambda/utils/index.d.ts +0 -2
  52. package/aws/cdk/lambda/utils/index.js +0 -2
  53. package/aws/cdk/s3/index.d.ts +0 -1
  54. package/aws/cdk/s3/index.js +0 -1
  55. package/aws/cdk/s3/utils/attach-s3-bucket-policy-cdk/index.d.ts +0 -2
  56. package/aws/cdk/s3/utils/attach-s3-bucket-policy-cdk/index.js +0 -9
  57. package/aws/cdk/s3/utils/attach-s3-bucket-policy-cdk/types.d.ts +0 -3
  58. package/aws/cdk/s3/utils/attach-s3-bucket-policy-cdk/types.js +0 -1
  59. package/aws/cdk/s3/utils/create-s3-bucket-cdk/index.d.ts +0 -2
  60. package/aws/cdk/s3/utils/create-s3-bucket-cdk/index.js +0 -23
  61. package/aws/cdk/s3/utils/create-s3-bucket-cdk/type.d.ts +0 -5
  62. package/aws/cdk/s3/utils/create-s3-bucket-cdk/type.js +0 -1
  63. package/aws/cdk/s3/utils/index.d.ts +0 -2
  64. package/aws/cdk/s3/utils/index.js +0 -2
  65. package/aws/cdk/s3-deployment/index.d.ts +0 -1
  66. package/aws/cdk/s3-deployment/index.js +0 -1
  67. package/aws/cdk/s3-deployment/utils/deploy-s3-bucket-cdk/index.d.ts +0 -2
  68. package/aws/cdk/s3-deployment/utils/deploy-s3-bucket-cdk/index.js +0 -10
  69. package/aws/cdk/s3-deployment/utils/deploy-s3-bucket-cdk/type.d.ts +0 -7
  70. package/aws/cdk/s3-deployment/utils/deploy-s3-bucket-cdk/type.js +0 -1
  71. package/aws/cdk/s3-deployment/utils/index.d.ts +0 -1
  72. package/aws/cdk/s3-deployment/utils/index.js +0 -1
  73. package/aws/cdk/sqs/index.d.ts +0 -1
  74. package/aws/cdk/sqs/index.js +0 -1
  75. package/aws/cdk/sqs/utils/attach-sqs-policy-cdk/index.d.ts +0 -2
  76. package/aws/cdk/sqs/utils/attach-sqs-policy-cdk/index.js +0 -9
  77. package/aws/cdk/sqs/utils/attach-sqs-policy-cdk/types.d.ts +0 -4
  78. package/aws/cdk/sqs/utils/attach-sqs-policy-cdk/types.js +0 -1
  79. package/aws/cdk/sqs/utils/index.d.ts +0 -1
  80. package/aws/cdk/sqs/utils/index.js +0 -1
  81. package/aws/cdk/ssm/index.d.ts +0 -1
  82. package/aws/cdk/ssm/index.js +0 -1
  83. package/aws/cdk/ssm/utils/attach-ssm-policy-cdk/index.d.ts +0 -2
  84. package/aws/cdk/ssm/utils/attach-ssm-policy-cdk/index.js +0 -9
  85. package/aws/cdk/ssm/utils/attach-ssm-policy-cdk/types.d.ts +0 -3
  86. package/aws/cdk/ssm/utils/attach-ssm-policy-cdk/types.js +0 -1
  87. package/aws/cdk/ssm/utils/index.d.ts +0 -1
  88. package/aws/cdk/ssm/utils/index.js +0 -1
  89. package/aws/cdk/utils/compose-cdk-stack/index.d.ts +0 -2
  90. package/aws/cdk/utils/compose-cdk-stack/index.js +0 -2
  91. package/aws/cdk/utils/compose-cdk-stack/types.d.ts +0 -2
  92. package/aws/cdk/utils/compose-cdk-stack/types.js +0 -1
  93. package/aws/cdk/utils/index.d.ts +0 -1
  94. package/aws/cdk/utils/index.js +0 -1
  95. package/aws/common/s3/s3-arn/constants.d.ts +0 -1
  96. package/aws/common/s3/s3-arn/constants.js +0 -1
  97. package/aws/common/s3/s3-arn/utils/compose-s3-arn/index.d.ts +0 -2
  98. package/aws/common/s3/s3-arn/utils/compose-s3-arn/index.js +0 -2
  99. package/aws/common/s3/s3-arn/utils/compose-s3-arn/types.d.ts +0 -1
  100. package/aws/common/s3/s3-arn/utils/compose-s3-arn/types.js +0 -1
  101. package/aws/common/s3/s3-arn/utils/index.d.ts +0 -1
  102. package/aws/common/s3/s3-arn/utils/index.js +0 -1
  103. package/aws/common/s3/s3-url/index.d.ts +0 -2
  104. package/aws/common/s3/s3-url/index.js +0 -2
  105. package/aws/common/s3/s3-url/utils/compose-s3-url/types.js +0 -1
  106. package/aws/common/sqs/index.d.ts +0 -3
  107. package/aws/common/sqs/index.js +0 -3
  108. package/aws/common/sqs/queue/index.d.ts +0 -1
  109. package/aws/common/sqs/queue/index.js +0 -1
  110. package/aws/common/sqs/queue/queue-name/constants.d.ts +0 -1
  111. package/aws/common/sqs/queue/queue-name/constants.js +0 -6
  112. package/aws/common/sqs/queue/queue-name/domains.d.ts +0 -2
  113. package/aws/common/sqs/queue/queue-name/domains.js +0 -1
  114. package/aws/common/sqs/queue/queue-name/index.d.ts +0 -2
  115. package/aws/common/sqs/queue/queue-name/index.js +0 -2
  116. package/aws/common/sqs/sqs-arn/constants.d.ts +0 -1
  117. package/aws/common/sqs/sqs-arn/constants.js +0 -3
  118. package/aws/common/sqs/sqs-arn/index.d.ts +0 -2
  119. package/aws/common/sqs/sqs-arn/index.js +0 -2
  120. package/aws/common/sqs/sqs-arn/utils/compose-sqs-arn/index.d.ts +0 -2
  121. package/aws/common/sqs/sqs-arn/utils/compose-sqs-arn/index.js +0 -2
  122. package/aws/common/sqs/sqs-arn/utils/compose-sqs-arn/types.d.ts +0 -2
  123. package/aws/common/sqs/sqs-arn/utils/compose-sqs-arn/types.js +0 -1
  124. package/aws/common/sqs/sqs-arn/utils/index.d.ts +0 -1
  125. package/aws/common/sqs/sqs-arn/utils/index.js +0 -1
  126. package/aws/common/sqs/sqs-url/constants.d.ts +0 -1
  127. package/aws/common/sqs/sqs-url/constants.js +0 -2
  128. package/aws/common/sqs/sqs-url/index.d.ts +0 -2
  129. package/aws/common/sqs/sqs-url/index.js +0 -2
  130. package/aws/common/sqs/sqs-url/utils/compose-sqs-url/index.d.ts +0 -2
  131. package/aws/common/sqs/sqs-url/utils/compose-sqs-url/index.js +0 -2
  132. package/aws/common/sqs/sqs-url/utils/compose-sqs-url/types.d.ts +0 -3
  133. package/aws/common/sqs/sqs-url/utils/compose-sqs-url/types.js +0 -1
  134. package/aws/common/sqs/sqs-url/utils/index.d.ts +0 -1
  135. package/aws/common/sqs/sqs-url/utils/index.js +0 -1
  136. package/aws/common/ssm/index.d.ts +0 -1
  137. package/aws/common/ssm/index.js +0 -1
  138. package/aws/common/ssm/ssm-arn/constants.d.ts +0 -1
  139. package/aws/common/ssm/ssm-arn/constants.js +0 -3
  140. package/aws/common/ssm/ssm-arn/index.d.ts +0 -2
  141. package/aws/common/ssm/ssm-arn/index.js +0 -2
  142. package/aws/common/ssm/ssm-arn/utils/compose-ssm-arn/index.d.ts +0 -2
  143. package/aws/common/ssm/ssm-arn/utils/compose-ssm-arn/index.js +0 -2
  144. package/aws/common/ssm/ssm-arn/utils/compose-ssm-arn/types.d.ts +0 -1
  145. package/aws/common/ssm/ssm-arn/utils/compose-ssm-arn/types.js +0 -1
  146. package/aws/common/ssm/ssm-arn/utils/index.d.ts +0 -1
  147. package/aws/common/ssm/ssm-arn/utils/index.js +0 -1
  148. package/aws/sdk/ec2/index.d.ts +0 -1
  149. package/aws/sdk/ec2/index.js +0 -1
  150. package/aws/sdk/ec2/utils/get-instance-public-ip-sdk/index.d.ts +0 -2
  151. package/aws/sdk/ec2/utils/get-instance-public-ip-sdk/index.js +0 -51
  152. package/aws/sdk/ec2/utils/get-instance-public-ip-sdk/type.d.ts +0 -2
  153. package/aws/sdk/ec2/utils/get-instance-public-ip-sdk/type.js +0 -1
  154. package/aws/sdk/ec2/utils/index.d.ts +0 -1
  155. package/aws/sdk/ec2/utils/index.js +0 -1
  156. package/aws/sdk/index.d.ts +0 -3
  157. package/aws/sdk/index.js +0 -3
  158. package/aws/sdk/route53/index.d.ts +0 -1
  159. package/aws/sdk/route53/index.js +0 -1
  160. package/aws/sdk/route53/utils/add-route53-a-record-sdk/index.d.ts +0 -2
  161. package/aws/sdk/route53/utils/add-route53-a-record-sdk/index.js +0 -35
  162. package/aws/sdk/route53/utils/add-route53-a-record-sdk/type.d.ts +0 -6
  163. package/aws/sdk/route53/utils/add-route53-a-record-sdk/type.js +0 -1
  164. package/aws/sdk/route53/utils/get-hosted-zone-id-sdk/index.d.ts +0 -2
  165. package/aws/sdk/route53/utils/get-hosted-zone-id-sdk/index.js +0 -33
  166. package/aws/sdk/route53/utils/get-hosted-zone-id-sdk/type.d.ts +0 -2
  167. package/aws/sdk/route53/utils/get-hosted-zone-id-sdk/type.js +0 -1
  168. package/aws/sdk/route53/utils/index.d.ts +0 -2
  169. package/aws/sdk/route53/utils/index.js +0 -2
  170. package/aws/sdk/sqs/index.d.ts +0 -2
  171. package/aws/sdk/sqs/index.js +0 -2
  172. package/aws/sdk/sqs/utils/get-sqs-client/index.d.ts +0 -2
  173. package/aws/sdk/sqs/utils/get-sqs-client/index.js +0 -8
  174. package/aws/sdk/sqs/utils/get-sqs-client/type.d.ts +0 -3
  175. package/aws/sdk/sqs/utils/get-sqs-client/type.js +0 -1
  176. package/aws/sdk/sqs/utils/index.d.ts +0 -1
  177. package/aws/sdk/sqs/utils/index.js +0 -1
  178. package/aws/sdk/sqs/workers/index.d.ts +0 -2
  179. package/aws/sdk/sqs/workers/index.js +0 -31
  180. package/aws/sdk/sqs/workers/type.d.ts +0 -9
  181. package/aws/sdk/sqs/workers/type.js +0 -1
  182. package/common/background-image/config.d.ts +0 -7
  183. package/common/background-image/config.js +0 -8
  184. package/common/background-image/domain.d.ts +0 -1
  185. package/common/background-image/domain.js +0 -1
  186. package/common/background-image/index.d.ts +0 -2
  187. package/common/background-image/index.js +0 -2
  188. package/common/styles/index.d.ts +0 -1
  189. package/common/styles/index.js +0 -1
  190. package/common/styles/screen/index.d.ts +0 -2
  191. package/common/styles/screen/index.js +0 -2
  192. package/common/styles/screen/screen/configs.d.ts +0 -2
  193. package/common/styles/screen/screen/configs.js +0 -11
  194. package/common/styles/screen/screen/domains.d.ts +0 -3
  195. package/common/styles/screen/screen/domains.js +0 -1
  196. package/common/styles/screen/screen/index.d.ts +0 -3
  197. package/common/styles/screen/screen/index.js +0 -3
  198. package/common/styles/screen/screen/utils/get-screen-by-width/index.d.ts +0 -2
  199. package/common/styles/screen/screen/utils/get-screen-by-width/index.js +0 -15
  200. package/common/styles/screen/screen/utils/get-screen-by-width/type.d.ts +0 -2
  201. package/common/styles/screen/screen/utils/get-screen-by-width/type.js +0 -1
  202. package/common/styles/screen/screen/utils/index.d.ts +0 -1
  203. package/common/styles/screen/screen/utils/index.js +0 -1
  204. package/common/styles/screen/screen-width/configs.d.ts +0 -2
  205. package/common/styles/screen/screen-width/configs.js +0 -53
  206. package/common/styles/screen/screen-width/domains.d.ts +0 -7
  207. package/common/styles/screen/screen-width/domains.js +0 -1
  208. package/common/styles/screen/screen-width/index.d.ts +0 -3
  209. package/common/styles/screen/screen-width/index.js +0 -3
  210. package/common/styles/screen/screen-width/utils/compose-screen-widths/index.d.ts +0 -2
  211. package/common/styles/screen/screen-width/utils/compose-screen-widths/index.js +0 -14
  212. package/common/styles/screen/screen-width/utils/compose-screen-widths/type.d.ts +0 -2
  213. package/common/styles/screen/screen-width/utils/compose-screen-widths/type.js +0 -1
  214. package/common/styles/screen/screen-width/utils/index.d.ts +0 -1
  215. package/common/styles/screen/screen-width/utils/index.js +0 -1
  216. /package/aws/{common/account-id → account-id}/constants.d.ts +0 -0
  217. /package/aws/{common/account-id → account-id}/constants.js +0 -0
  218. /package/aws/{common/account-id → account-id}/index.d.ts +0 -0
  219. /package/aws/{common/account-id → account-id}/index.js +0 -0
  220. /package/aws/{common/region → region}/constants.d.ts +0 -0
  221. /package/aws/{common/region → region}/constants.js +0 -0
  222. /package/aws/{common/region → region}/defaults.d.ts +0 -0
  223. /package/aws/{common/region → region}/defaults.js +0 -0
  224. /package/aws/{common/region → region}/domains.d.ts +0 -0
  225. /package/aws/{common/region → region}/domains.js +0 -0
  226. /package/aws/{common/region → region}/index.d.ts +0 -0
  227. /package/aws/{common/region → region}/index.js +0 -0
  228. /package/aws/{common/s3 → s3}/s3-url/constants.d.ts +0 -0
  229. /package/aws/{common/s3 → s3}/s3-url/constants.js +0 -0
  230. /package/aws/{common/s3/s3-arn → s3/s3-url}/index.d.ts +0 -0
  231. /package/aws/{common/s3/s3-arn → s3/s3-url}/index.js +0 -0
  232. /package/aws/{common/s3 → s3}/s3-url/utils/compose-s3-url/index.d.ts +0 -0
  233. /package/aws/{common/s3 → s3}/s3-url/utils/compose-s3-url/index.js +0 -0
  234. /package/aws/{common/s3 → s3}/s3-url/utils/compose-s3-url/types.d.ts +0 -0
  235. /package/aws/{cdk/ec2/utils/add-security-group-ingress-rule-cdk → s3/s3-url/utils/compose-s3-url}/types.js +0 -0
  236. /package/aws/{common/s3 → s3}/s3-url/utils/index.d.ts +0 -0
  237. /package/aws/{common/s3 → s3}/s3-url/utils/index.js +0 -0
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- export * from './add-security-group-ingress-rule-cdk/index.js';
2
- export * from './create-ec2-instance-cdk/index.js';
3
- export * from './create-security-group-cdk/index.js';
4
- export * from './create-vpc-cdk/index.js';
@@ -1,4 +0,0 @@
1
- export * from './add-security-group-ingress-rule-cdk/index.js';
2
- export * from './create-ec2-instance-cdk/index.js';
3
- export * from './create-security-group-cdk/index.js';
4
- export * from './create-vpc-cdk/index.js';
@@ -1,7 +0,0 @@
1
- export * from './ec2/index.js';
2
- export * from './lambda/index.js';
3
- export * from './s3/index.js';
4
- export * from './s3-deployment/index.js';
5
- export * from './sqs/index.js';
6
- export * from './ssm/index.js';
7
- export * from './utils/index.js';
package/aws/cdk/index.js DELETED
@@ -1,7 +0,0 @@
1
- export * from './ec2/index.js';
2
- export * from './lambda/index.js';
3
- export * from './s3/index.js';
4
- export * from './s3-deployment/index.js';
5
- export * from './sqs/index.js';
6
- export * from './ssm/index.js';
7
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { AttachSqsToLambdaCdk } from './types.js';
2
- export declare const attachSqsToLambdaCdk: AttachSqsToLambdaCdk;
@@ -1,25 +0,0 @@
1
- import * as sqs from 'aws-cdk-lib/aws-sqs';
2
- import * as lambdaEventSources from 'aws-cdk-lib/aws-lambda-event-sources';
3
- export const attachSqsToLambdaCdk = (stack, lambda, queueName, options) => {
4
- let deadLetterQueue;
5
- if (options) {
6
- const { dlq: dlqOptions } = options;
7
- if (dlqOptions) {
8
- const queue = new sqs.Queue(stack, `dlq-${queueName}`, {
9
- queueName: `${queueName}-dlq`,
10
- });
11
- deadLetterQueue = {
12
- queue,
13
- maxReceiveCount: dlqOptions.maxReceiveCount,
14
- };
15
- }
16
- }
17
- const queue = new sqs.Queue(stack, `queue-${queueName}`, {
18
- queueName,
19
- deadLetterQueue,
20
- });
21
- const eventSource = new lambdaEventSources.SqsEventSource(queue, {
22
- reportBatchItemFailures: true,
23
- });
24
- lambda.addEventSource(eventSource);
25
- };
@@ -1,8 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as cdk from 'aws-cdk-lib';
3
- import { AwsQueueName } from '../../../../common/index.js';
4
- export type AttachSqsToLambdaCdk = (stack: cdk.Stack, lambda: lambda.Function, queueName: AwsQueueName, options?: {
5
- dlq?: {
6
- maxReceiveCount: number;
7
- };
8
- }) => void;
@@ -1,2 +0,0 @@
1
- import { CreateLambdaCdk } from './types.js';
2
- export declare const createLambdaCdk: CreateLambdaCdk;
@@ -1,37 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as lambda from 'aws-cdk-lib/aws-lambda';
3
- import * as lambdaNodeJS from 'aws-cdk-lib/aws-lambda-nodejs';
4
- export const createLambdaCdk = (stack, name, options) => {
5
- const envs = options?.envs;
6
- const layer = options?.layer;
7
- let environment;
8
- let layers;
9
- if (layer?.layerNames) {
10
- layers = layer?.layerNames.map((layerName) => new lambda.LayerVersion(stack, `lambda-${name}-layer-${layerName}`, {
11
- code: lambda.Code.fromAsset(`./layers/${layerName}`),
12
- compatibleRuntimes: [lambda.Runtime.NODEJS_22_X],
13
- }));
14
- }
15
- if (envs) {
16
- Object.keys(envs).forEach((key) => {
17
- environment = {
18
- ...environment,
19
- [key]: envs[key].toString(),
20
- };
21
- });
22
- }
23
- return new lambdaNodeJS.NodejsFunction(stack, `lambda-${name}`, {
24
- entry: './src/index.ts',
25
- environment,
26
- functionName: name,
27
- handler: 'handler',
28
- layers,
29
- memorySize: 1024,
30
- runtime: lambda.Runtime.NODEJS_22_X,
31
- timeout: cdk.Duration.seconds(30),
32
- bundling: {
33
- format: lambdaNodeJS.OutputFormat.ESM,
34
- externalModules: layer?.layerModules,
35
- },
36
- });
37
- };
@@ -1,10 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as cdk from 'aws-cdk-lib';
3
- import { EnvironmentMode } from '../../../../../common/index.js';
4
- export type CreateLambdaCdk = (stack: cdk.Stack, name: string, options?: {
5
- envs?: Record<string, string | number | boolean | EnvironmentMode>;
6
- layer?: {
7
- layerModules: string[];
8
- layerNames: string[];
9
- };
10
- }) => lambda.Function;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from './attach-sqs-to-lambda-cdk/index.js';
2
- export * from './create-lambda-cdk/index.js';
@@ -1,2 +0,0 @@
1
- export * from './attach-sqs-to-lambda-cdk/index.js';
2
- export * from './create-lambda-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { AttachS3BucketPolicyCdk } from './types.js';
2
- export declare const attachS3BucketPolicyCdk: AttachS3BucketPolicyCdk;
@@ -1,9 +0,0 @@
1
- import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
2
- import { composeS3Arn } from '../../../../common/index.js';
3
- export const attachS3BucketPolicyCdk = (bucketName, instance, actions) => {
4
- instance.addToRolePolicy(new PolicyStatement({
5
- effect: Effect.ALLOW,
6
- actions,
7
- resources: [composeS3Arn(bucketName)],
8
- }));
9
- };
@@ -1,3 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
- export type AttachS3BucketPolicyCdk = (bucketName: string, instance: lambda.Function | ec2.Instance, actions: Array<'s3:DeleteObject' | 's3:PutObject'>) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { CreateS3BucketCdk } from './type.js';
2
- export declare const createS3BucketCdk: CreateS3BucketCdk;
@@ -1,23 +0,0 @@
1
- import * as s3 from 'aws-cdk-lib/aws-s3';
2
- import { RemovalPolicy } from 'aws-cdk-lib';
3
- export const createS3BucketCdk = (stack, bucketName, options) => {
4
- const corsOrigins = options?.corsOrigins;
5
- const bucket = new s3.Bucket(stack, `s3-bucket-${bucketName}`, {
6
- accessControl: s3.BucketAccessControl.BUCKET_OWNER_FULL_CONTROL,
7
- blockPublicAccess: s3.BlockPublicAccess.BLOCK_ACLS_ONLY,
8
- publicReadAccess: true,
9
- autoDeleteObjects: true,
10
- bucketName,
11
- ...(corsOrigins && {
12
- cors: [
13
- {
14
- allowedMethods: [s3.HttpMethods.GET],
15
- allowedOrigins: corsOrigins,
16
- allowedHeaders: ['*'],
17
- },
18
- ],
19
- }),
20
- removalPolicy: RemovalPolicy.DESTROY,
21
- });
22
- return bucket;
23
- };
@@ -1,5 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as s3 from 'aws-cdk-lib/aws-s3';
3
- export type CreateS3BucketCdk = (stack: cdk.Stack, name: string, options?: {
4
- corsOrigins?: string[];
5
- }) => s3.Bucket;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from './attach-s3-bucket-policy-cdk/index.js';
2
- export * from './create-s3-bucket-cdk/index.js';
@@ -1,2 +0,0 @@
1
- export * from './attach-s3-bucket-policy-cdk/index.js';
2
- export * from './create-s3-bucket-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { DeployS3Bucket } from './type.js';
2
- export declare const deployS3Bucket: DeployS3Bucket;
@@ -1,10 +0,0 @@
1
- import * as s3Deployment from 'aws-cdk-lib/aws-s3-deployment';
2
- export const deployS3Bucket = (stack, bucket, options) => {
3
- const { sourceFolder, destinationFolder } = options;
4
- const bucketDeployment = new s3Deployment.BucketDeployment(stack, `s3-bucket-deployment-${bucket.bucketName}`, {
5
- sources: [s3Deployment.Source.asset(sourceFolder)],
6
- destinationBucket: bucket,
7
- ...(destinationFolder && { destinationKeyPrefix: destinationFolder }),
8
- });
9
- return bucketDeployment;
10
- };
@@ -1,7 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- import * as s3 from 'aws-cdk-lib/aws-s3';
3
- import * as s3Deployment from 'aws-cdk-lib/aws-s3-deployment';
4
- export type DeployS3Bucket = (stack: cdk.Stack, bucket: s3.Bucket, options: {
5
- sourceFolder: string;
6
- destinationFolder?: string;
7
- }) => s3Deployment.BucketDeployment;
@@ -1 +0,0 @@
1
- export * from './deploy-s3-bucket-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './deploy-s3-bucket-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { AttachSqsPolicyCdk } from './types.js';
2
- export declare const attachSqsPolicyCdk: AttachSqsPolicyCdk;
@@ -1,9 +0,0 @@
1
- import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
2
- import { composeSqsArn } from '../../../../common/index.js';
3
- export const attachSqsPolicyCdk = (sqsName, instance, actions) => {
4
- instance.addToRolePolicy(new PolicyStatement({
5
- effect: Effect.ALLOW,
6
- actions,
7
- resources: [composeSqsArn(sqsName)],
8
- }));
9
- };
@@ -1,4 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
- import { AwsQueueName } from '../../../../common/index.js';
4
- export type AttachSqsPolicyCdk = (sqsName: AwsQueueName, instance: lambda.Function | ec2.Instance, actions: Array<'sqs:SendMessage'>) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './attach-sqs-policy-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './attach-sqs-policy-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { AttachSsmPolicyCdk } from './types.js';
2
- export declare const attachSsmPolicyCdk: AttachSsmPolicyCdk;
@@ -1,9 +0,0 @@
1
- import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
2
- import { composeSsmArn } from '../../../../common/index.js';
3
- export const attachSsmPolicyCdk = (instance, actions) => {
4
- instance.addToRolePolicy(new PolicyStatement({
5
- effect: Effect.ALLOW,
6
- actions,
7
- resources: [composeSsmArn()],
8
- }));
9
- };
@@ -1,3 +0,0 @@
1
- import * as lambda from 'aws-cdk-lib/aws-lambda';
2
- import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
- export type AttachSsmPolicyCdk = (instance: lambda.Function | ec2.Instance, actions: Array<'ssm:GetParameters'>) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './attach-ssm-policy-cdk/index.js';
@@ -1 +0,0 @@
1
- export * from './attach-ssm-policy-cdk/index.js';
@@ -1,2 +0,0 @@
1
- import { ComposeCdkStack } from './types.js';
2
- export declare const composeCdkStack: ComposeCdkStack;
@@ -1,2 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- export const composeCdkStack = (stackName) => new cdk.Stack(new cdk.App(), stackName);
@@ -1,2 +0,0 @@
1
- import * as cdk from 'aws-cdk-lib';
2
- export type ComposeCdkStack = (stackName: string) => cdk.Stack;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './compose-cdk-stack/index.js';
@@ -1 +0,0 @@
1
- export * from './compose-cdk-stack/index.js';
@@ -1 +0,0 @@
1
- export declare const S3_ARN_TEMPLATE = "arn:aws:s3:::<BUCKET_NAME>/*";
@@ -1 +0,0 @@
1
- export const S3_ARN_TEMPLATE = `arn:aws:s3:::<BUCKET_NAME>/*`;
@@ -1,2 +0,0 @@
1
- import { ComposeS3Arn } from './types.js';
2
- export declare const composeS3Arn: ComposeS3Arn;
@@ -1,2 +0,0 @@
1
- import { S3_ARN_TEMPLATE } from '../../constants.js';
2
- export const composeS3Arn = (bucketName) => S3_ARN_TEMPLATE.replace('<BUCKET_NAME>', bucketName);
@@ -1 +0,0 @@
1
- export type ComposeS3Arn = (bucketName: string) => string;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './compose-s3-arn/index.js';
@@ -1 +0,0 @@
1
- export * from './compose-s3-arn/index.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export * from './queue/index.js';
2
- export * from './sqs-arn/index.js';
3
- export * from './sqs-url/index.js';
@@ -1,3 +0,0 @@
1
- export * from './queue/index.js';
2
- export * from './sqs-arn/index.js';
3
- export * from './sqs-url/index.js';
@@ -1 +0,0 @@
1
- export * from './queue-name/index.js';
@@ -1 +0,0 @@
1
- export * from './queue-name/index.js';
@@ -1 +0,0 @@
1
- export declare const AWS_QUEUE_NAMES: readonly ["cache-service-development", "cache-service-development-dlq", "cache-service-production", "cache-service-production-dlq"];
@@ -1,6 +0,0 @@
1
- export const AWS_QUEUE_NAMES = [
2
- 'cache-service-development',
3
- 'cache-service-development-dlq',
4
- 'cache-service-production',
5
- 'cache-service-production-dlq',
6
- ];
@@ -1,2 +0,0 @@
1
- import { AWS_QUEUE_NAMES } from './constants.js';
2
- export type AwsQueueName = (typeof AWS_QUEUE_NAMES)[number];
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './domains.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './domains.js';
@@ -1 +0,0 @@
1
- export declare const SQS_ARN: string;
@@ -1,3 +0,0 @@
1
- import { AWS_ACCOUNT_ID } from '../../account-id/index.js';
2
- import { DEFAULT_AWS_REGION } from '../../region/index.js';
3
- export const SQS_ARN = `arn:aws:sqs:${DEFAULT_AWS_REGION}:${AWS_ACCOUNT_ID}:<QUEUE_NAME>`;
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { ComposeSqsArn } from './types.js';
2
- export declare const composeSqsArn: ComposeSqsArn;
@@ -1,2 +0,0 @@
1
- import { SQS_ARN } from '../../constants.js';
2
- export const composeSqsArn = (queueName) => SQS_ARN.replace('<QUEUE_NAME>', queueName);
@@ -1,2 +0,0 @@
1
- import { AwsQueueName } from '../../../queue/index.js';
2
- export type ComposeSqsArn = (queueName: AwsQueueName) => string;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './compose-sqs-arn/index.js';
@@ -1 +0,0 @@
1
- export * from './compose-sqs-arn/index.js';
@@ -1 +0,0 @@
1
- export declare const SQS_URL = "https://sqs.<AWS_REGION>.amazonaws.com/430408040574/<QUEUE_NAME>";
@@ -1,2 +0,0 @@
1
- import { AWS_ACCOUNT_ID } from '../../account-id/index.js';
2
- export const SQS_URL = `https://sqs.<AWS_REGION>.amazonaws.com/${AWS_ACCOUNT_ID}/<QUEUE_NAME>`;
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { ComposeSqsUrl } from './types.js';
2
- export declare const composeSqsUrl: ComposeSqsUrl;
@@ -1,2 +0,0 @@
1
- import { SQS_URL } from '../../constants.js';
2
- export const composeSqsUrl = (queueName, awsRegion) => SQS_URL.replace('<AWS_REGION>', awsRegion).replace('<QUEUE_NAME>', queueName);
@@ -1,3 +0,0 @@
1
- import { AwsRegion } from '../../../../region/index.js';
2
- import { AwsQueueName } from '../../../queue/index.js';
3
- export type ComposeSqsUrl = (queueName: AwsQueueName, awsRegion: AwsRegion) => string;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './compose-sqs-url/index.js';
@@ -1 +0,0 @@
1
- export * from './compose-sqs-url/index.js';
@@ -1 +0,0 @@
1
- export * from './ssm-arn/index.js';
@@ -1 +0,0 @@
1
- export * from './ssm-arn/index.js';
@@ -1 +0,0 @@
1
- export declare const SSM_ARN: string;
@@ -1,3 +0,0 @@
1
- import { AWS_ACCOUNT_ID } from '../../account-id/index.js';
2
- import { DEFAULT_AWS_REGION } from '../../region/index.js';
3
- export const SSM_ARN = `arn:aws:ssm:${DEFAULT_AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/*`;
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- export * from './constants.js';
2
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { ComposeSsmArn } from './types.js';
2
- export declare const composeSsmArn: ComposeSsmArn;
@@ -1,2 +0,0 @@
1
- import { SSM_ARN } from '../../constants.js';
2
- export const composeSsmArn = () => SSM_ARN;
@@ -1 +0,0 @@
1
- export type ComposeSsmArn = () => string;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from './compose-ssm-arn/index.js';
@@ -1 +0,0 @@
1
- export * from './compose-ssm-arn/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1 +0,0 @@
1
- export * from './utils/index.js';
@@ -1,2 +0,0 @@
1
- import { GetInstancePublicIpSdk } from './type.js';
2
- export declare const getInstancePublicIpSdk: GetInstancePublicIpSdk;