@awsless/awsless 0.0.637 → 0.0.639

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.
package/dist/bin.js CHANGED
@@ -1666,7 +1666,7 @@ var RpcSchema = z24.record(
1666
1666
  lock: false
1667
1667
  })),
1668
1668
  z24.object({
1669
- function: FunctionSchema,
1669
+ function: FunctionSchema.describe("The RPC function to execute."),
1670
1670
  lock: z24.boolean().describe(
1671
1671
  [
1672
1672
  "Specify if the function should be locked on the `lockKey` returned from the auth function.",
@@ -1867,8 +1867,8 @@ var AppSchema = z28.object({
1867
1867
  [
1868
1868
  "Configure how your resources are handled when they have to be removed.",
1869
1869
  "",
1870
- "remove: Removes the underlying resource.",
1871
- "retain: Retains resources like S3 stores and DynamoDB tables. Removes everything else."
1870
+ "remove: Removes all underlying resources.",
1871
+ "retain: Retains the following resources: stores, tables, auth, searchs, and caches."
1872
1872
  ].join("\n")
1873
1873
  ),
1874
1874
  // stage: z
@@ -2976,7 +2976,7 @@ var authFeature = defineFeature({
2976
2976
  requireSymbols: props.password.symbols,
2977
2977
  temporaryPasswordValidityDays: toDays3(props.password.temporaryPasswordValidity)
2978
2978
  },
2979
- deletionProtection: ctx.appConfig.protect ? "ACTIVE" : "INACTIVE"
2979
+ deletionProtection: ctx.appConfig.removal === "retain" ? "ACTIVE" : "INACTIVE"
2980
2980
  },
2981
2981
  {
2982
2982
  retainOnDelete: ctx.appConfig.removal === "retain",
@@ -3062,32 +3062,40 @@ var cacheFeature = defineFeature({
3062
3062
  vpcId: ctx.shared.get("vpc", "id"),
3063
3063
  description: name
3064
3064
  });
3065
- const cache = new aws3.elasticache.ServerlessCache(group, "cache", {
3066
- name,
3067
- engine: "valkey",
3068
- dailySnapshotTime: "02:00",
3069
- majorEngineVersion: "8",
3070
- snapshotRetentionLimit: props.snapshotRetentionLimit,
3071
- securityGroupIds: [securityGroup.id],
3072
- subnetIds: ctx.shared.get("vpc", "private-subnets"),
3073
- cacheUsageLimits: [
3074
- {
3075
- dataStorage: props.minStorage || props.maxStorage ? [
3076
- {
3077
- minimum: props.minStorage && toGibibytes(props.minStorage),
3078
- maximum: props.maxStorage && toGibibytes(props.maxStorage),
3079
- unit: "GB"
3080
- }
3081
- ] : [],
3082
- ecpuPerSecond: props.minECPU || props.maxECPU ? [
3083
- {
3084
- minimum: props.minECPU,
3085
- maximum: props.maxECPU
3086
- }
3087
- ] : []
3088
- }
3089
- ]
3090
- });
3065
+ const cache = new aws3.elasticache.ServerlessCache(
3066
+ group,
3067
+ "cache",
3068
+ {
3069
+ name,
3070
+ engine: "valkey",
3071
+ dailySnapshotTime: "02:00",
3072
+ majorEngineVersion: "8",
3073
+ snapshotRetentionLimit: props.snapshotRetentionLimit,
3074
+ securityGroupIds: [securityGroup.id],
3075
+ subnetIds: ctx.shared.get("vpc", "private-subnets"),
3076
+ cacheUsageLimits: [
3077
+ {
3078
+ dataStorage: props.minStorage || props.maxStorage ? [
3079
+ {
3080
+ minimum: props.minStorage && toGibibytes(props.minStorage),
3081
+ maximum: props.maxStorage && toGibibytes(props.maxStorage),
3082
+ unit: "GB"
3083
+ }
3084
+ ] : [],
3085
+ ecpuPerSecond: props.minECPU || props.maxECPU ? [
3086
+ {
3087
+ minimum: props.minECPU,
3088
+ maximum: props.maxECPU
3089
+ }
3090
+ ] : []
3091
+ }
3092
+ ]
3093
+ },
3094
+ {
3095
+ retainOnDelete: ctx.appConfig.removal === "retain",
3096
+ import: ctx.import ? name : void 0
3097
+ }
3098
+ );
3091
3099
  const masterHost = cache.endpoint.pipe((v) => v.at(0).address);
3092
3100
  const masterPort = cache.endpoint.pipe((v) => v.at(0).port);
3093
3101
  new aws3.vpc.SecurityGroupIngressRule(group, "master-rule-ip-v4", {
@@ -5361,8 +5369,8 @@ var searchFeature = defineFeature({
5361
5369
  })
5362
5370
  },
5363
5371
  {
5364
- import: ctx.import ? name : void 0,
5365
- retainOnDelete: ctx.appConfig.removal === "retain"
5372
+ retainOnDelete: ctx.appConfig.removal === "retain",
5373
+ import: ctx.import ? name : void 0
5366
5374
  }
5367
5375
  );
5368
5376
  ctx.addEnv(`SEARCH_${constantCase9(ctx.stack.name)}_${constantCase9(id)}_DOMAIN`, openSearch.endpoint);
@@ -728,7 +728,7 @@ var RpcSchema = z20.record(
728
728
  lock: false
729
729
  })),
730
730
  z20.object({
731
- function: FunctionSchema,
731
+ function: FunctionSchema.describe("The RPC function to execute."),
732
732
  lock: z20.boolean().describe(
733
733
  [
734
734
  "Specify if the function should be locked on the `lockKey` returned from the auth function.",
@@ -929,8 +929,8 @@ var AppSchema = z24.object({
929
929
  [
930
930
  "Configure how your resources are handled when they have to be removed.",
931
931
  "",
932
- "remove: Removes the underlying resource.",
933
- "retain: Retains resources like S3 stores and DynamoDB tables. Removes everything else."
932
+ "remove: Removes all underlying resources.",
933
+ "retain: Retains the following resources: stores, tables, auth, searchs, and caches."
934
934
  ].join("\n")
935
935
  ),
936
936
  // stage: z
Binary file
Binary file
@@ -1 +1 @@
1
- 6fed4f7f5bc384717991b23b9380720e9807a367
1
+ e88dbfaefba22668be356305b684c743e037b04a
Binary file