@go-to-k/cdkd 0.50.3 → 0.50.4

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/cli.js CHANGED
@@ -28836,71 +28836,37 @@ var CognitoUserPoolProvider = class {
28836
28836
  const result = {};
28837
28837
  if (pool.Name !== void 0)
28838
28838
  result["UserPoolName"] = pool.Name;
28839
- if (pool.AutoVerifiedAttributes && pool.AutoVerifiedAttributes.length > 0) {
28840
- result["AutoVerifiedAttributes"] = [...pool.AutoVerifiedAttributes];
28841
- }
28842
- if (pool.UsernameAttributes && pool.UsernameAttributes.length > 0) {
28843
- result["UsernameAttributes"] = [...pool.UsernameAttributes];
28844
- }
28845
- if (pool.AliasAttributes && pool.AliasAttributes.length > 0) {
28846
- result["AliasAttributes"] = [...pool.AliasAttributes];
28847
- }
28848
- if (pool.Policies)
28849
- result["Policies"] = pool.Policies;
28839
+ result["AutoVerifiedAttributes"] = pool.AutoVerifiedAttributes ? [...pool.AutoVerifiedAttributes] : [];
28840
+ result["UsernameAttributes"] = pool.UsernameAttributes ? [...pool.UsernameAttributes] : [];
28841
+ result["AliasAttributes"] = pool.AliasAttributes ? [...pool.AliasAttributes] : [];
28842
+ result["Policies"] = pool.Policies ?? {};
28850
28843
  if (pool.SchemaAttributes && pool.SchemaAttributes.length > 0) {
28851
28844
  result["Schema"] = pool.SchemaAttributes;
28852
28845
  }
28853
- if (pool.LambdaConfig && Object.keys(pool.LambdaConfig).length > 0) {
28854
- result["LambdaConfig"] = pool.LambdaConfig;
28855
- }
28856
- if (pool.MfaConfiguration !== void 0)
28857
- result["MfaConfiguration"] = pool.MfaConfiguration;
28858
- if (pool.AdminCreateUserConfig)
28859
- result["AdminCreateUserConfig"] = pool.AdminCreateUserConfig;
28860
- if (pool.AccountRecoverySetting) {
28861
- result["AccountRecoverySetting"] = pool.AccountRecoverySetting;
28862
- }
28863
- if (pool.UserAttributeUpdateSettings) {
28864
- result["UserAttributeUpdateSettings"] = pool.UserAttributeUpdateSettings;
28865
- }
28866
- if (pool.DeletionProtection !== void 0) {
28867
- result["DeletionProtection"] = pool.DeletionProtection;
28868
- }
28869
- if (pool.EmailConfiguration)
28870
- result["EmailConfiguration"] = pool.EmailConfiguration;
28871
- if (pool.SmsConfiguration)
28872
- result["SmsConfiguration"] = pool.SmsConfiguration;
28873
- if (pool.VerificationMessageTemplate) {
28874
- result["VerificationMessageTemplate"] = pool.VerificationMessageTemplate;
28875
- }
28876
- if (pool.UsernameConfiguration) {
28877
- result["UsernameConfiguration"] = pool.UsernameConfiguration;
28878
- }
28879
- if (pool.DeviceConfiguration)
28880
- result["DeviceConfiguration"] = pool.DeviceConfiguration;
28881
- if (pool.UserPoolAddOns)
28882
- result["UserPoolAddOns"] = pool.UserPoolAddOns;
28883
- if (pool.EmailVerificationMessage !== void 0) {
28884
- result["EmailVerificationMessage"] = pool.EmailVerificationMessage;
28885
- }
28886
- if (pool.EmailVerificationSubject !== void 0) {
28887
- result["EmailVerificationSubject"] = pool.EmailVerificationSubject;
28888
- }
28889
- if (pool.SmsAuthenticationMessage !== void 0) {
28890
- result["SmsAuthenticationMessage"] = pool.SmsAuthenticationMessage;
28891
- }
28892
- if (pool.SmsVerificationMessage !== void 0) {
28893
- result["SmsVerificationMessage"] = pool.SmsVerificationMessage;
28894
- }
28846
+ result["LambdaConfig"] = pool.LambdaConfig ?? {};
28847
+ result["MfaConfiguration"] = pool.MfaConfiguration ?? "OFF";
28848
+ result["AdminCreateUserConfig"] = pool.AdminCreateUserConfig ?? {};
28849
+ result["AccountRecoverySetting"] = pool.AccountRecoverySetting ?? {};
28850
+ result["UserAttributeUpdateSettings"] = pool.UserAttributeUpdateSettings ?? {};
28851
+ result["DeletionProtection"] = pool.DeletionProtection ?? "INACTIVE";
28852
+ result["EmailConfiguration"] = pool.EmailConfiguration ?? {};
28853
+ result["SmsConfiguration"] = pool.SmsConfiguration ?? {};
28854
+ result["VerificationMessageTemplate"] = pool.VerificationMessageTemplate ?? {};
28855
+ result["UsernameConfiguration"] = pool.UsernameConfiguration ?? {};
28856
+ result["DeviceConfiguration"] = pool.DeviceConfiguration ?? {};
28857
+ result["UserPoolAddOns"] = pool.UserPoolAddOns ?? {};
28858
+ result["EmailVerificationMessage"] = pool.EmailVerificationMessage ?? "";
28859
+ result["EmailVerificationSubject"] = pool.EmailVerificationSubject ?? "";
28860
+ result["SmsAuthenticationMessage"] = pool.SmsAuthenticationMessage ?? "";
28861
+ result["SmsVerificationMessage"] = pool.SmsVerificationMessage ?? "";
28862
+ const userTags = {};
28895
28863
  if (pool.UserPoolTags) {
28896
- const userTags = {};
28897
28864
  for (const [k, v] of Object.entries(pool.UserPoolTags)) {
28898
28865
  if (!k.startsWith("aws:"))
28899
28866
  userTags[k] = v;
28900
28867
  }
28901
- if (Object.keys(userTags).length > 0)
28902
- result["UserPoolTags"] = userTags;
28903
28868
  }
28869
+ result["UserPoolTags"] = userTags;
28904
28870
  return result;
28905
28871
  }
28906
28872
  /**
@@ -42604,7 +42570,7 @@ function reorderArgs(argv) {
42604
42570
  }
42605
42571
  async function main() {
42606
42572
  const program = new Command14();
42607
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.3");
42573
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.4");
42608
42574
  program.addCommand(createBootstrapCommand());
42609
42575
  program.addCommand(createSynthCommand());
42610
42576
  program.addCommand(createListCommand());