aws-data-landing-zone 0.6.2 → 0.6.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 (89) hide show
  1. package/.compatignore +6 -0
  2. package/.jsii +289 -123
  3. package/API.md +218 -52
  4. package/docs/src/components/ClarityTracking.astro +42 -0
  5. package/docs/src/components/CookieConsent.astro +165 -0
  6. package/docs/src/components/Footer.astro +7 -0
  7. package/docs/src/content/docs/reference/api.md +218 -52
  8. package/docs/src/pages/index.astro +7 -0
  9. package/lib/constructs/account-chatbots/index.js +1 -1
  10. package/lib/constructs/dlz-account-budgets/index.js +1 -1
  11. package/lib/constructs/dlz-budget/index.js +1 -1
  12. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  13. package/lib/constructs/dlz-cost-anomaly-detection/index.js +1 -1
  14. package/lib/constructs/dlz-data-exports/dlz-data-export.js +1 -1
  15. package/lib/constructs/dlz-data-exports/dlz-data-exports-athena.js +1 -1
  16. package/lib/constructs/dlz-data-exports/dlz-data-exports-data-plane.js +1 -1
  17. package/lib/constructs/dlz-data-exports/dlz-data-exports-tag-activation.js +1 -1
  18. package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.js +1 -1
  19. package/lib/constructs/dlz-guardduty/guardduty-member-features.js +1 -1
  20. package/lib/constructs/dlz-guardduty/guardduty-org-config.js +1 -1
  21. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  22. package/lib/constructs/dlz-macie/macie-delegated-admin.js +1 -1
  23. package/lib/constructs/dlz-macie/macie-members.js +1 -1
  24. package/lib/constructs/dlz-macie/macie-org-config.js +1 -1
  25. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  26. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  27. package/lib/constructs/dlz-stack/index.js +1 -1
  28. package/lib/constructs/dlz-tag-compliance-alert/index.d.ts +38 -14
  29. package/lib/constructs/dlz-tag-compliance-alert/index.js +76 -17
  30. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  31. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  32. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  33. package/lib/constructs/iam/iam-account-alias.js +1 -1
  34. package/lib/constructs/iam/iam-password-policy.js +1 -1
  35. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  36. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  37. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  38. package/lib/constructs/organization-policies/scp-merge.js +2 -2
  39. package/lib/constructs/organization-policies/scp-presets/control-tower-exemption.js +1 -1
  40. package/lib/constructs/organization-policies/scp-presets/deny-actions-outside-regions.js +1 -1
  41. package/lib/constructs/organization-policies/scp-presets/deny-backup-vault-lock.js +1 -1
  42. package/lib/constructs/organization-policies/scp-presets/deny-bedrock-provisioned-throughput.js +1 -1
  43. package/lib/constructs/organization-policies/scp-presets/deny-cfn-stacks-without-standard-tags.js +1 -1
  44. package/lib/constructs/organization-policies/scp-presets/deny-dedicated-infra-and-subscriptions.js +1 -1
  45. package/lib/constructs/organization-policies/scp-presets/deny-disabling-security-services.js +1 -1
  46. package/lib/constructs/organization-policies/scp-presets/deny-domain-registrations.js +1 -1
  47. package/lib/constructs/organization-policies/scp-presets/deny-glacier-vault-lock.js +1 -1
  48. package/lib/constructs/organization-policies/scp-presets/deny-iam-without-permissions-boundary.js +1 -1
  49. package/lib/constructs/organization-policies/scp-presets/deny-leaving-organization.js +1 -1
  50. package/lib/constructs/organization-policies/scp-presets/deny-marketplace-subscriptions.js +1 -1
  51. package/lib/constructs/organization-policies/scp-presets/deny-reserved-capacity-purchases.js +1 -1
  52. package/lib/constructs/organization-policies/scp-presets/deny-resource-creation-without-standard-tags.js +1 -1
  53. package/lib/constructs/organization-policies/scp-presets/deny-root-credentials-management-in-member-accounts.js +1 -1
  54. package/lib/constructs/organization-policies/scp-presets/deny-root-user-actions.js +1 -1
  55. package/lib/constructs/organization-policies/scp-presets/deny-s3-object-lock-and-retention.js +1 -1
  56. package/lib/constructs/organization-policies/scp-presets/deny-s3-public-access-bypass.js +1 -1
  57. package/lib/constructs/organization-policies/scp-presets/deny-savings-plan-purchases.js +1 -1
  58. package/lib/constructs/organization-policies/scp-presets/deny-service-actions.js +1 -1
  59. package/lib/constructs/organization-policies/scp-presets/finops-account-baseline.js +1 -1
  60. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  61. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  62. package/lib/data-landing-zone-client.js +1 -1
  63. package/lib/data-landing-zone-types.d.ts +10 -6
  64. package/lib/data-landing-zone-types.js +1 -1
  65. package/lib/data-landing-zone.js +1 -1
  66. package/lib/defaults.js +1 -1
  67. package/lib/lib/report/index.d.ts +2 -1
  68. package/lib/lib/report/index.js +3 -2
  69. package/lib/scripts/index.js +1 -1
  70. package/lib/stacks/organization/management/management-data-exports-stack.js +1 -1
  71. package/lib/stacks/organization/management/management-global-iam-identity-center-stack.js +1 -1
  72. package/lib/stacks/organization/management/management-global-stack.d.ts +7 -0
  73. package/lib/stacks/organization/management/management-global-stack.js +23 -2
  74. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  75. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  76. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  77. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  78. package/lib/stacks/organization/shared-services/finops/global-stack.js +1 -1
  79. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  80. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  81. package/lib/stacks/organization/workloads/base/shared.js +7 -7
  82. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  83. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  84. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  85. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  86. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  87. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  88. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  89. package/package.json +1 -1
