aws-data-landing-zone 0.0.53 → 0.1.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.
Files changed (50) hide show
  1. package/.jsii +341 -210
  2. package/API.md +152 -24
  3. package/docs/src/content/docs/components/account-management/budgets.mdx +68 -3
  4. package/docs/src/content/docs/components/identity/iam-identity-center.mdx +21 -11
  5. package/docs/src/content/docs/components/security/security-hub.mdx +1 -1
  6. package/docs/src/content/docs/reference/api.md +152 -24
  7. package/lib/constructs/account-chatbots/index.js +1 -1
  8. package/lib/constructs/dlz-budget/index.d.ts +7 -4
  9. package/lib/constructs/dlz-budget/index.js +70 -15
  10. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  11. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  12. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  13. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  14. package/lib/constructs/dlz-stack/index.js +1 -1
  15. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  16. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  17. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  18. package/lib/constructs/iam/iam-account-alias.js +1 -1
  19. package/lib/constructs/iam/iam-password-policy.js +1 -1
  20. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  21. package/lib/constructs/iam-identity-center/iam-identity-center.d.ts +1 -1
  22. package/lib/constructs/iam-identity-center/iam-identity-center.js +3 -3
  23. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  24. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  25. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  26. package/lib/data-landing-zone-client.js +1 -1
  27. package/lib/data-landing-zone-types.d.ts +7 -1
  28. package/lib/data-landing-zone-types.js +1 -1
  29. package/lib/data-landing-zone.js +4 -2
  30. package/lib/defaults.d.ts +3 -2
  31. package/lib/defaults.js +15 -5
  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.d.ts +6 -2
  36. package/lib/stacks/organization/management/management-global-stack.js +6 -5
  37. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  38. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  39. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  40. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  41. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  42. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  43. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  44. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  45. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  46. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  47. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  48. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  49. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  50. package/package.json +1 -1
package/API.md CHANGED
@@ -6051,13 +6051,13 @@ public readonly accountName: string;
6051
6051
  ```typescript
6052
6052
  import { ManagementGlobalStack } from 'aws-data-landing-zone'
6053
6053
 
6054
- new ManagementGlobalStack(scope: Construct, stackProps: DlzStackProps, props: DataLandingZoneProps)
6054
+ new ManagementGlobalStack(scope: Construct, stackProps: ManagementGlobalStackProps, props: DataLandingZoneProps)
6055
6055
  ```
6056
6056
 
6057
6057
  | **Name** | **Type** | **Description** |
6058
6058
  | --- | --- | --- |
6059
6059
  | <code><a href="#aws-data-landing-zone.ManagementGlobalStack.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
6060
- | <code><a href="#aws-data-landing-zone.ManagementGlobalStack.Initializer.parameter.stackProps">stackProps</a></code> | <code><a href="#aws-data-landing-zone.DlzStackProps">DlzStackProps</a></code> | *No description.* |
6060
+ | <code><a href="#aws-data-landing-zone.ManagementGlobalStack.Initializer.parameter.stackProps">stackProps</a></code> | <code><a href="#aws-data-landing-zone.ManagementGlobalStackProps">ManagementGlobalStackProps</a></code> | *No description.* |
6061
6061
  | <code><a href="#aws-data-landing-zone.ManagementGlobalStack.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a></code> | *No description.* |
6062
6062
 
6063
6063
  ---
@@ -6070,7 +6070,7 @@ new ManagementGlobalStack(scope: Construct, stackProps: DlzStackProps, props: Da
6070
6070
 
6071
6071
  ##### `stackProps`<sup>Required</sup> <a name="stackProps" id="aws-data-landing-zone.ManagementGlobalStack.Initializer.parameter.stackProps"></a>
6072
6072
 
6073
- - *Type:* <a href="#aws-data-landing-zone.DlzStackProps">DlzStackProps</a>
6073
+ - *Type:* <a href="#aws-data-landing-zone.ManagementGlobalStackProps">ManagementGlobalStackProps</a>
6074
6074
 
6075
6075
  ---
6076
6076
 
@@ -15578,7 +15578,8 @@ const budgetSubscribers: BudgetSubscribers = { ... }
15578
15578
  | **Name** | **Type** | **Description** |
15579
15579
  | --- | --- | --- |
15580
15580
  | <code><a href="#aws-data-landing-zone.BudgetSubscribers.property.emails">emails</a></code> | <code>string[]</code> | *No description.* |
15581
- | <code><a href="#aws-data-landing-zone.BudgetSubscribers.property.slack">slack</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a></code> | *No description.* |
15581
+ | <code><a href="#aws-data-landing-zone.BudgetSubscribers.property.slacks">slacks</a></code> | <code><a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]</code> | *No description.* |
15582
+ | <code><a href="#aws-data-landing-zone.BudgetSubscribers.property.snsTopicName">snsTopicName</a></code> | <code>string</code> | Optional, specify to reuse the same SNS topic for multiple budgets. |
15582
15583
 
