aws-data-landing-zone 0.3.1 → 0.3.3

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 (49) hide show
  1. package/.jsii +2 -2
  2. package/CHANGELOG.md +58 -0
  3. package/assets/constructs/dlz-macie/lambda/macie-members/index.js +26 -10
  4. package/assets/constructs/dlz-macie/lambda/macie-members/index.js.map +2 -2
  5. package/lib/constructs/account-chatbots/index.js +1 -1
  6. package/lib/constructs/dlz-budget/index.js +1 -1
  7. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  8. package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.js +1 -1
  9. package/lib/constructs/dlz-guardduty/guardduty-member-features.js +1 -1
  10. package/lib/constructs/dlz-guardduty/guardduty-org-config.js +1 -1
  11. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  12. package/lib/constructs/dlz-macie/lambda/macie-members/index.js +37 -11
  13. package/lib/constructs/dlz-macie/macie-delegated-admin.js +1 -1
  14. package/lib/constructs/dlz-macie/macie-members.js +1 -1
  15. package/lib/constructs/dlz-macie/macie-org-config.js +1 -1
  16. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  17. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  18. package/lib/constructs/dlz-stack/index.js +1 -1
  19. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  20. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  21. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  22. package/lib/constructs/iam/iam-account-alias.js +1 -1
  23. package/lib/constructs/iam/iam-password-policy.js +1 -1
  24. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  25. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  26. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  27. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  28. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  29. package/lib/data-landing-zone-client.js +1 -1
  30. package/lib/data-landing-zone.js +1 -1
  31. package/lib/defaults.js +1 -1
  32. package/lib/lib/report/index.js +1 -1
  33. package/lib/scripts/index.js +1 -1
  34. package/lib/stacks/organization/management/management-global-iam-identity-center-stack.js +1 -1
  35. package/lib/stacks/organization/management/management-global-stack.js +1 -1
  36. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  37. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  38. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  39. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  40. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  41. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  42. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  43. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  44. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  45. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  46. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  47. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  48. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  49. package/package.json +1 -1
package/.jsii CHANGED
@@ -21178,6 +21178,6 @@
21178
21178
  "symbolId": "src/stacks/organization/workloads/base/regional-stack:WorkloadRegionalStack"
21179
21179
  }
21180
21180
  },
21181
- "version": "0.3.1",
21182
- "fingerprint": "hZbAQ/MORTv1YVznzinx0KbuSjsOZqN/fR0dE9EWiJw="
21181
+ "version": "0.3.3",
21182
+ "fingerprint": "lclCOBfeTJigDiy18eCfZ9XFehxnwIbAqkT33lC9y0E="
21183
21183
  }
package/CHANGELOG.md CHANGED
@@ -2,6 +2,64 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.3.1] - 2026-04-16
6
+
7
+ ### Chores
8
+
9
+ - Self mutation
10
+
11
+ - Self mutation
12
+
13
+ ### Documentation
14
+
15
+ - Updated README.md with new GuardDuty configuration options
16
+
17
+ ### Features
18
+
19
+ - Release 0.3.0
20
+
21
+ - Introduced GuardDuty constructs for org-wide security setup
22
+
23
+ - **deps:** Introduced AWS Macie constructs for admin and org config
24
+
25
+
26
+ ## [0.2.5] - 2026-04-13
27
+
28
+ ### Features
29
+
30
+ - Introduced Node.js 22 and AWS CDK 2.248.0 updates
31
+
32
+
33
+ ## [0.2.4] - 2026-04-13
34
+
35
+ ### CI/CD
36
+
37
+ - **workflows:** Introduced GitHub Actions for snapshot diff comments
38
+
39
+ - **workflows:** Introduced API compatibility check for backward support
40
+
41
+
42
+ ## [0.2.3] - 2026-04-13
43
+
44
+ ### Chores
45
+
46
+ - **deps:** Upgrade dependencies
47
+
48
+
49
+ ## [0.2.2] - 2026-04-10
50
+
51
+ ### Chores
52
+
53
+ - **deps:** Upgrade dependencies
54
+
55
+
56
+ ## [0.2.1] - 2026-04-09
57
+
58
+ ### Documentation
59
+
60
+ - Documented release 0.2.0 with breaking changes and features
61
+
62
+
5
63
  ## [0.2.0] - 2026-04-09
6
64
 
7
65
  ### ⚠️ Breaking Changes
@@ -27852,7 +27852,7 @@ async function enrollAccounts(accounts) {
27852
27852
  console.log(`Account ${account.accountId} already exists with status: ${existing.relationshipStatus}`);
27853
27853
  continue;
27854
27854
  } catch (error2) {
27855
- if (error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException") {
27855
+ if (error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException" || error2.name === "ValidationException" || error2.__type === "ValidationException") {
27856
27856
  console.log(`Account ${account.accountId} is not a member, creating...`);
27857
27857
  } else {
27858
27858
  throw error2;
@@ -27890,7 +27890,7 @@ async function disenrollAccounts(accountIds) {
27890
27890
  try {
27891
27891
  await macieClient.send(new import_client_macie2.GetMemberCommand({ id: accountId }));
27892
27892
  } catch (error2) {
27893
- if (error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException") {
27893
+ if (error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException" || error2.name === "ValidationException" || error2.__type === "ValidationException") {
27894
27894
  console.log(`Account ${accountId} is not a member, skipping disenrollment`);
27895
27895
  continue;
27896
27896
  }
@@ -27898,15 +27898,31 @@ async function disenrollAccounts(accountIds) {
27898
27898
  }
27899
27899
  console.log(`Disenrolling account ${accountId}...`);
27900
27900
  console.log(`Calling DisassociateMember for ${accountId}...`);
27901
- await macieClient.send(new import_client_macie2.DisassociateMemberCommand({
27902
- id: accountId
27903
- }));
27904
- console.log(`DisassociateMember completed for ${accountId}`);
27901
+ try {
27902
+ await macieClient.send(new import_client_macie2.DisassociateMemberCommand({
27903
+ id: accountId
27904
+ }));
27905
+ console.log(`DisassociateMember completed for ${accountId}`);
27906
+ } catch (error2) {
27907
+ if (error2.name === "ValidationException" || error2.__type === "ValidationException" || error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException") {
27908
+ console.log(`Account ${accountId} is not an associated member, skipping disassociation`);
27909
+ } else {
27910
+ throw error2;
27911
+ }
27912
+ }
27905
27913
  console.log(`Calling DeleteMember for ${accountId}...`);
27906
- await macieClient.send(new import_client_macie2.DeleteMemberCommand({
27907
- id: accountId
27908
- }));
27909
- console.log(`DeleteMember completed for ${accountId}`);
27914
+ try {
27915
+ await macieClient.send(new import_client_macie2.DeleteMemberCommand({
27916
+ id: accountId
27917
+ }));
27918
+ console.log(`DeleteMember completed for ${accountId}`);
27919
+ } catch (error2) {
27920
+ if (error2.name === "ValidationException" || error2.__type === "ValidationException" || error2.name === "ResourceNotFoundException" || error2.__type === "ResourceNotFoundException") {
27921
+ console.log(`Account ${accountId} is not a member, skipping deletion`);
27922
+ } else {
27923
+ throw error2;
27924
+ }
27925
+ }
27910
27926
  }
27911
27927
  }
27912
27928
  var handler = async (event) => {