package/API.md CHANGED
@@ -21590,7 +21590,7 @@ const dataLandingZoneProps: DataLandingZoneProps = { ... }
21590
21590
  | <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.saveReport">saveReport</a></code> | <code>boolean</code> | Save the raw report items and the reports grouped by account to a `./.dlz-reports` folder. |
21591
21591
  | <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.scpBaselineStatements">scpBaselineStatements</a></code> | <code>aws-cdk-lib.aws_iam.PolicyStatement[]</code> | Replaces the deny-services portion of the org SCP baseline applied to every workload account. |
21592
21592
  | <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.scpStatementsByAccountType">scpStatementsByAccountType</a></code> | <code><a href="#aws-data-landing-zone.ScpStatementsByAccountType">ScpStatementsByAccountType</a></code> | Per-`DlzAccountType` SCP statements layered between the org baseline and per-account extras. |
21593
- | <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.tagComplianceAlerts">tagComplianceAlerts</a></code> | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertSubscribers">DlzTagComplianceAlertSubscribers</a></code> | Email alerts when AWS Config finds resources missing their mandatory tags — the detective layer that complements the tag-on-create SCP. |
21593
+ | <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.tagComplianceCentralAlert">tagComplianceCentralAlert</a></code> | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers">DlzTagComplianceCentralAlertSubscribers</a></code> | Centralized, org-wide alerting for AWS Config tag non-compliance. |
21594
21594
 
21595
21595
  ---
21596
21596
 
@@ -21854,19 +21854,24 @@ Additive only.
21854
21854
 
21855
21855
  ---
21856
21856
 
21857
- ##### `tagComplianceAlerts`<sup>Optional</sup> <a name="tagComplianceAlerts" id="aws-data-landing-zone.DataLandingZoneProps.property.tagComplianceAlerts"></a>
21857
+ ##### `tagComplianceCentralAlert`<sup>Optional</sup> <a name="tagComplianceCentralAlert" id="aws-data-landing-zone.DataLandingZoneProps.property.tagComplianceCentralAlert"></a>
21858
21858
 
21859
21859
  ```typescript
21860
- public readonly tagComplianceAlerts: DlzTagComplianceAlertSubscribers;
21860
+ public readonly tagComplianceCentralAlert: DlzTagComplianceCentralAlertSubscribers;
21861
21861
  ```
21862
21862
 
21863
- - *Type:* <a href="#aws-data-landing-zone.DlzTagComplianceAlertSubscribers">DlzTagComplianceAlertSubscribers</a>
21864
- - *Default:* no tag-compliance alerts
21863
+ - *Type:* <a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers">DlzTagComplianceCentralAlertSubscribers</a>
21864
+ - *Default:* no centralized tag-compliance alert
21865
21865
 
21866
- Email alerts when AWS Config finds resources missing their mandatory tags — the detective layer that complements the tag-on-create SCP.
21866
+ Centralized, org-wide alerting for AWS Config tag non-compliance.
21867
21867
 
21868
- Wired per region alongside the built-in
21869
- required-tags Config rule.
21868
+ When set, every workload
21869
+ account × region forwards its NON_COMPLIANT findings to a single EventBridge bus in the
21870
+ management account, which fans out to Slack (via Chatbot) and/or email — one topic, one place,
21871
+ modeled on budget alerts.
21872
+
21873
+ The Config required-tags rule still runs per account × region (detection is local); only the
21874
+ alerting is centralized.
21870
21875
 
21871
21876
  ---
21872
21877
 
@@ -25679,27 +25684,27 @@ Specifying an empty array or undefined still enforces the tag presence but does
25679
25684
 
25680
25685
  ---
25681
25686
 