15583
15584
  ---
15584
15585
 
@@ -15592,13 +15593,25 @@ public readonly emails: string[];
15592
15593
 
15593
15594
  ---
15594
15595
 
15595
- ##### `slack`<sup>Optional</sup> <a name="slack" id="aws-data-landing-zone.BudgetSubscribers.property.slack"></a>
15596
+ ##### `slacks`<sup>Optional</sup> <a name="slacks" id="aws-data-landing-zone.BudgetSubscribers.property.slacks"></a>
15596
15597
 
15597
15598
  ```typescript
15598
- public readonly slack: SlackChannel;
15599
+ public readonly slacks: SlackChannel[];
15599
15600
  ```
15600
15601
 
15601
- - *Type:* <a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>
15602
+ - *Type:* <a href="#aws-data-landing-zone.SlackChannel">SlackChannel</a>[]
15603
+
15604
+ ---
15605
+
15606
+ ##### `snsTopicName`<sup>Optional</sup> <a name="snsTopicName" id="aws-data-landing-zone.BudgetSubscribers.property.snsTopicName"></a>
15607
+
15608
+ ```typescript
15609
+ public readonly snsTopicName: string;
15610
+ ```
15611
+
15612
+ - *Type:* string
15613
+
15614
+ Optional, specify to reuse the same SNS topic for multiple budgets.
15602
15615
 
15603
15616
  ---
15604
15617
 
@@ -17825,6 +17838,7 @@ const globalVariables: GlobalVariables = { ... }
17825
17838
 
17826
17839
  | **Name** | **Type** | **Description** |
17827
17840
  | --- | --- | --- |
