Skip to content

Commit 79228e2

Browse files
committed
update Auditing resource
1 parent a0bca6b commit 79228e2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

API.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/l1-resources/auditing.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ export class CdkTestingStack extends cdk.Stack {
1313
super(scope, id, props);
1414

1515
const atlasProps = this.getContextProps();
16-
16+
1717
const auditing = new CfnAuditing(this, 'Auditing', {
18-
groupId: atlasProps.projId,
18+
projectId: atlasProps.projId,
1919
profile: atlasProps.profile,
2020
});
2121

2222
}
2323

2424
getContextProps(): AtlasStackProps {
2525
const projId = this.node.tryGetContext('projId');
26-
if (!projId){
26+
if (!projId) {
2727
throw "No context value specified for projId. Please specify via the cdk context."
2828
}
2929

src/l1-resources/auditing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You can find more information about activating this type in the [AWS CloudFormat
4141

4242
```ts
4343
const auditing = new CfnAuditing(this, 'Auditing', {
44-
groupId: atlasProps.projId,
44+
projectId: atlasProps.projId,
4545
profile: atlasProps.profile,
4646
});
4747
```

src/l1-resources/auditing/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export interface CfnAuditingProps {
1818
/**
1919
* Unique 24-hexadecimal digit string that identifies your project.
2020
*
21-
* @schema CfnAuditingProps#GroupId
21+
* @schema CfnAuditingProps#ProjectId
2222
*/
23-
readonly groupId: string;
23+
readonly projectId: string;
2424
}
2525

2626
/**
@@ -35,7 +35,7 @@ export function toJson_CfnAuditingProps(
3535
}
3636
const result = {
3737
Profile: obj.profile,
38-
GroupId: obj.groupId,
38+
ProjectId: obj.projectId,
3939
};
4040
// filter undefined values
4141
return Object.entries(result).reduce(

0 commit comments

Comments
 (0)