Skip to content

Commit 9aa041c

Browse files
committed
add new attrs
1 parent 7f85d6d commit 9aa041c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

examples/l1-resources/organization.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ export class CdkTestingStack extends cdk.Stack {
2929
apiKey: {
3030
roles: ["ORG_OWNER"],
3131
description: "test-cdk"
32-
}
33-
32+
},
33+
skipDefaultAlertsSettings: true,
34+
genAiFeaturesEnabled: true
3435
});
3536
}
3637

src/l1-resources/organization/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,21 @@ export interface CfnOrganizationProps {
4848
*/
4949
readonly awsSecretName: string;
5050

51+
/**
52+
* Disables automatic alert creation. When set to `true`, Atlas doesn't automatically create organization-level alerts. Defaults to `true` for new Atlas Organizations created with the provider to prevent infrastructure drift caused by creation of new alerts.
53+
*
54+
* @default true` for new Atlas Organizations created with the provider to prevent infrastructure drift caused by creation of new alerts.
55+
* @schema CfnOrganizationProps#SkipDefaultAlertsSettings
56+
*/
57+
readonly skipDefaultAlertsSettings?: boolean;
58+
59+
/**
60+
* Flag that indicates whether this organization has access to generative AI features. This setting only applies to Atlas Commercial and defaults to `true`. With this setting on, Project Owners may be able to enable or disable individual AI features at the project level. To learn more, see https://www.mongodb.com/docs/generative-ai-faq/
61+
*
62+
* @schema CfnOrganizationProps#GenAIFeaturesEnabled
63+
*/
64+
readonly genAiFeaturesEnabled?: boolean;
65+
5166
/**
5267
* Flag that indicates whether this organization has been deleted.
5368
*
@@ -94,6 +109,8 @@ export function toJson_CfnOrganizationProps(
94109
OrgOwnerId: obj.orgOwnerId,
95110
Profile: obj.profile,
96111
AwsSecretName: obj.awsSecretName,
112+
SkipDefaultAlertsSettings: obj.skipDefaultAlertsSettings,
113+
GenAIFeaturesEnabled: obj.genAiFeaturesEnabled,
97114
IsDeleted: obj.isDeleted,
98115
ApiAccessListRequired: obj.apiAccessListRequired,
99116
MultiFactorAuthRequired: obj.multiFactorAuthRequired,

0 commit comments

Comments
 (0)