25682
- ### DlzTagComplianceAlertProps <a name="DlzTagComplianceAlertProps" id="aws-data-landing-zone.DlzTagComplianceAlertProps"></a>
25687
+ ### DlzTagComplianceCentralAlertProps <a name="DlzTagComplianceCentralAlertProps" id="aws-data-landing-zone.DlzTagComplianceCentralAlertProps"></a>
25683
25688
 
25684
- #### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzTagComplianceAlertProps.Initializer"></a>
25689
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzTagComplianceCentralAlertProps.Initializer"></a>
25685
25690
 
25686
25691
  ```typescript
25687
- import { DlzTagComplianceAlertProps } from 'aws-data-landing-zone'
25692
+ import { DlzTagComplianceCentralAlertProps } from 'aws-data-landing-zone'
25688
25693
 
25689
- const dlzTagComplianceAlertProps: DlzTagComplianceAlertProps = { ... }
25694
+ const dlzTagComplianceCentralAlertProps: DlzTagComplianceCentralAlertProps = { ... }
25690
25695
  ```
25691
25696
 
25692
25697
  #### Properties <a name="Properties" id="Properties"></a>
25693
25698
 
25694
25699
  | **Name** | **Type** | **Description** |
25695
25700
  | --- | --- | --- |
25696
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertProps.property.emails">emails</a></code> | <code>string[]</code> | Emails that receive an alert when a resource is found without its mandatory tags. |
25697
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertProps.property.slacks">slacks</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]</code> | Slack channels that receive the alert (notify-only). |
25698
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertProps.property.configRuleNames">configRuleNames</a></code> | <code>string[]</code> | AWS Config rule names to watch. |
25701
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.emails">emails</a></code> | <code>string[]</code> | Emails that receive an alert when any workload account has a resource missing mandatory tags. |
25702
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.slacks">slacks</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]</code> | Slack channels that receive the alert (notify-only). |
25703
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.organizationId">organizationId</a></code> | <code>string</code> | The AWS Organizations id (e.g. `o-xxxxxxxxxx`). Scopes the central bus resource policy so that any account in the organization — and only those accounts — may forward events to the bus. |
25699
25704
 
25700
25705
  ---
25701
25706
 
25702
- ##### `emails`<sup>Optional</sup> <a name="emails" id="aws-data-landing-zone.DlzTagComplianceAlertProps.property.emails"></a>
25707
+ ##### `emails`<sup>Optional</sup> <a name="emails" id="aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.emails"></a>
25703
25708
 
25704
25709
  ```typescript
25705
25710
  public readonly emails: string[];
@@ -25707,11 +25712,11 @@ public readonly emails: string[];
25707
25712
 
25708
25713
  - *Type:* string[]
25709
25714
 
25710
- Emails that receive an alert when a resource is found without its mandatory tags.
25715
+ Emails that receive an alert when any workload account has a resource missing mandatory tags.
25711
25716
 
25712
25717
  ---
25713
25718
 
25714
- ##### `slacks`<sup>Optional</sup> <a name="slacks" id="aws-data-landing-zone.DlzTagComplianceAlertProps.property.slacks"></a>
25719
+ ##### `slacks`<sup>Optional</sup> <a name="slacks" id="aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.slacks"></a>
25715
25720
 
25716
25721
  ```typescript
25717
25722
  public readonly slacks: SlackChannel[];
@@ -25721,47 +25726,46 @@ public readonly slacks: SlackChannel[];
25721
25726
 
25722
25727
  Slack channels that receive the alert (notify-only).
25723
25728
 
25729
+ Uses Chatbot in the management account.
25730
+
25724
25731
  ---
25725
25732
 
25726
- ##### `configRuleNames`<sup>Required</sup> <a name="configRuleNames" id="aws-data-landing-zone.DlzTagComplianceAlertProps.property.configRuleNames"></a>
25733
+ ##### `organizationId`<sup>Required</sup> <a name="organizationId" id="aws-data-landing-zone.DlzTagComplianceCentralAlertProps.property.organizationId"></a>
25727
25734
 
25728
25735
  ```typescript
25729
- public readonly configRuleNames: string[];
25736
+ public readonly organizationId: string;
25730
25737
  ```
25731
25738
 
25732
- - *Type:* string[]
25733
-
25734
- AWS Config rule names to watch.
25739
+ - *Type:* string
25735
25740
 
25736
- A resource turning NON_COMPLIANT on any of them raises
25737
- an alert. AWS Config is regional, so this construct only covers the region it is created in.
25741
+ The AWS Organizations id (e.g. `o-xxxxxxxxxx`). Scopes the central bus resource policy so that any account in the organization — and only those accounts — may forward events to the bus.
25738
25742
 
25739
25743
  ---
25740
25744
 
25741
- ### DlzTagComplianceAlertSubscribers <a name="DlzTagComplianceAlertSubscribers" id="aws-data-landing-zone.DlzTagComplianceAlertSubscribers"></a>
25745
+ ### DlzTagComplianceCentralAlertSubscribers <a name="DlzTagComplianceCentralAlertSubscribers" id="aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers"></a>
25742
25746
 
