Skip to content

Commit d9ff29d

Browse files
author
awstools
committed
feat(client-controltower): Adds support for child enabled baselines which allow you to see the enabled baseline status for individual accounts.
1 parent 9c56b96 commit d9ff29d

File tree

5 files changed

+71
-0
lines changed

5 files changed

+71
-0
lines changed

clients/client-controltower/src/commands/GetEnabledBaselineCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface GetEnabledBaselineCommandOutput extends GetEnabledBaselineOutpu
4646
* // baselineIdentifier: "STRING_VALUE", // required
4747
* // baselineVersion: "STRING_VALUE",
4848
* // targetIdentifier: "STRING_VALUE", // required
49+
* // parentIdentifier: "STRING_VALUE",
4950
* // statusSummary: { // EnablementStatusSummary
5051
* // status: "SUCCEEDED" || "FAILED" || "UNDER_CHANGE",
5152
* // lastOperationIdentifier: "STRING_VALUE",

clients/client-controltower/src/commands/ListEnabledBaselinesCommand.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,13 @@ export interface ListEnabledBaselinesCommandOutput extends ListEnabledBaselinesO
4545
* baselineIdentifiers: [ // EnabledBaselineBaselineIdentifiers
4646
* "STRING_VALUE",
4747
* ],
48+
* parentIdentifiers: [ // EnabledBaselineParentIdentifiers
49+
* "STRING_VALUE",
50+
* ],
4851
* },
4952
* nextToken: "STRING_VALUE",
5053
* maxResults: Number("int"),
54+
* includeChildren: true || false,
5155
* };
5256
* const command = new ListEnabledBaselinesCommand(input);
5357
* const response = await client.send(command);
@@ -58,6 +62,7 @@ export interface ListEnabledBaselinesCommandOutput extends ListEnabledBaselinesO
5862
* // baselineIdentifier: "STRING_VALUE", // required
5963
* // baselineVersion: "STRING_VALUE",
6064
* // targetIdentifier: "STRING_VALUE", // required
65+
* // parentIdentifier: "STRING_VALUE",
6166
* // statusSummary: { // EnablementStatusSummary
6267
* // status: "SUCCEEDED" || "FAILED" || "UNDER_CHANGE",
6368
* // lastOperationIdentifier: "STRING_VALUE",

clients/client-controltower/src/models/models_0.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,12 @@ export interface EnabledBaselineDetails {
837837
*/
838838
targetIdentifier: string | undefined;
839839

840+
/**
841+
* <p>An ARN that represents the parent <code>EnabledBaseline</code> at the Organizational Unit (OU) level, from which the child <code>EnabledBaseline</code> inherits its configuration. The value is returned by <code>GetEnabledBaseline</code>.</p>
842+
* @public
843+
*/
844+
parentIdentifier?: string | undefined;
845+
840846
/**
841847
* <p>The deployment summary of an <code>EnabledControl</code> or <code>EnabledBaseline</code> resource.</p>
842848
* @public
@@ -877,6 +883,12 @@ export interface EnabledBaselineFilter {
877883
* @public
878884
*/
879885
baselineIdentifiers?: string[] | undefined;
886+
887+
/**
888+
* <p>An optional filter that sets up a list of <code>parentIdentifiers</code> to filter the results of the <code>ListEnabledBaseline</code> output.</p>
889+
* @public
890+
*/
891+
parentIdentifiers?: string[] | undefined;
880892
}
881893

882894
/**
@@ -900,6 +912,12 @@ export interface ListEnabledBaselinesInput {
900912
* @public
901913
*/
902914
maxResults?: number | undefined;
915+
916+
/**
917+
* <p>A value that can be set to include the child enabled baselines in responses. The default value is false.</p>
918+
* @public
919+
*/
920+
includeChildren?: boolean | undefined;
903921
}
904922

905923
/**
@@ -931,6 +949,12 @@ export interface EnabledBaselineSummary {
931949
*/
932950
targetIdentifier: string | undefined;
933951

