Skip to content

Commit

Permalink
feat(client-cost-optimization-hub): Adding includeMemberAccounts fiel…
Browse files Browse the repository at this point in the history
…d to the response of ListEnrollmentStatuses API.
  • Loading branch information
awstools committed Feb 9, 2024
1 parent 28bd5fc commit 13b2406
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface ListEnrollmentStatusesCommandOutput extends ListEnrollmentStatu
* // createdTimestamp: new Date("TIMESTAMP"),
* // },
* // ],
* // includeMemberAccounts: true || false,
* // nextToken: "STRING_VALUE",
* // };
*
Expand Down
12 changes: 10 additions & 2 deletions clients/client-cost-optimization-hub/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2030,7 +2030,7 @@ export interface ListEnrollmentStatusesRequest {

/**
* @public
* <p>The enrollment status of a specific account ID in the organization.</p>
* <p>The account ID of a member account in the organization.</p>
*/
accountId?: string;

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

/**
* @public
* <p>The enrollment status of all member accounts in the organization if the account is the
* management account.</p>
*/
includeMemberAccounts?: boolean;

/**
* @public
* <p>The token to retrieve the next set of results.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): L
*/
const de_ListEnrollmentStatusesResponse = (output: any, context: __SerdeContext): ListEnrollmentStatusesResponse => {
return take(output, {
includeMemberAccounts: __expectBoolean,
items: (_: any) => de_AccountEnrollmentStatuses(_, context),
nextToken: __expectString,
}) as any;
Expand Down
10 changes: 8 additions & 2 deletions codegen/sdk-codegen/aws-models/cost-optimization-hub.json
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@
"accountId": {
"target": "com.amazonaws.costoptimizationhub#AccountId",
"traits": {
"smithy.api#documentation": "<p>The enrollment status of a specific account ID in the organization.</p>"
"smithy.api#documentation": "<p>The account ID of a member account in the organization.</p>"
}
},
"nextToken": {
Expand All @@ -1923,7 +1923,13 @@
"items": {
"target": "com.amazonaws.costoptimizationhub#AccountEnrollmentStatuses",
"traits": {
"smithy.api#documentation": "<p>The account enrollment statuses.</p>"
"smithy.api#documentation": "<p>The enrollment status of a specific account ID, including creation and last updated\n timestamps.</p>"
}
},
"includeMemberAccounts": {
"target": "smithy.api#Boolean",
"traits": {
"smithy.api#documentation": "<p>The enrollment status of all member accounts in the organization if the account is the\n management account.</p>"
}
},
"nextToken": {
Expand Down

0 comments on commit 13b2406

Please sign in to comment.