25743
- Where tag-compliance alerts are sent.
25747
+ Where the centralized tag-compliance alert is sent.
25744
25748
 
25745
25749
  Consumer-facing prop on `DataLandingZoneProps`.
25746
25750
 
25747
- #### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzTagComplianceAlertSubscribers.Initializer"></a>
25751
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers.Initializer"></a>
25748
25752
 
25749
25753
  ```typescript
25750
- import { DlzTagComplianceAlertSubscribers } from 'aws-data-landing-zone'
25754
+ import { DlzTagComplianceCentralAlertSubscribers } from 'aws-data-landing-zone'
25751
25755
 
25752
- const dlzTagComplianceAlertSubscribers: DlzTagComplianceAlertSubscribers = { ... }
25756
+ const dlzTagComplianceCentralAlertSubscribers: DlzTagComplianceCentralAlertSubscribers = { ... }
25753
25757
  ```
25754
25758
 
25755
25759
  #### Properties <a name="Properties" id="Properties"></a>
25756
25760
 
25757
25761
  | **Name** | **Type** | **Description** |
25758
25762
  | --- | --- | --- |
25759
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertSubscribers.property.emails">emails</a></code> | <code>string[]</code> | Emails that receive an alert when a resource is found without its mandatory tags. |
25760
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertSubscribers.property.slacks">slacks</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]</code> | Slack channels that receive the alert (notify-only). |
25763
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers.property.emails">emails</a></code> | <code>string[]</code> | Emails that receive an alert when any workload account has a resource missing mandatory tags. |
25764
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers.property.slacks">slacks</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]</code> | Slack channels that receive the alert (notify-only). |
25761
25765
 
25762
25766
  ---
25763
25767
 
25764
- ##### `emails`<sup>Optional</sup> <a name="emails" id="aws-data-landing-zone.DlzTagComplianceAlertSubscribers.property.emails"></a>
25768
+ ##### `emails`<sup>Optional</sup> <a name="emails" id="aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers.property.emails"></a>
25765
25769
 
25766
25770
  ```typescript
25767
25771
  public readonly emails: string[];
@@ -25769,11 +25773,11 @@ public readonly emails: string[];
25769
25773
 
25770
25774
  - *Type:* string[]
25771
25775
 
25772
- Emails that receive an alert when a resource is found without its mandatory tags.
25776
+ Emails that receive an alert when any workload account has a resource missing mandatory tags.
25773
25777
 
25774
25778
  ---
25775
25779
 
25776
- ##### `slacks`<sup>Optional</sup> <a name="slacks" id="aws-data-landing-zone.DlzTagComplianceAlertSubscribers.property.slacks"></a>
25780
+ ##### `slacks`<sup>Optional</sup> <a name="slacks" id="aws-data-landing-zone.DlzTagComplianceCentralAlertSubscribers.property.slacks"></a>
25777
25781
 
25778
25782
  ```typescript
25779
25783
  public readonly slacks: SlackChannel[];
@@ -25783,6 +25787,53 @@ public readonly slacks: SlackChannel[];
25783
25787
 
25784
25788
  Slack channels that receive the alert (notify-only).
25785
25789
 
25790
+ Uses Chatbot in the management account.
25791
+
25792
+ ---
25793
+
25794
+ ### DlzTagComplianceForwardingRuleProps <a name="DlzTagComplianceForwardingRuleProps" id="aws-data-landing-zone.DlzTagComplianceForwardingRuleProps"></a>
25795
+
25796
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzTagComplianceForwardingRuleProps.Initializer"></a>
25797
+
25798
+ ```typescript
25799
+ import { DlzTagComplianceForwardingRuleProps } from 'aws-data-landing-zone'
25800
+
25801
+ const dlzTagComplianceForwardingRuleProps: DlzTagComplianceForwardingRuleProps = { ... }
25802
+ ```
25803
+
25804
+ #### Properties <a name="Properties" id="Properties"></a>
25805
+
25806
+ | **Name** | **Type** | **Description** |
25807
+ | --- | --- | --- |
25808
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRuleProps.property.centralBusArn">centralBusArn</a></code> | <code>string</code> | ARN of the central event bus in the management account (see `DlzTagComplianceCentralAlert.busArn`). |
25809
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRuleProps.property.configRuleNames">configRuleNames</a></code> | <code>string[]</code> | AWS Config rule names to watch. |
25810
+
25811
+ ---
25812
+
25813
+ ##### `centralBusArn`<sup>Required</sup> <a name="centralBusArn" id="aws-data-landing-zone.DlzTagComplianceForwardingRuleProps.property.centralBusArn"></a>
25814
+
25815
+ ```typescript
25816
+ public readonly centralBusArn: string;
25817
+ ```
25818
+
25819
+ - *Type:* string
25820
+
25821
+ ARN of the central event bus in the management account (see `DlzTagComplianceCentralAlert.busArn`).
25822
+
25823
+ ---
25824
+
25825
+ ##### `configRuleNames`<sup>Required</sup> <a name="configRuleNames" id="aws-data-landing-zone.DlzTagComplianceForwardingRuleProps.property.configRuleNames"></a>
25826
+
25827
+ ```typescript
25828
+ public readonly configRuleNames: string[];
25829
+ ```
25830
+
25831
+ - *Type:* string[]
25832
+
25833
+ AWS Config rule names to watch.
25834
+
25835
+ A resource turning NON_COMPLIANT on any of them is forwarded.
25836
+
25786
25837
  ---