17841
+ | <code><a href="#aws-data-landing-zone.GlobalVariables.property.budgetSnsCache">budgetSnsCache</a></code> | <code>{[ key: string ]: <a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord">GlobalVariablesBudgetSnsCacheRecord</a>}</code> | *No description.* |
17828
17842
  | <code><a href="#aws-data-landing-zone.GlobalVariables.property.dlzAccountNetworks">dlzAccountNetworks</a></code> | <code><a href="#aws-data-landing-zone.DlzAccountNetworks">DlzAccountNetworks</a></code> | *No description.* |
17829
17843
  | <code><a href="#aws-data-landing-zone.GlobalVariables.property.ncp1">ncp1</a></code> | <code><a href="#aws-data-landing-zone.GlobalVariablesNcp1">GlobalVariablesNcp1</a></code> | *No description.* |
17830
17844
  | <code><a href="#aws-data-landing-zone.GlobalVariables.property.ncp2">ncp2</a></code> | <code><a href="#aws-data-landing-zone.GlobalVariablesNcp2">GlobalVariablesNcp2</a></code> | *No description.* |
@@ -17832,6 +17846,16 @@ const globalVariables: GlobalVariables = { ... }
17832
17846
 
17833
17847
  ---
17834
17848
 
17849
+ ##### `budgetSnsCache`<sup>Required</sup> <a name="budgetSnsCache" id="aws-data-landing-zone.GlobalVariables.property.budgetSnsCache"></a>
17850
+
17851
+ ```typescript
17852
+ public readonly budgetSnsCache: {[ key: string ]: GlobalVariablesBudgetSnsCacheRecord};
17853
+ ```
17854
+
17855
+ - *Type:* {[ key: string ]: <a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord">GlobalVariablesBudgetSnsCacheRecord</a>}
17856
+
17857
+ ---
17858
+
17835
17859
  ##### `dlzAccountNetworks`<sup>Required</sup> <a name="dlzAccountNetworks" id="aws-data-landing-zone.GlobalVariables.property.dlzAccountNetworks"></a>
17836
17860
 
17837
17861
  ```typescript
@@ -17872,6 +17896,45 @@ public readonly ncp3: GlobalVariablesNcp3;
17872
17896
 
17873
17897
  ---
17874
17898
 
17899
+ ### GlobalVariablesBudgetSnsCacheRecord <a name="GlobalVariablesBudgetSnsCacheRecord" id="aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord"></a>
17900
+
17901
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord.Initializer"></a>
17902
+
17903
+ ```typescript
17904
+ import { GlobalVariablesBudgetSnsCacheRecord } from 'aws-data-landing-zone'
17905
+
17906
+ const globalVariablesBudgetSnsCacheRecord: GlobalVariablesBudgetSnsCacheRecord = { ... }
17907
+ ```
17908
+
17909
+ #### Properties <a name="Properties" id="Properties"></a>
17910
+
17911
+ | **Name** | **Type** | **Description** |
17912
+ | --- | --- | --- |
17913
+ | <code><a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord.property.subscribers">subscribers</a></code> | <code><a href="#aws-data-landing-zone.BudgetSubscribers">BudgetSubscribers</a></code> | *No description.* |
17914
+ | <code><a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord.property.topic">topic</a></code> | <code>aws-cdk-lib.aws_sns.Topic</code> | *No description.* |
17915
+
17916
+ ---
17917
+
17918
+ ##### `subscribers`<sup>Required</sup> <a name="subscribers" id="aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord.property.subscribers"></a>
17919
+
17920
+ ```typescript
17921
+ public readonly subscribers: BudgetSubscribers;
17922
+ ```
17923
+
17924
+ - *Type:* <a href="#aws-data-landing-zone.BudgetSubscribers">BudgetSubscribers</a>
17925
+
17926
+ ---
17927
+
17928
+ ##### `topic`<sup>Required</sup> <a name="topic" id="aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord.property.topic"></a>
17929
+
17930
+ ```typescript
17931
+ public readonly topic: Topic;
17932
+ ```
17933
+
17934
+ - *Type:* aws-cdk-lib.aws_sns.Topic
17935
+
17936
+ ---
17937
+
17875
17938
  ### GlobalVariablesNcp1 <a name="GlobalVariablesNcp1" id="aws-data-landing-zone.GlobalVariablesNcp1"></a>
17876
17939
 
17877
17940
  #### Initializer <a name="Initializer" id="aws-data-landing-zone.GlobalVariablesNcp1.Initializer"></a>
@@ -18250,7 +18313,7 @@ const iamIdentityCenterPermissionSetProps: IamIdentityCenterPermissionSetProps =
18250
18313
  | --- | --- | --- |
18251
18314
  | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.name">name</a></code> | <code>string</code> | *No description.* |
18252
18315
  | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.description">description</a></code> | <code>string</code> | *No description.* |
18253
- | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.inlinePolicyStatement">inlinePolicyStatement</a></code> | <code>aws-cdk-lib.aws_iam.PolicyStatement</code> | *No description.* |
18316
+ | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.inlinePolicyDocument">inlinePolicyDocument</a></code> | <code>aws-cdk-lib.aws_iam.PolicyDocument</code> | *No description.* |
18254
18317
  | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.managedPolicyArns">managedPolicyArns</a></code> | <code>string[]</code> | *No description.* |
18255
18318
  | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.permissionsBoundary">permissionsBoundary</a></code> | <code>aws-cdk-lib.IResolvable \| aws-cdk-lib.aws_sso.CfnPermissionSet.PermissionsBoundaryProperty</code> | *No description.* |
18256
18319
  | <code><a href="#aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.sessionDuration">sessionDuration</a></code> | <code>aws-cdk-lib.Duration</code> | *No description.* |
@@ -18277,13 +18340,13 @@ public readonly description: string;
18277
18340
 
18278
18341
  ---
18279
18342
 
18280
- ##### `inlinePolicyStatement`<sup>Optional</sup> <a name="inlinePolicyStatement" id="aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.inlinePolicyStatement"></a>
18343
+ ##### `inlinePolicyDocument`<sup>Optional</sup> <a name="inlinePolicyDocument" id="aws-data-landing-zone.IamIdentityCenterPermissionSetProps.property.inlinePolicyDocument"></a>
18281
18344
 
18282
18345
  ```typescript
18283
- public readonly inlinePolicyStatement: PolicyStatement;
18346
+ public readonly inlinePolicyDocument: PolicyDocument;
18284
18347
  ```
18285
18348
 
18286
- - *Type:* aws-cdk-lib.aws_iam.PolicyStatement
18349
+ - *Type:* aws-cdk-lib.aws_iam.PolicyDocument
18287
18350
 
18288
18351
  ---
18289
18352
 
@@ -19030,6 +19093,67 @@ const logStacks: LogStacks = { ... }
19030
19093
  ```
19031
19094
 
19032
19095
 
19096
+ ### ManagementGlobalStackProps <a name="ManagementGlobalStackProps" id="aws-data-landing-zone.ManagementGlobalStackProps"></a>
19097
+
19098
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.ManagementGlobalStackProps.Initializer"></a>
19099
+
19100
+ ```typescript
19101
+ import { ManagementGlobalStackProps } from 'aws-data-landing-zone'
19102
+
19103
+ const managementGlobalStackProps: ManagementGlobalStackProps = { ... }
19104
+ ```
19105
+
19106
+ #### Properties <a name="Properties" id="Properties"></a>
19107
+
19108
+ | **Name** | **Type** | **Description** |
19109
+ | --- | --- | --- |
19110
+ | <code><a href="#aws-data-landing-zone.ManagementGlobalStackProps.property.env">env</a></code> | <code>aws-cdk-lib.Environment</code> | *No description.* |
19111
+ | <code><a href="#aws-data-landing-zone.ManagementGlobalStackProps.property.name">name</a></code> | <code><a href="#aws-data-landing-zone.DlzStackNameProps">DlzStackNameProps</a></code> | *No description.* |
19112
+ | <code><a href="#aws-data-landing-zone.ManagementGlobalStackProps.property.stage">stage</a></code> | <code>cdk-express-pipeline.ExpressStage</code> | *No description.* |
19113
+ | <code><a href="#aws-data-landing-zone.ManagementGlobalStackProps.property.globalVariables">globalVariables</a></code> | <code><a href="#aws-data-landing-zone.GlobalVariables">GlobalVariables</a></code> | *No description.* |
19114
+
19115
+ ---
19116
+
19117
+ ##### `env`<sup>Required</sup> <a name="env" id="aws-data-landing-zone.ManagementGlobalStackProps.property.env"></a>
19118
+
19119
+ ```typescript
19120
+ public readonly env: Environment;
19121
+ ```
19122
+
19123
+ - *Type:* aws-cdk-lib.Environment
19124
+
19125
+ ---
19126
+
19127
+ ##### `name`<sup>Required</sup> <a name="name" id="aws-data-landing-zone.ManagementGlobalStackProps.property.name"></a>
19128
+
19129
+ ```typescript
19130
+ public readonly name: DlzStackNameProps;
19131
+ ```
19132
+
19133
+ - *Type:* <a href="#aws-data-landing-zone.DlzStackNameProps">DlzStackNameProps</a>
19134
+
19135
+ ---
19136
+
19137
+ ##### `stage`<sup>Required</sup> <a name="stage" id="aws-data-landing-zone.ManagementGlobalStackProps.property.stage"></a>
19138
+
19139
+ ```typescript
19140
+ public readonly stage: ExpressStage;
19141
+ ```
19142
+
19143
+ - *Type:* cdk-express-pipeline.ExpressStage
19144
+
19145
+ ---
19146
+
19147
+ ##### `globalVariables`<sup>Required</sup> <a name="globalVariables" id="aws-data-landing-zone.ManagementGlobalStackProps.property.globalVariables"></a>
19148
+
19149
+ ```typescript
19150
+ public readonly globalVariables: GlobalVariables;
19151
+ ```
19152
+
19153
+ - *Type:* <a href="#aws-data-landing-zone.GlobalVariables">GlobalVariables</a>
19154
+
19155
+ ---
19156
+
19033
19157
  ### ManagementStacks <a name="ManagementStacks" id="aws-data-landing-zone.ManagementStacks"></a>
19034
19158
 
19035
19159
  #### Initializer <a name="Initializer" id="aws-data-landing-zone.ManagementStacks.Initializer"></a>
@@ -21092,7 +21216,7 @@ new Defaults()
21092
21216
  ```typescript
21093
21217
  import { Defaults } from 'aws-data-landing-zone'
21094
21218
 
21095
- Defaults.budgets(orgTotal: number, infraDlz: number, subscribers: BudgetSubscribers)
21219
+ Defaults.budgets(orgTotal: number, infraDlz: number, subscribers: BudgetSubscribers, _?: ForceNoPythonArgumentLifting)
21096
21220
  ```
21097
21221
 
21098
21222
  Budgets for the organization.
@@ -21121,6 +21245,14 @@ Subscribers for the budget.
21121
21245
 
21122
21246
  ---
21123
21247
 
21248
+ ###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Defaults.budgets.parameter._"></a>
21249
+
21250
+ - *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
21251
+
21252
+ Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
21253
+
21254
+ ---
21255
+
21124
21256
  ##### `denyServiceList` <a name="denyServiceList" id="aws-data-landing-zone.Defaults.denyServiceList"></a>
21125
21257
 
21126
21258
  ```typescript
@@ -21298,7 +21430,7 @@ Given we have these NetworkEntity[]:
21298
21430
  ```typescript
21299
21431
  import { DlzBudget } from 'aws-data-landing-zone'
21300
21432
 
21301
- new DlzBudget(scope: Construct, id: string, props: DlzBudgetProps)
21433
+ new DlzBudget(scope: Construct, id: string, props: DlzBudgetProps, budgetSnsCache: {[ key: string ]: GlobalVariablesBudgetSnsCacheRecord})
21302
21434
  ```
21303
21435
 
21304
21436
  | **Name** | **Type** | **Description** |
@@ -21306,6 +21438,7 @@ new DlzBudget(scope: Construct, id: string, props: DlzBudgetProps)
21306
21438
  | <code><a href="#aws-data-landing-zone.DlzBudget.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
21307
21439
  | <code><a href="#aws-data-landing-zone.DlzBudget.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
21308
21440
  | <code><a href="#aws-data-landing-zone.DlzBudget.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DlzBudgetProps">DlzBudgetProps</a></code> | *No description.* |
21441
+ | <code><a href="#aws-data-landing-zone.DlzBudget.Initializer.parameter.budgetSnsCache">budgetSnsCache</a></code> | <code>{[ key: string ]: <a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord">GlobalVariablesBudgetSnsCacheRecord</a>}</code> | *No description.* |
21309
21442
 
21310
21443
  ---
21311
21444
 
@@ -21327,6 +21460,12 @@ new DlzBudget(scope: Construct, id: string, props: DlzBudgetProps)
21327
21460
 
21328
21461
  ---
21329
21462
 
21463
+ ##### `budgetSnsCache`<sup>Required</sup> <a name="budgetSnsCache" id="aws-data-landing-zone.DlzBudget.Initializer.parameter.budgetSnsCache"></a>
21464
+
21465
+ - *Type:* {[ key: string ]: <a href="#aws-data-landing-zone.GlobalVariablesBudgetSnsCacheRecord">GlobalVariablesBudgetSnsCacheRecord</a>}
21466
+
21467
+ ---
21468
+
21330
21469
 
21331
21470
 
21332
21471
  #### Properties <a name="Properties" id="Properties"></a>
@@ -21334,7 +21473,6 @@ new DlzBudget(scope: Construct, id: string, props: DlzBudgetProps)
21334
21473
  | **Name** | **Type** | **Description** |
21335
21474
  | --- | --- | --- |
21336
21475
  | <code><a href="#aws-data-landing-zone.DlzBudget.property.cfnBudget">cfnBudget</a></code> | <code>aws-cdk-lib.aws_budgets.CfnBudget</code> | *No description.* |
21337
- | <code><a href="#aws-data-landing-zone.DlzBudget.property.notificationTopic">notificationTopic</a></code> | <code>aws-cdk-lib.aws_sns.Topic</code> | *No description.* |
21338
21476
 
21339
21477
  ---
21340
21478
 
@@ -21348,16 +21486,6 @@ public readonly cfnBudget: CfnBudget;
21348
21486
 
21349
21487
  ---
21350
21488
 
21351
- ##### `notificationTopic`<sup>Required</sup> <a name="notificationTopic" id="aws-data-landing-zone.DlzBudget.property.notificationTopic"></a>
21352
-
21353
- ```typescript
21354
- public readonly notificationTopic: Topic;
21355
- ```
21356
-
21357
- - *Type:* aws-cdk-lib.aws_sns.Topic
21358
-
21359
- ---
21360
-
21361
21489
 
21362
21490
  ### DlzControlTowerEnabledControl <a name="DlzControlTowerEnabledControl" id="aws-data-landing-zone.DlzControlTowerEnabledControl"></a>
21363
21491
 
@@ -15,7 +15,7 @@ Tags used for budget filters must be activated as Cost Allocation Tags in your a
15
15
  Budget notifications are sent via Amazon SNS, which can be configured for the following delivery methods:
16
16
  - **Email**: Each email address must confirm the notification opt-in the first time it is deployed.
17
17
  - **Slack**: Notifications are sent to a designated Slack channel. The Slack workspace must be linked to the Management
18
- Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](sop-account-setup#aws-chatbot-and-slack-integration).
18
+ Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](/sop/account-setup#aws-chatbot-and-slack-integration).
19
19
 
20
20
  Below is an example of creating a budget for resources tagged with `Owner: backend`. Notifications will be sent to a
21
21
  specified Slack channel and email address once the budget exceeds $100.
@@ -41,7 +41,7 @@ specified Slack channel and email address once the budget exceeds $100.
41
41
  },
42
42
  amount: 100,
43
43
  subscribers: {
44
- slack: slackBudgetNotifications,
44
+ slack: [slackBudgetNotifications],
45
45
  emails: ['you@org.com'],
46
46
  },
47
47
  },
@@ -71,7 +71,7 @@ specified Slack channel and email address once the budget exceeds $100.
71
71
  },
72
72
  "amount": 100,
73
73
  "subscribers": {
74
- "slack": slack_budget_notifications,
74
+ "slacks": [slack_budget_notifications],
75
75
  "emails": ["you@org.com"],
76
76
  },
77
77
  },
@@ -82,6 +82,71 @@ specified Slack channel and email address once the budget exceeds $100.
82
82
  </Fragment>
83
83
  </DualCode>
84
84
 
85
+ ## Reusing the same SNS Topic
86
+
87
+ Each budget creates a unique SNS topic with the name `${budget.name}-topic`. If multiple budgets share the same
88
+ subscribers, you can use a single SNS topic to reduce the number of resources and subscription confirmations.
89
+ To do this, set the `snsTopicName` property in `BudgetSubscribers`. For example:
90
+
91
+ <DualCode>
92
+ <Fragment slot="ts">
93
+ ```ts {5}
94
+ import {App} from 'aws-cdk-lib';
95
+ import { DataLandingZone, SlackChannel } from 'aws-data-landing-zone';
96
+
97
+ const subscribers: BudgetSubscribers = {
98
+ snsTopicName: 'budgets',
99
+ slacks: [{
100
+ slackChannelConfigurationName: 'budget-alerts',
101
+ slackWorkspaceId: 'YourWorkspaceId',
102
+ slackChannelId: 'YourChannelId',
103
+ }],
104
+ emails: ["you@org.com"],
105
+ };
106
+
107
+ const app = new App();
108
+ const dlz = new DataLandingZone(app, {
109
+ budgets: [
110
+ ...Defaults.budgets(100, 20, subscribers),
111
+ { name: 'budget-high', amount: 1_000, subscribers },
112
+ { name: 'budget-high-1', amount: 2_000, subscribers },
113
+ ],
114
+ ...
115
+ });
116
+ ```
117
+ </Fragment>
118
+ <Fragment slot="python" >
119
+ ```python {5}
120
+ import aws_cdk as cdk
121
+ import aws_data_landing_zone as dlz
122
+
123
+ budget_subscribers = dlz.BudgetSubscribers(
124
+ sns_topic_name= "budgets",
125
+ slacks=[
126
+ dlz.SlackChannel(
127
+ slack_channel_configuration_name="budget-alerts",
128
+ slack_workspace_id="YourWorkspaceId",
129
+ slack_channel_id="YourChannelId",
130
+ )
131
+ ],
132
+ emails=[
133
+ "you@org.com",
134
+ ]
135
+ )
136
+
137
+ app = cdk.App()
138
+ dlz.DataLandingZone(app,
139
+ budgets=[
140
+ *dlz.Defaults.budgets(org_total=500, infra_dlz=20, subscribers=budget_subscribers),
141
+ dlz.DlzBudgetProps(name="budget-high", amount=1_000, subscribers=budget_subscribers),
142
+ dlz.DlzBudgetProps(name="budget-high-1", amount=2_000, subscribers=budget_subscribers)
143
+ ],
144
+ ...
145
+ )
146
+ ```
147
+ </Fragment>
148
+ </DualCode>
149
+
85
150
  ## Defaults
86
151
 
87
152
  The construct provides two default budgets available via `Defaults.budgets`. These include:
@@ -60,10 +60,14 @@ The example below assigns the `AdministratorAccess` permission set (created by
60
60
  // Create a custom permission sets from inline policies
61
61
  {
62
62
  name: 's3-only-access',
63
- inlinePolicyStatement: new iam.PolicyStatement({
64
- actions: ['s3:*'],
65
- resources: ['*'],
66
- })
63
+ inlinePolicyDocument: new iam.PolicyDocument({
64
+ statements: [
65
+ new iam.PolicyStatement({
66
+ actions: ['s3:GetObject'],
67
+ resources: ['arn:aws:s3:::mybucket/*'],
68
+ })
69
+ ]
70
+ }),
67
71
  }
68
72
  ],
69
73
  accessGroups: [
@@ -87,6 +91,7 @@ The example below assigns the `AdministratorAccess` permission set (created by
87
91
  ```python
88
92
  import aws_cdk as cdk
89
93
  import aws_data_landing_zone as dlz
94
+ from aws_cdk.aws_iam import (PolicyDocument, Effect, PolicyStatement)
90
95
 
91
96
  app = cdk.App()
92
97
  dlz.DataLandingZone(app,
@@ -108,16 +113,21 @@ The example below assigns the `AdministratorAccess` permission set (created by
108
113
  *Defaults.iam_identity_center_permission_sets(),
109
114
  # Create custom permission sets from managed policies
110
115
  {
111
- name: 'power-user-permission-set',
112
- managed_policy_arns: ['arn:aws:iam::aws:policy/PowerUserAccess']
116
+ name: 'power-user-permission-set',
117
+ managed_policy_arns: ['arn:aws:iam::aws:policy/PowerUserAccess']
113
118
  },
114
119
  # Create a custom permission sets from inline policies
115
120
  {
116
- name: 's3-only-access',
117
- inline_policy_statement: {
118
- actions: ['s3:*'],
119
- resources: ['*'],
120
- }
121
+ name: 's3-only-access',
122
+ inline_policy_document: PolicyDocument(
123
+ statements=[
124
+ PolicyStatement(
125
+ effect=Effect.ALLOW,
126
+ actions=["s3:*"],
127
+ resources=["*"]
128
+ )
129
+ ]
130
+ )
121
131
  }
122
132
  ],
123
133
  "access_groups": [
@@ -10,7 +10,7 @@ in all regions of all accounts. Security Hub should be accessed through the Audi
10
10
  Security Hub notifications are delivered via Amazon SNS, with support for the following methods:
11
11
  - **Email**: Each email address must confirm the notification opt-in the first time it is deployed.
12
12
  - **Slack**: Notifications are sent to a designated Slack channel. The Slack workspace must be linked to the Management
13
- Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](sop-account-setup#aws-chatbot-and-slack-integration).
13
+ Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](/sop/account-setup#aws-chatbot-and-slack-integration).
14
14
 
15
15
  :::note
16
16
  Email notifications are unstructured JSON and may appear messy. Slack notifications are well-formatted and easy to read.