@go-to-k/cdkd 0.21.0 → 0.22.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.
Binary file
package/dist/index.js CHANGED
@@ -7096,6 +7096,27 @@ var CustomResourceProvider = class _CustomResourceProvider {
7096
7096
  sleep(ms) {
7097
7097
  return new Promise((resolve4) => setTimeout(resolve4, ms));
7098
7098
  }
7099
+ /**
7100
+ * Adopt an existing custom resource into cdkd state.
7101
+ *
7102
+ * **Explicit override only.** A custom resource's identity is the
7103
+ * `PhysicalResourceId` returned by its user-supplied Lambda handler at
7104
+ * Create time — there is no AWS-side resource cdkd can introspect, no
7105
+ * tag API, and no `aws:cdk:path` to look up by. cdkd cannot rediscover
7106
+ * a custom resource without invoking the handler, which would mutate
7107
+ * state.
7108
+ *
7109
+ * Users adopting an existing custom resource should pass
7110
+ * `--resource <logicalId>=<physicalResourceId>` — the same value the
7111
+ * handler returned originally.
7112
+ */
7113
+ // eslint-disable-next-line @typescript-eslint/require-await -- explicit-override-only intentionally has no AWS calls
7114
+ async import(input) {
7115
+ if (input.knownPhysicalId) {
7116
+ return { physicalId: input.knownPhysicalId, attributes: {} };
7117
+ }
7118
+ return null;
7119
+ }
7099
7120
  };
7100
7121
 
7101
7122
  // src/provisioning/provider-registry.ts