25787
25838
 
25788
25839
  ### DlzTagPolicyProps <a name="DlzTagPolicyProps" id="aws-data-landing-zone.DlzTagPolicyProps"></a>
@@ -30937,59 +30988,100 @@ produce a CDK diff every time.
30937
30988
 
30938
30989
 
30939
30990
 
30940
- ### DlzTagComplianceAlert <a name="DlzTagComplianceAlert" id="aws-data-landing-zone.DlzTagComplianceAlert"></a>
30991
+ ### DlzTagComplianceCentralAlert <a name="DlzTagComplianceCentralAlert" id="aws-data-landing-zone.DlzTagComplianceCentralAlert"></a>
30941
30992
 
30942
- Detective alerting for AWS Config tag rules: routes NON_COMPLIANT findings to email and/or Slack.
30993
+ Central, org-wide sink for AWS Config tag non-compliance, created once in the management account.
30943
30994
 
30944
- AWS Config emits a "Config Rules Compliance Change" event (per region) whenever a rule's
30945
- compliance flips. An EventBridge rule forwards only the NON_COMPLIANT ones for the given rules
30946
- to an SNS topic, which fans out to the subscribers. Detect-only — it never touches the resource.
30995
+ Owns a dedicated EventBridge event bus that every workload account forwards its NON_COMPLIANT
30996
+ findings to (see `DlzTagComplianceForwardingRule`), plus one SNS topic and the Slack/email fan-out.
30997
+ Modeled on budget alerts: a single account, a single topic, Chatbot for Slack. One topic and one
30998
+ Slack config for the whole org, instead of one per workload account × region.
30947
30999
 
30948
- #### Initializers <a name="Initializers" id="aws-data-landing-zone.DlzTagComplianceAlert.Initializer"></a>
31000
+ #### Initializers <a name="Initializers" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer"></a>
30949
31001
 
30950
31002
  ```typescript
30951
- import { DlzTagComplianceAlert } from 'aws-data-landing-zone'
31003
+ import { DlzTagComplianceCentralAlert } from 'aws-data-landing-zone'
30952
31004
 
30953
- new DlzTagComplianceAlert(scope: Construct, id: string, props: DlzTagComplianceAlertProps)
31005
+ new DlzTagComplianceCentralAlert(scope: Construct, id: string, props: DlzTagComplianceCentralAlertProps)
30954
31006
  ```
30955
31007
 
30956
31008
  | **Name** | **Type** | **Description** |
30957
31009
  | --- | --- | --- |
30958
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
30959
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
30960
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlertProps">DlzTagComplianceAlertProps</a></code> | *No description.* |
31010
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
31011
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
31012
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertProps">DlzTagComplianceCentralAlertProps</a></code> | *No description.* |
30961
31013
 
30962
31014
  ---
30963
31015
 
30964
- ##### `scope`<sup>Required</sup> <a name="scope" id="aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.scope"></a>
31016
+ ##### `scope`<sup>Required</sup> <a name="scope" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.scope"></a>
30965
31017
 
30966
31018
  - *Type:* constructs.Construct
30967
31019
 
30968
31020
  ---
30969
31021
 
30970
- ##### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.id"></a>
31022
+ ##### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.id"></a>
30971
31023
 
30972
31024
  - *Type:* string
30973
31025
 
30974
31026
  ---
30975
31027
 
30976
- ##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DlzTagComplianceAlert.Initializer.parameter.props"></a>
31028
+ ##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.Initializer.parameter.props"></a>
30977
31029
 
30978
- - *Type:* <a href="#aws-data-landing-zone.DlzTagComplianceAlertProps">DlzTagComplianceAlertProps</a>
31030
+ - *Type:* <a href="#aws-data-landing-zone.DlzTagComplianceCentralAlertProps">DlzTagComplianceCentralAlertProps</a>
30979
31031
 
30980
31032
  ---
30981
31033
 
30982
31034
 
