Skip to content

chore(clients): retain structure members' iteration order #1838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions clients/client-sso/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import { MetadataBearer as $MetadataBearer } from "@aws-sdk/types";
* <p>Provides information about your AWS account.</p>
*/
export interface AccountInfo {
/**
* <p>The identifier of the AWS account that is assigned to the user.</p>
*/
accountId?: string;

/**
* <p>The display name of the AWS account that is assigned to the user.</p>
*/
Expand All @@ -14,11 +19,6 @@ export interface AccountInfo {
* <p>The email address of the AWS account that is assigned to the user.</p>
*/
emailAddress?: string;

/**
* <p>The identifier of the AWS account that is assigned to the user.</p>
*/
accountId?: string;
}

export namespace AccountInfo {
Expand All @@ -34,15 +34,15 @@ export interface GetRoleCredentialsRequest {
roleName: string | undefined;

/**
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
* <p>The identifier for the AWS account that is assigned to the user.</p>
*/
accessToken: string | undefined;
accountId: string | undefined;

/**
* <p>The identifier for the AWS account that is assigned to the user.</p>
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
*/
accountId: string | undefined;
accessToken: string | undefined;
}

export namespace GetRoleCredentialsRequest {
Expand All @@ -57,35 +57,35 @@ export namespace GetRoleCredentialsRequest {
*/
export interface RoleCredentials {
/**
* <p>The date on which temporary security credentials expire.</p>
* <p>The identifier used for the temporary security 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
* <i>AWS IAM User Guide</i>.</p>
*/
expiration?: number;
accessKeyId?: string;

/**
* <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
* <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
* <i>AWS IAM User Guide</i>.</p>
*/
sessionToken?: string;
secretAccessKey?: string;

/**
* <p>The identifier used for the temporary security 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
* <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
* <i>AWS IAM User Guide</i>.</p>
*/
accessKeyId?: string;
sessionToken?: string;

/**
* <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
* <i>AWS IAM User Guide</i>.</p>
* <p>The date on which temporary security credentials expire.</p>
*/
secretAccessKey?: string;
expiration?: number;
}

export namespace RoleCredentials {
export const filterSensitiveLog = (obj: RoleCredentials): any => ({
...obj,
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),
...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
});
}

Expand Down Expand Up @@ -166,25 +166,25 @@ export namespace UnauthorizedException {

export interface ListAccountRolesRequest {
/**
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
* <p>The page token from the previous response output when you request subsequent pages.</p>
*/
accessToken: string | undefined;
nextToken?: string;

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

/**
* <p>The identifier for the AWS account that is assigned to the user.</p>
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
*/
accountId: string | undefined;
accessToken: string | undefined;

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

export namespace ListAccountRolesRequest {
Expand All @@ -199,14 +199,14 @@ export namespace ListAccountRolesRequest {
*/
export interface RoleInfo {
/**
* <p>The identifier of the AWS account assigned to the user.</p>
* <p>The friendly name of the role that is assigned to the user.</p>
*/
accountId?: string;
roleName?: string;

/**
* <p>The friendly name of the role that is assigned to the user.</p>
* <p>The identifier of the AWS account assigned to the user.</p>
*/
roleName?: string;
accountId?: string;
}

export namespace RoleInfo {
Expand All @@ -217,14 +217,14 @@ export namespace RoleInfo {

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

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

export namespace ListAccountRolesResponse {
Expand All @@ -235,20 +235,20 @@ export namespace ListAccountRolesResponse {

export interface ListAccountsRequest {
/**
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
*/
accessToken: string | undefined;
nextToken?: string;

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

/**
* <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
* <p>The token issued by the <code>CreateToken</code> API call. For more information, see
* <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>
*/
nextToken?: string;
accessToken: string | undefined;
}

export namespace ListAccountsRequest {
Expand All @@ -260,14 +260,14 @@ export namespace ListAccountsRequest {

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

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

export namespace ListAccountsResponse {
Expand Down
4 changes: 2 additions & 2 deletions clients/client-sso/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ export const serializeAws_restJson1ListAccountRolesCommand = async (
};
let resolvedPath = "/assignment/roles";
const query: any = {
...(input.nextToken !== undefined && { next_token: input.nextToken }),
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
...(input.accountId !== undefined && { account_id: input.accountId }),
...(input.nextToken !== undefined && { next_token: input.nextToken }),
};
let body: any;
const { hostname, protocol = "https", port } = await context.endpoint();
Expand All @@ -85,8 +85,8 @@ export const serializeAws_restJson1ListAccountsCommand = async (
};
let resolvedPath = "/assignment/accounts";
const query: any = {
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
...(input.nextToken !== undefined && { next_token: input.nextToken }),
...(input.maxResults !== undefined && { max_result: input.maxResults.toString() }),
};
let body: any;
const { hostname, protocol = "https", port } = await context.endpoint();
Expand Down