Skip to content

Commit aa396a0

Browse files
authored
chore(clients): retain structure members' iteration order (#1838)
1 parent 3d36682 commit aa396a0

File tree

2 files changed

+47
-47
lines changed

2 files changed

+47
-47
lines changed

clients/client-sso/models/models_0.ts

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types";
55
* <p>Provides information about your AWS account.</p>
66
*/
77
export interface AccountInfo {
8+
/**
9+
* <p>The identifier of the AWS account that is assigned to the user.</p>
10+
*/
11+
accountId?: string;
12+
813
/**
914
* <p>The display name of the AWS account that is assigned to the user.</p>
1015
*/
@@ -14,11 +19,6 @@ export interface AccountInfo {
1419
* <p>The email address of the AWS account that is assigned to the user.</p>
1520
*/
1621
emailAddress?: string;
17-
18-
/**
19-
* <p>The identifier of the AWS account that is assigned to the user.</p>
20-
*/
21-
accountId?: string;
2222
}
2323

2424
export namespace AccountInfo {
@@ -34,15 +34,15 @@ export interface GetRoleCredentialsRequest {
3434
roleName: string | undefined;
3535

3636
/**
37-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
38-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
37+
* <p>The identifier for the AWS account that is assigned to the user.</p>
3938
*/
40-
accessToken: string | undefined;
39+
accountId: string | undefined;
4140

4241
/**
43-
* <p>The identifier for the AWS account that is assigned to the user.</p>
42+
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
43+
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
4444
*/
45-
accountId: string | undefined;
45+
accessToken: string | undefined;
4646
}
4747

4848
export namespace GetRoleCredentialsRequest {
@@ -57,35 +57,35 @@ export namespace GetRoleCredentialsRequest {
5757
*/
5858
export interface RoleCredentials {
5959
/**
60-
* <p>The date on which temporary security credentials expire.</p>
60+
* <p>The identifier used for the temporary security credentials. For more information, see
61+
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
62+
* <i>AWS IAM User Guide</i>.</p>
6163
*/
62-
expiration?: number;
64+
accessKeyId?: string;
6365

6466
/**
65-
* <p>The token used for temporary credentials. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
67+
* <p>The key that is used to sign the request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
6668
* <i>AWS IAM User Guide</i>.</p>
6769
*/
68-
sessionToken?: string;
70+
secretAccessKey?: string;
6971

7072
/**
71-
* <p>The identifier used for the temporary security credentials. For more information, see
72-
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
73+
* <p>The token used for temporary credentials. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
7374
* <i>AWS IAM User Guide</i>.</p>
7475
*/
75-
accessKeyId?: string;
76+
sessionToken?: string;
7677

7778
/**
78-
* <p>The key that is used to sign the request. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html">Using Temporary Security Credentials to Request Access to AWS Resources</a> in the
79-
* <i>AWS IAM User Guide</i>.</p>
79+
* <p>The date on which temporary security credentials expire.</p>
8080
*/
81-
secretAccessKey?: string;
81+
expiration?: number;
8282
}
8383

8484
export namespace RoleCredentials {
8585
export const filterSensitiveLog = (obj: RoleCredentials): any => ({
8686
...obj,
87-
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
8887
...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),
88+
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
8989
});
9090
}
9191

@@ -166,25 +166,25 @@ export namespace UnauthorizedException {
166166

167167
export interface ListAccountRolesRequest {
168168
/**
169-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
170-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
169+
* <p>The page token from the previous response output when you request subsequent pages.</p>
171170
*/
172-
accessToken: string | undefined;
171+
nextToken?: string;
173172

174173
/**
175174
* <p>The number of items that clients can request per page.</p>
176175
*/
177176
maxResults?: number;
178177

179178
/**
180-
* <p>The identifier for the AWS account that is assigned to the user.</p>
179+
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
180+
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
181181
*/
182-
accountId: string | undefined;
182+
accessToken: string | undefined;
183183

184184
/**
185-
* <p>The page token from the previous response output when you request subsequent pages.</p>
185+
* <p>The identifier for the AWS account that is assigned to the user.</p>
186186
*/
187-
nextToken?: string;
187+
accountId: string | undefined;
188188
}
189189

190190
export namespace ListAccountRolesRequest {
@@ -199,14 +199,14 @@ export namespace ListAccountRolesRequest {
199199
*/
200200
export interface RoleInfo {
201201
/**
202-
* <p>The identifier of the AWS account assigned to the user.</p>
202+
* <p>The friendly name of the role that is assigned to the user.</p>
203203
*/
204-
accountId?: string;
204+
roleName?: string;
205205

206206
/**
207-
* <p>The friendly name of the role that is assigned to the user.</p>
207+
* <p>The identifier of the AWS account assigned to the user.</p>
208208
*/
209-
roleName?: string;
209+
accountId?: string;
210210
}
211211

212212
export namespace RoleInfo {
@@ -217,14 +217,14 @@ export namespace RoleInfo {
217217

218218
export interface ListAccountRolesResponse {
219219
/**
220-
* <p>A paginated response with the list of roles and the next token if more results are available.</p>
220+
* <p>The page token client that is used to retrieve the list of accounts.</p>
221221
*/
222-
roleList?: RoleInfo[];
222+
nextToken?: string;
223223

224224
/**
225-
* <p>The page token client that is used to retrieve the list of accounts.</p>
225+
* <p>A paginated response with the list of roles and the next token if more results are available.</p>
226226
*/
227-
nextToken?: string;
227+
roleList?: RoleInfo[];
228228
}
229229

230230
export namespace ListAccountRolesResponse {
@@ -235,20 +235,20 @@ export namespace ListAccountRolesResponse {
235235

236236
export interface ListAccountsRequest {
237237
/**
238-
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
239-
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
238+
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
240239
*/
241-
accessToken: string | undefined;
240+
nextToken?: string;
242241

243242
/**
244243
* <p>This is the number of items clients can request per page.</p>
245244
*/
246245
maxResults?: number;
247246

248247
/**
249-
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
248+
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
249+
* <a href="https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html">CreateToken</a> in the <i>AWS SSO OIDC API Reference Guide</i>.</p>
250250
*/
251-
nextToken?: string;
251+
accessToken: string | undefined;
252252
}
253253

254254
export namespace ListAccountsRequest {
@@ -260,14 +260,14 @@ export namespace ListAccountsRequest {
260260

261261
export interface ListAccountsResponse {
262262
/**
263-
* <p>A paginated response with the list of account information and the next token if more results are available.</p>
263+
* <p>The page token client that is used to retrieve the list of accounts.</p>
264264
*/
265-
accountList?: AccountInfo[];
265+
nextToken?: string;
266266

267267
/**
268-
* <p>The page token client that is used to retrieve the list of accounts.</p>
268+
* <p>A paginated response with the list of account information and the next token if more results are available.</p>
269269
*/
270-
nextToken?: string;
270+
accountList?: AccountInfo[];
271271
}
272272

273273
export namespace ListAccountsResponse {

clients/client-sso/protocols/Aws_restJson1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export const serializeAws_restJson1ListAccountRolesCommand = async (
5858
};
5959
let resolvedPath = "/assignment/roles";
6060
const query: any = {
61+
...(input.nextToken !== undefined && { next_token: input.nextToken }),
6162
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
6263
...(input.accountId !== undefined && { account_id: input.accountId }),
63-
...(input.nextToken !== undefined && { next_token: input.nextToken }),
6464
};
6565
let body: any;
6666
const { hostname, protocol = "https", port } = await context.endpoint();
@@ -85,8 +85,8 @@ export const serializeAws_restJson1ListAccountsCommand = async (
8585
};
8686
let resolvedPath = "/assignment/accounts";
8787
const query: any = {
88-
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
8988
...(input.nextToken !== undefined && { next_token: input.nextToken }),
89+
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
9090
};
9191
let body: any;
9292
const { hostname, protocol = "https", port } = await context.endpoint();

0 commit comments

Comments
 (0)