31035
+ #### Static Functions <a name="Static Functions" id="Static Functions"></a>
31036
+
31037
+ | **Name** | **Description** |
31038
+ | --- | --- |
31039
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.busArn">busArn</a></code> | ARN of the central bus, derived from the management account id and the global region. |
31040
+
31041
+ ---
31042
+
31043
+ ##### `busArn` <a name="busArn" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.busArn"></a>
31044
+
31045
+ ```typescript
31046
+ import { DlzTagComplianceCentralAlert } from 'aws-data-landing-zone'
31047
+
31048
+ DlzTagComplianceCentralAlert.busArn(managementAccountId: string, globalRegion: string)
31049
+ ```
31050
+
31051
+ ARN of the central bus, derived from the management account id and the global region.
31052
+
31053
+ ###### `managementAccountId`<sup>Required</sup> <a name="managementAccountId" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.busArn.parameter.managementAccountId"></a>
31054
+
31055
+ - *Type:* string
31056
+
31057
+ ---
31058
+
31059
+ ###### `globalRegion`<sup>Required</sup> <a name="globalRegion" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.busArn.parameter.globalRegion"></a>
31060
+
31061
+ - *Type:* string
31062
+
31063
+ ---
30983
31064
 
30984
31065
  #### Properties <a name="Properties" id="Properties"></a>
30985
31066
 
30986
31067
  | **Name** | **Type** | **Description** |
30987
31068
  | --- | --- | --- |
30988
- | <code><a href="#aws-data-landing-zone.DlzTagComplianceAlert.property.topic">topic</a></code> | <code>aws-cdk-lib.aws_sns.Topic</code> | *No description.* |
31069
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.property.bus">bus</a></code> | <code>aws-cdk-lib.aws_events.EventBus</code> | *No description.* |
31070
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.property.topic">topic</a></code> | <code>aws-cdk-lib.aws_sns.Topic</code> | *No description.* |
31071
+
31072
+ ---
31073
+
31074
+ ##### `bus`<sup>Required</sup> <a name="bus" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.property.bus"></a>
31075
+
31076
+ ```typescript
31077
+ public readonly bus: EventBus;
31078
+ ```
31079
+
31080
+ - *Type:* aws-cdk-lib.aws_events.EventBus
30989
31081
 
30990
31082
  ---
30991
31083
 
30992
- ##### `topic`<sup>Required</sup> <a name="topic" id="aws-data-landing-zone.DlzTagComplianceAlert.property.topic"></a>
31084
+ ##### `topic`<sup>Required</sup> <a name="topic" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.property.topic"></a>
30993
31085
 