952+
/**
953+
* <p>An ARN that represents an object returned by <code>ListEnabledBaseline</code>, to describe an enabled baseline.</p>
954+
* @public
955+
*/
956+
parentIdentifier?: string | undefined;
957+
934958
/**
935959
* <p>The deployment summary of an <code>EnabledControl</code> or <code>EnabledBaseline</code> resource.</p>
936960
* @public

clients/client-controltower/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ export const se_ListEnabledBaselinesCommand = async (
479479
body = JSON.stringify(
480480
take(input, {
481481
filter: (_) => _json(_),
482+
includeChildren: [],
482483
maxResults: [],
483484
nextToken: [],
484485
})
@@ -1564,6 +1565,8 @@ const se_EnabledBaselineParameters = (input: EnabledBaselineParameter[], context
15641565
});
15651566
};
15661567

1568+
// se_EnabledBaselineParentIdentifiers omitted.
1569+
15671570
// se_EnabledBaselineTargetIdentifiers omitted.
15681571

15691572
// se_EnabledControlFilter omitted.
@@ -1692,6 +1695,7 @@ const de_EnabledBaselineDetails = (output: any, context: __SerdeContext): Enable
16921695
baselineIdentifier: __expectString,
16931696
baselineVersion: __expectString,
16941697
parameters: (_: any) => de_EnabledBaselineParameterSummaries(_, context),
1698+
parentIdentifier: __expectString,
16951699
statusSummary: _json,
16961700
targetIdentifier: __expectString,
16971701
}) as any;

codegen/sdk-codegen/aws-models/controltower.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,6 +2009,12 @@
20092009
"smithy.api#required": {}
20102010
}
20112011
},
2012+
"parentIdentifier": {
2013+
"target": "com.amazonaws.controltower#Arn",
2014+
"traits": {
2015+
"smithy.api#documentation": "<p>An ARN that represents the parent <code>EnabledBaseline</code> at the Organizational Unit (OU) level, from which the child <code>EnabledBaseline</code> inherits its configuration. The value is returned by <code>GetEnabledBaseline</code>.</p>"
2016+
}
2017+
},
20122018
"statusSummary": {
20132019
"target": "com.amazonaws.controltower#EnablementStatusSummary",
20142020
"traits": {
@@ -2040,6 +2046,12 @@
20402046
"traits": {
20412047
"smithy.api#documentation": "<p>Identifiers for the <code>Baseline</code> objects returned as part of the filter operation.</p>"
20422048
}
2049+
},
2050+
"parentIdentifiers": {
2051+
"target": "com.amazonaws.controltower#EnabledBaselineParentIdentifiers",
2052+
"traits": {
2053+
"smithy.api#documentation": "<p>An optional filter that sets up a list of <code>parentIdentifiers</code> to filter the results of the <code>ListEnabledBaseline</code> output.</p>"
2054+
}
20432055
}
20442056
},
20452057
"traits": {
@@ -2105,6 +2117,18 @@
21052117
"target": "com.amazonaws.controltower#EnabledBaselineParameter"
21062118
}
21072119
},
2120+
"com.amazonaws.controltower#EnabledBaselineParentIdentifiers": {
2121+
"type": "list",
2122+
"member": {
2123+
"target": "com.amazonaws.controltower#Arn"
2124+
},
2125+
"traits": {
2126+
"smithy.api#length": {
2127+
"min": 1,
2128+
"max": 5
2129+
}
2130+
}
2131+
},
21082132
"com.amazonaws.controltower#EnabledBaselineResource": {
21092133
"type": "resource",
21102134
"identifiers": {
@@ -2168,6 +2192,12 @@
21682192
"smithy.api#required": {}
21692193
}
21702194
},
2195+
"parentIdentifier": {
2196+
"target": "com.amazonaws.controltower#Arn",
2197+
"traits": {
2198+
"smithy.api#documentation": "<p>An ARN that represents an object returned by <code>ListEnabledBaseline</code>, to describe an enabled baseline.</p>"
2199+
}
2200+
},
21712201
"statusSummary": {
21722202
"target": "com.amazonaws.controltower#EnablementStatusSummary",
21732203
"traits": {
@@ -3544,6 +3574,13 @@
35443574
"traits": {
35453575
"smithy.api#documentation": "<p>The maximum number of results to be shown.</p>"
35463576
}
3577+
},
3578+
"includeChildren": {
3579+
"target": "smithy.api#Boolean",
3580+
"traits": {
3581+
"smithy.api#default": false,
3582+
"smithy.api#documentation": "<p>A value that can be set to include the child enabled baselines in responses. The default value is false.</p>"
3583+
}
35473584
}
35483585
},
35493586
"traits": {

0 commit comments

Comments
 (0)