@go-to-k/cdkd 0.50.3 → 0.50.5

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
@@ -12857,13 +12857,11 @@ var SQSQueueProvider = class {
12857
12857
  if (v !== void 0)
12858
12858
  result[key] = v === "true";
12859
12859
  }
12860
- const str = [
12861
- "KmsMasterKeyId",
12862
- "DeduplicationScope",
12863
- "FifoThroughputLimit"
12864
- ];
12865
- for (const key of str) {
12866
- result[key] = attributes[key] ?? "";
12860
+ result["KmsMasterKeyId"] = attributes["KmsMasterKeyId"] ?? "";
12861
+ const isFifo = attributes["FifoQueue"] === "true";
12862
+ if (isFifo) {
12863
+ result["DeduplicationScope"] = attributes["DeduplicationScope"] ?? "";
12864
+ result["FifoThroughputLimit"] = attributes["FifoThroughputLimit"] ?? "";
12867
12865
  }
12868
12866
  if (attributes["RedrivePolicy"]) {
12869
12867
  try {
@@ -13544,16 +13542,14 @@ var SNSTopicProvider = class {
13544
13542
  if (v !== void 0)
13545
13543
  result[key] = v === "true";
13546
13544
  }
13547
- const str = [
13548
- "DisplayName",
13549
- "KmsMasterKeyId",
13550
- "TracingConfig",
13551
- "SignatureVersion",
13552
- "FifoThroughputScope"
13553
- ];
13545
+ const str = ["DisplayName", "KmsMasterKeyId", "TracingConfig", "SignatureVersion"];
13554
13546
  for (const key of str) {
13555
13547
  result[key] = attrs[key] ?? "";
13556
13548
  }
13549
+ const isFifo = attrs["FifoTopic"] === "true";
13550
+ if (isFifo) {
13551
+ result["FifoThroughputScope"] = attrs["FifoThroughputScope"] ?? "";
13552
+ }
13557
13553
  for (const key of ["ArchivePolicy", "DataProtectionPolicy"]) {
13558
13554
  const v = attrs[key];
13559
13555
  if (v) {
@@ -28836,71 +28832,37 @@ var CognitoUserPoolProvider = class {
28836
28832
  const result = {};
28837
28833
  if (pool.Name !== void 0)
28838
28834
  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;
28835
+ result["AutoVerifiedAttributes"] = pool.AutoVerifiedAttributes ? [...pool.AutoVerifiedAttributes] : [];
28836
+ result["UsernameAttributes"] = pool.UsernameAttributes ? [...pool.UsernameAttributes] : [];
28837
+ result["AliasAttributes"] = pool.AliasAttributes ? [...pool.AliasAttributes] : [];
28838
+ result["Policies"] = pool.Policies ?? {};
28850
28839
  if (pool.SchemaAttributes && pool.SchemaAttributes.length > 0) {
28851
28840
  result["Schema"] = pool.SchemaAttributes;
28852
28841
  }
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
- }
28842
+ result["LambdaConfig"] = pool.LambdaConfig ?? {};
28843
+ result["MfaConfiguration"] = pool.MfaConfiguration ?? "OFF";
28844
+ result["AdminCreateUserConfig"] = pool.AdminCreateUserConfig ?? {};
28845
+ result["AccountRecoverySetting"] = pool.AccountRecoverySetting ?? {};
28846
+ result["UserAttributeUpdateSettings"] = pool.UserAttributeUpdateSettings ?? {};
28847
+ result["DeletionProtection"] = pool.DeletionProtection ?? "INACTIVE";
28848
+ result["EmailConfiguration"] = pool.EmailConfiguration ?? {};
28849
+ result["SmsConfiguration"] = pool.SmsConfiguration ?? {};
28850
+ result["VerificationMessageTemplate"] = pool.VerificationMessageTemplate ?? {};
28851
+ result["UsernameConfiguration"] = pool.UsernameConfiguration ?? {};
28852
+ result["DeviceConfiguration"] = pool.DeviceConfiguration ?? {};
28853
+ result["UserPoolAddOns"] = pool.UserPoolAddOns ?? {};
28854
+ result["EmailVerificationMessage"] = pool.EmailVerificationMessage ?? "";
28855
+ result["EmailVerificationSubject"] = pool.EmailVerificationSubject ?? "";
28856
+ result["SmsAuthenticationMessage"] = pool.SmsAuthenticationMessage ?? "";
28857
+ result["SmsVerificationMessage"] = pool.SmsVerificationMessage ?? "";
28858
+ const userTags = {};
28895
28859
  if (pool.UserPoolTags) {
28896
- const userTags = {};
28897
28860
  for (const [k, v] of Object.entries(pool.UserPoolTags)) {
28898
28861
  if (!k.startsWith("aws:"))
28899
28862
  userTags[k] = v;
28900
28863
  }
28901
- if (Object.keys(userTags).length > 0)
28902
- result["UserPoolTags"] = userTags;
28903
28864
  }
28865
+ result["UserPoolTags"] = userTags;
28904
28866
  return result;
28905
28867
  }
28906
28868
  /**
@@ -42604,7 +42566,7 @@ function reorderArgs(argv) {
42604
42566
  }
42605
42567
  async function main() {
42606
42568
  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");
42569
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.50.5");
42608
42570
  program.addCommand(createBootstrapCommand());
42609
42571
  program.addCommand(createSynthCommand());
42610
42572
  program.addCommand(createListCommand());