Skip to content

Commit 13b2406

Browse files
author
awstools
committed
feat(client-cost-optimization-hub): Adding includeMemberAccounts field to the response of ListEnrollmentStatuses API.
1 parent 28bd5fc commit 13b2406

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

clients/client-cost-optimization-hub/src/commands/ListEnrollmentStatusesCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export interface ListEnrollmentStatusesCommandOutput extends ListEnrollmentStatu
5757
* // createdTimestamp: new Date("TIMESTAMP"),
5858
* // },
5959
* // ],
60+
* // includeMemberAccounts: true || false,
6061
* // nextToken: "STRING_VALUE",
6162
* // };
6263
*

clients/client-cost-optimization-hub/src/models/models_0.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ export interface ListEnrollmentStatusesRequest {
20302030

20312031
/**
20322032
* @public
2033-
* <p>The enrollment status of a specific account ID in the organization.</p>
2033+
* <p>The account ID of a member account in the organization.</p>
20342034
*/
20352035
accountId?: string;
20362036

@@ -2053,10 +2053,18 @@ export interface ListEnrollmentStatusesRequest {
20532053
export interface ListEnrollmentStatusesResponse {
20542054
/**
20552055
* @public
2056-
* <p>The account enrollment statuses.</p>
2056+
* <p>The enrollment status of a specific account ID, including creation and last updated
2057+
* timestamps.</p>
20572058
*/
20582059
items?: AccountEnrollmentStatus[];
20592060

2061+
/**
2062+
* @public
2063+
* <p>The enrollment status of all member accounts in the organization if the account is the
2064+
* management account.</p>
2065+
*/
2066+
includeMemberAccounts?: boolean;
2067+
20602068
/**
20612069
* @public
20622070
* <p>The token to retrieve the next set of results.</p>

clients/client-cost-optimization-hub/src/protocols/Aws_json1_0.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): L
711711
*/
712712
const de_ListEnrollmentStatusesResponse = (output: any, context: __SerdeContext): ListEnrollmentStatusesResponse => {
713713
return take(output, {
714+
includeMemberAccounts: __expectBoolean,
714715
items: (_: any) => de_AccountEnrollmentStatuses(_, context),
715716
nextToken: __expectString,
716717
}) as any;

codegen/sdk-codegen/aws-models/cost-optimization-hub.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,7 +1897,7 @@
18971897
"accountId": {
18981898
"target": "com.amazonaws.costoptimizationhub#AccountId",
18991899
"traits": {
1900-
"smithy.api#documentation": "<p>The enrollment status of a specific account ID in the organization.</p>"
1900+
"smithy.api#documentation": "<p>The account ID of a member account in the organization.</p>"
19011901
}
19021902
},
19031903
"nextToken": {
@@ -1923,7 +1923,13 @@
19231923
"items": {
19241924
"target": "com.amazonaws.costoptimizationhub#AccountEnrollmentStatuses",
19251925
"traits": {
1926-
"smithy.api#documentation": "<p>The account enrollment statuses.</p>"
1926+
"smithy.api#documentation": "<p>The enrollment status of a specific account ID, including creation and last updated\n timestamps.</p>"
1927+
}
1928+
},
1929+
"includeMemberAccounts": {
1930+
"target": "smithy.api#Boolean",
1931+
"traits": {
1932+
"smithy.api#documentation": "<p>The enrollment status of all member accounts in the organization if the account is the\n management account.</p>"
19271933
}
19281934
},
19291935
"nextToken": {

0 commit comments

Comments
 (0)