30994
31086
  ```typescript
30995
31087
  public readonly topic: Topic;
@@ -30999,6 +31091,74 @@ public readonly topic: Topic;
30999
31091
 
31000
31092
  ---
31001
31093
 
31094
+ #### Constants <a name="Constants" id="Constants"></a>
31095
+
31096
+ | **Name** | **Type** | **Description** |
31097
+ | --- | --- | --- |
31098
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceCentralAlert.property.BUS_NAME">BUS_NAME</a></code> | <code>string</code> | Fixed name of the central event bus. |
31099
+
31100
+ ---
31101
+
31102
+ ##### `BUS_NAME`<sup>Required</sup> <a name="BUS_NAME" id="aws-data-landing-zone.DlzTagComplianceCentralAlert.property.BUS_NAME"></a>
31103
+
31104
+ ```typescript
31105
+ public readonly BUS_NAME: string;
31106
+ ```
31107
+
31108
+ - *Type:* string
31109
+
31110
+ Fixed name of the central event bus.
31111
+
31112
+ Single-sourced so the workload-side forwarding rules can
31113
+ build the bus ARN (via `busArn`) without a cross-stack reference.
31114
+
31115
+ ---
31116
+
31117
+ ### DlzTagComplianceForwardingRule <a name="DlzTagComplianceForwardingRule" id="aws-data-landing-zone.DlzTagComplianceForwardingRule"></a>
31118
+
31119
+ Workload-side half of the centralized alert.
31120
+
31121
+ Created per account × region: an EventBridge rule
31122
+ that matches this region's NON_COMPLIANT tag findings and forwards them to the central event bus
31123
+ in the management account (cross-account, cross-region — a single hop). No local SNS/Chatbot.
31124
+
31125
+ #### Initializers <a name="Initializers" id="aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer"></a>
31126
+
31127
+ ```typescript
31128
+ import { DlzTagComplianceForwardingRule } from 'aws-data-landing-zone'
31129
+
31130
+ new DlzTagComplianceForwardingRule(scope: Construct, id: string, props: DlzTagComplianceForwardingRuleProps)
31131
+ ```
31132
+
31133
+ | **Name** | **Type** | **Description** |
31134
+ | --- | --- | --- |
31135
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
31136
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
31137
+ | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DlzTagComplianceForwardingRuleProps">DlzTagComplianceForwardingRuleProps</a></code> | *No description.* |
31138
+
31139
+ ---
31140
+
31141
+ ##### `scope`<sup>Required</sup> <a name="scope" id="aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.scope"></a>
31142
+
31143
+ - *Type:* constructs.Construct
31144
+
31145
+ ---
31146
+
31147
+ ##### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.id"></a>
31148
+
31149
+ - *Type:* string
31150
+
31151
+ ---
31152
+
31153
+ ##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DlzTagComplianceForwardingRule.Initializer.parameter.props"></a>
31154
+
31155
+ - *Type:* <a href="#aws-data-landing-zone.DlzTagComplianceForwardingRuleProps">DlzTagComplianceForwardingRuleProps</a>
31156
+
31157
+ ---
31158
+
31159
+
31160
+
31161
+
31002
31162
 
31003
31163
  ### DlzTagPolicy <a name="DlzTagPolicy" id="aws-data-landing-zone.DlzTagPolicy"></a>
31004
31164
 
@@ -33436,6 +33596,7 @@ Hyderabad No Control Tower SecurityHub Standard support.
33436
33596
  | <code><a href="#aws-data-landing-zone.ReportType.GUARDDUTY">GUARDDUTY</a></code> | *No description.* |
33437
33597
  | <code><a href="#aws-data-landing-zone.ReportType.MACIE_DELEGATED_ADMIN">MACIE_DELEGATED_ADMIN</a></code> | *No description.* |
33438
33598
  | <code><a href="#aws-data-landing-zone.ReportType.MACIE">MACIE</a></code> | *No description.* |
33599
+ | <code><a href="#aws-data-landing-zone.ReportType.TAG_COMPLIANCE_ALERT">TAG_COMPLIANCE_ALERT</a></code> | *No description.* |
33439
33600
 
33440
33601
  ---
33441
33602
 
@@ -33519,6 +33680,11 @@ Hyderabad No Control Tower SecurityHub Standard support.
33519
33680
  ---
33520
33681
 
33521
33682
 
33683
+ ##### `TAG_COMPLIANCE_ALERT` <a name="TAG_COMPLIANCE_ALERT" id="aws-data-landing-zone.ReportType.TAG_COMPLIANCE_ALERT"></a>
33684
+
33685
+ ---
33686
+
33687
+
33522
33688
  ### SecurityHubNotificationSeverity <a name="SecurityHubNotificationSeverity" id="aws-data-landing-zone.SecurityHubNotificationSeverity"></a>
33523
33689
 
33524
33690
  https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Severity.html.
@@ -0,0 +1,42 @@
1
+ ---
2
+ ---
3
+
4
+ <script is:inline>
5
+ (() => {
6
+ // Microsoft Clarity - only fires once the visitor has accepted cookies (EU/GDPR requirement).
7
+ let clarityLoaded = false;
8
+ const loadClarity = () => {
9
+ if (clarityLoaded) {
10
+ return;
11
+ }
12
+ clarityLoaded = true;
13
+
14
+ (function (c, l, a, r, i) {
15
+ c[a] =
16
+ c[a] ||
17
+ function (...args) {
18
+ (c[a].q = c[a].q || []).push(args);
19
+ };
20
+ const t = l.createElement(r);
21
+ t.async = 1;
22
+ t.src = 'https://www.clarity.ms/tag/' + i;
23
+ const y = l.getElementsByTagName(r)[0];
24
+ y.parentNode.insertBefore(t, y);
25
+ })(window, document, 'clarity', 'script', 'xqzfjts4xt');
26
+ };
27
+
28
+ try {
29
+ if (window.localStorage.getItem('dc_cookie_consent') === 'accepted') {
30
+ loadClarity();
31
+ }
32
+ } catch {
33
+ // localStorage unavailable - wait for the consent event instead.
34
+ }
35
+
36
+ window.addEventListener('dc-cookie-consent', (event) => {
37
+ if (event.detail && event.detail.status === 'accepted') {
38
+ loadClarity();
39
+ }
40
+ });
41
+ })();
42
+ </script>
@@ -0,0 +1,165 @@
1
+ ---
2
+ ---
3
+
4
+ <div id="cookie-consent-banner" style="display: none;">
5
+ <div class="cookie-consent-inner">
6
+ <p class="cookie-consent-text">
7
+ We use cookies to understand how you use our site and improve your experience. By clicking "Accept", you
8
+ consent to our use of analytics cookies.
9
+ </p>
10
+ <div class="cookie-consent-actions">
11
+ <button id="cookie-consent-reject" type="button" class="cookie-consent-btn cookie-consent-btn--secondary">
12
+ Reject
13
+ </button>
14
+ <button id="cookie-consent-accept" type="button" class="cookie-consent-btn cookie-consent-btn--primary">
15
+ Accept
16
+ </button>
17
+ </div>
18
+ </div>
19
+ </div>
20
+
21
+ <style>
22
+ #cookie-consent-banner {
23
+ position: fixed;
24
+ left: 0;
25
+ right: 0;
26
+ bottom: 0;
27
+ z-index: 100000;
28
+ background: oklch(1 0 0);
29
+ color: oklch(0.222 0.034 261.473);
30
+ box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
31
+ padding: 18px 8px;
32
+ font-family: 'Poppins', system-ui, sans-serif;
33
+ }
34
+
35
+ :global([data-theme='dark']) #cookie-consent-banner,
36
+ :global(.dark) #cookie-consent-banner {
37
+ background: oklch(0.235 0.031 262.556);
38
+ color: oklch(0.978 0.007 260.732);
39
+ box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
40
+ }
41
+
42
+ .cookie-consent-inner {
43
+ max-width: 1220px;
44
+ margin: 0 auto;
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ column-gap: 40px;
49
+ row-gap: 10px;
50
+ flex-wrap: nowrap;
51
+ text-align: center;
52
+ }
53
+
54
+ .cookie-consent-text {
55
+ margin: 0;
56
+ flex: 1 1 auto;
57
+ min-width: 0;
58
+ font-size: 14px;
59
+ }
60
+
61
+ .cookie-consent-actions {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ gap: 10px;
66
+ flex-shrink: 0;
67
+ }
68
+
69
+ .cookie-consent-btn {
70
+ font-size: 14px;
71
+ font-weight: 600;
72
+ padding: 6px 16px;
73
+ border-radius: 6px;
74
+ cursor: pointer;
75
+ font-family: inherit;
76
+ transition:
77
+ background-color 0.2s ease,
78
+ opacity 0.15s;
79
+ }
80
+
81
+ .cookie-consent-btn--primary {
82
+ background: oklch(0.833 0.156 78.07);
83
+ color: oklch(0.222 0.034 261.473);
84
+ border: 1px solid oklch(0.833 0.156 78.07);
85
+ }
86
+
87
+ .cookie-consent-btn--primary:hover {
88
+ opacity: 0.9;
89
+ }
90
+
91
+ .cookie-consent-btn--secondary {
92
+ background: transparent;
93
+ color: inherit;
94
+ border: 1px solid oklch(0.683 0.033 275.367 / 0.5);
95
+ }
96
+
97
+ .cookie-consent-btn--secondary:hover {
98
+ background: oklch(0.5 0 0 / 0.08);
99
+ }
100
+
101
+ @media (max-width: 640px) {
102
+ .cookie-consent-inner {
103
+ flex-direction: column;
104
+ flex-wrap: wrap;
105
+ }
106
+ }
107
+ </style>
108
+
109
+ <script is:inline>
110
+ (() => {
111
+ const CONSENT_KEY = 'dc_cookie_consent';
112
+
113
+ const getConsent = () => {
114
+ try {
115
+ return window.localStorage.getItem(CONSENT_KEY);
116
+ } catch {
117
+ return null;
118
+ }
119
+ };
120
+
121
+ const setConsent = (status) => {
122
+ try {
123
+ window.localStorage.setItem(CONSENT_KEY, status);
124
+ } catch {
125
+ // localStorage unavailable (e.g. private browsing) - consent will be asked again next visit.
126
+ }
127
+ window.dispatchEvent(new CustomEvent('dc-cookie-consent', { detail: { status } }));
128
+ };
129
+
130
+ const init = () => {
131
+ const banner = document.getElementById('cookie-consent-banner');
132
+ const acceptBtn = document.getElementById('cookie-consent-accept');
133
+ const rejectBtn = document.getElementById('cookie-consent-reject');
134
+
135
+ if (!banner || !acceptBtn || !rejectBtn) {
136
+ return;
137
+ }
138
+
139
+ const existingConsent = getConsent();
140
+ if (existingConsent === 'accepted' || existingConsent === 'rejected') {
141
+ // Consent already recorded - notify listeners (e.g. Clarity) without showing the banner again.
142
+ window.dispatchEvent(new CustomEvent('dc-cookie-consent', { detail: { status: existingConsent } }));
143
+ return;
144
+ }
145
+
146
+ banner.style.display = 'block';
147
+
148
+ acceptBtn.addEventListener('click', () => {
149
+ banner.style.display = 'none';
150
+ setConsent('accepted');
151
+ });
152
+
153
+ rejectBtn.addEventListener('click', () => {
154
+ banner.style.display = 'none';
155
+ setConsent('rejected');
156
+ });
157
+ };
158
+
159
+ if (document.readyState === 'loading') {
160
+ document.addEventListener('DOMContentLoaded', init);
161
+ } else {
162
+ init();
163
+ }
164
+ })();
165
+ </script>