@aws-sdk/client-sso 3.33.0 → 3.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/SSO.js +1 -20
  3. package/dist-cjs/SSOClient.js +32 -0
  4. package/{dist/cjs → dist-cjs}/commands/GetRoleCredentialsCommand.js +2 -28
  5. package/{dist/cjs → dist-cjs}/commands/ListAccountRolesCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/ListAccountsCommand.js +2 -29
  7. package/{dist/cjs → dist-cjs}/commands/LogoutCommand.js +2 -27
  8. package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
  9. package/{dist/cjs → dist-cjs}/index.js +0 -1
  10. package/{dist/cjs → dist-cjs}/models/index.js +0 -1
  11. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -43
  12. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  13. package/{dist/cjs → dist-cjs}/pagination/ListAccountRolesPaginator.js +1 -12
  14. package/{dist/cjs → dist-cjs}/pagination/ListAccountsPaginator.js +1 -12
  15. package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +4 -10
  16. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  17. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  18. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  19. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  20. package/{dist/es → dist-es}/SSO.js +2 -21
  21. package/{dist/es → dist-es}/SSOClient.js +2 -26
  22. package/{dist/es → dist-es}/commands/GetRoleCredentialsCommand.js +4 -31
  23. package/{dist/es → dist-es}/commands/ListAccountRolesCommand.js +4 -30
  24. package/{dist/es → dist-es}/commands/ListAccountsCommand.js +4 -32
  25. package/{dist/es → dist-es}/commands/LogoutCommand.js +4 -30
  26. package/{dist/es → dist-es}/endpoints.js +1 -2
  27. package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
  28. package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
  29. package/{dist/es → dist-es}/models/models_0.js +0 -43
  30. package/dist-es/pagination/Interfaces.js +1 -0
  31. package/{dist/es → dist-es}/pagination/ListAccountRolesPaginator.js +17 -30
  32. package/{dist/es → dist-es}/pagination/ListAccountsPaginator.js +17 -30
  33. package/{dist/es → dist-es}/protocols/Aws_restJson1.js +96 -102
  34. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
  35. package/{dist/es → dist-es}/runtimeConfig.js +1 -5
  36. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
  37. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
  38. package/{dist/types → dist-types}/SSO.d.ts +2 -2
  39. package/{dist/types → dist-types}/SSOClient.d.ts +5 -5
  40. package/{dist/types → dist-types}/commands/GetRoleCredentialsCommand.d.ts +3 -3
  41. package/{dist/types → dist-types}/commands/ListAccountRolesCommand.d.ts +3 -3
  42. package/{dist/types → dist-types}/commands/ListAccountsCommand.d.ts +3 -3
  43. package/{dist/types → dist-types}/commands/LogoutCommand.d.ts +3 -3
  44. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  45. package/{index.ts → dist-types/index.d.ts} +0 -0
  46. package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
  47. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  48. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  49. package/{dist/types → dist-types}/pagination/ListAccountRolesPaginator.d.ts +1 -1
  50. package/{dist/types → dist-types}/pagination/ListAccountsPaginator.d.ts +1 -1
  51. package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
  52. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
  53. package/{dist/types → dist-types}/runtimeConfig.d.ts +0 -0
  54. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  55. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  56. package/{dist/types → dist-types}/ts3.4/SSO.d.ts +7 -35
  57. package/dist-types/ts3.4/SSOClient.d.ts +68 -0
  58. package/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/LogoutCommand.d.ts +17 -0
  62. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  63. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  64. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +154 -0
  66. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  67. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountRolesPaginator.d.ts +1 -1
  68. package/{dist/types → dist-types}/ts3.4/pagination/ListAccountsPaginator.d.ts +1 -1
  69. package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
  70. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +1 -3
  72. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +49 -46
  75. package/SSO.ts +0 -160
  76. package/SSOClient.ts +0 -245
  77. package/commands/GetRoleCredentialsCommand.ts +0 -95
  78. package/commands/ListAccountRolesCommand.ts +0 -94
  79. package/commands/ListAccountsCommand.ts +0 -96
  80. package/commands/LogoutCommand.ts +0 -87
  81. package/dist/cjs/SSO.js.map +0 -1
  82. package/dist/cjs/SSOClient.js +0 -56
  83. package/dist/cjs/SSOClient.js.map +0 -1
  84. package/dist/cjs/commands/GetRoleCredentialsCommand.js.map +0 -1
  85. package/dist/cjs/commands/ListAccountRolesCommand.js.map +0 -1
  86. package/dist/cjs/commands/ListAccountsCommand.js.map +0 -1
  87. package/dist/cjs/commands/LogoutCommand.js.map +0 -1
  88. package/dist/cjs/endpoints.js.map +0 -1
  89. package/dist/cjs/index.js.map +0 -1
  90. package/dist/cjs/models/index.js.map +0 -1
  91. package/dist/cjs/models/models_0.js.map +0 -1
  92. package/dist/cjs/package.json +0 -88
  93. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  94. package/dist/cjs/pagination/ListAccountRolesPaginator.js.map +0 -1
  95. package/dist/cjs/pagination/ListAccountsPaginator.js.map +0 -1
  96. package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
  97. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  98. package/dist/cjs/runtimeConfig.js.map +0 -1
  99. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  100. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  101. package/dist/es/SSO.js.map +0 -1
  102. package/dist/es/SSOClient.js.map +0 -1
  103. package/dist/es/commands/GetRoleCredentialsCommand.js.map +0 -1
  104. package/dist/es/commands/ListAccountRolesCommand.js.map +0 -1
  105. package/dist/es/commands/ListAccountsCommand.js.map +0 -1
  106. package/dist/es/commands/LogoutCommand.js.map +0 -1
  107. package/dist/es/endpoints.js.map +0 -1
  108. package/dist/es/index.js +0 -11
  109. package/dist/es/index.js.map +0 -1
  110. package/dist/es/models/index.js +0 -2
  111. package/dist/es/models/index.js.map +0 -1
  112. package/dist/es/models/models_0.js.map +0 -1
  113. package/dist/es/package.json +0 -88
  114. package/dist/es/pagination/Interfaces.js +0 -2
  115. package/dist/es/pagination/Interfaces.js.map +0 -1
  116. package/dist/es/pagination/ListAccountRolesPaginator.js.map +0 -1
  117. package/dist/es/pagination/ListAccountsPaginator.js.map +0 -1
  118. package/dist/es/protocols/Aws_restJson1.js.map +0 -1
  119. package/dist/es/runtimeConfig.browser.js.map +0 -1
  120. package/dist/es/runtimeConfig.js.map +0 -1
  121. package/dist/es/runtimeConfig.native.js.map +0 -1
  122. package/dist/es/runtimeConfig.shared.js.map +0 -1
  123. package/dist/types/ts3.4/SSOClient.d.ts +0 -145
  124. package/dist/types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +0 -36
  125. package/dist/types/ts3.4/commands/ListAccountRolesCommand.d.ts +0 -35
  126. package/dist/types/ts3.4/commands/ListAccountsCommand.d.ts +0 -37
  127. package/dist/types/ts3.4/commands/LogoutCommand.d.ts +0 -35
  128. package/dist/types/ts3.4/models/models_0.d.ts +0 -255
  129. package/endpoints.ts +0 -94
  130. package/jest.config.js +0 -4
  131. package/models/models_0.ts +0 -334
  132. package/pagination/Interfaces.ts +0 -7
  133. package/pagination/ListAccountRolesPaginator.ts +0 -58
  134. package/pagination/ListAccountsPaginator.ts +0 -58
  135. package/protocols/Aws_restJson1.ts +0 -621
  136. package/runtimeConfig.browser.ts +0 -38
  137. package/runtimeConfig.native.ts +0 -16
  138. package/runtimeConfig.shared.ts +0 -16
  139. package/runtimeConfig.ts +0 -41
  140. package/tsconfig.es.json +0 -12
  141. package/tsconfig.json +0 -32
@@ -1,255 +0,0 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
2
- /**
3
- * <p>Provides information about your AWS account.</p>
4
- */
5
- export interface AccountInfo {
6
- /**
7
- * <p>The identifier of the AWS account that is assigned to the user.</p>
8
- */
9
- accountId?: string;
10
- /**
11
- * <p>The display name of the AWS account that is assigned to the user.</p>
12
- */
13
- accountName?: string;
14
- /**
15
- * <p>The email address of the AWS account that is assigned to the user.</p>
16
- */
17
- emailAddress?: string;
18
- }
19
- export declare namespace AccountInfo {
20
- /**
21
- * @internal
22
- */
23
- const filterSensitiveLog: (obj: AccountInfo) => any;
24
- }
25
- export interface GetRoleCredentialsRequest {
26
- /**
27
- * <p>The friendly name of the role that is assigned to the user.</p>
28
- */
29
- roleName: string | undefined;
30
- /**
31
- * <p>The identifier for the AWS account that is assigned to the user.</p>
32
- */
33
- accountId: string | undefined;
34
- /**
35
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
36
- * <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
- */
38
- accessToken: string | undefined;
39
- }
40
- export declare namespace GetRoleCredentialsRequest {
41
- /**
42
- * @internal
43
- */
44
- const filterSensitiveLog: (obj: GetRoleCredentialsRequest) => any;
45
- }
46
- /**
47
- * <p>Provides information about the role credentials that are assigned to the user.</p>
48
- */
49
- export interface RoleCredentials {
50
- /**
51
- * <p>The identifier used for the temporary security credentials. For more information, see
52
- * <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
53
- * <i>AWS IAM User Guide</i>.</p>
54
- */
55
- accessKeyId?: string;
56
- /**
57
- * <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
58
- * <i>AWS IAM User Guide</i>.</p>
59
- */
60
- secretAccessKey?: string;
61
- /**
62
- * <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
63
- * <i>AWS IAM User Guide</i>.</p>
64
- */
65
- sessionToken?: string;
66
- /**
67
- * <p>The date on which temporary security credentials expire.</p>
68
- */
69
- expiration?: number;
70
- }
71
- export declare namespace RoleCredentials {
72
- /**
73
- * @internal
74
- */
75
- const filterSensitiveLog: (obj: RoleCredentials) => any;
76
- }
77
- export interface GetRoleCredentialsResponse {
78
- /**
79
- * <p>The credentials for the role that is assigned to the user.</p>
80
- */
81
- roleCredentials?: RoleCredentials;
82
- }
83
- export declare namespace GetRoleCredentialsResponse {
84
- /**
85
- * @internal
86
- */
87
- const filterSensitiveLog: (obj: GetRoleCredentialsResponse) => any;
88
- }
89
- /**
90
- * <p>Indicates that a problem occurred with the input to the request. For example, a required
91
- * parameter might be missing or out of range.</p>
92
- */
93
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
94
- name: "InvalidRequestException";
95
- $fault: "client";
96
- message?: string;
97
- }
98
- export declare namespace InvalidRequestException {
99
- /**
100
- * @internal
101
- */
102
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
103
- }
104
- /**
105
- * <p>The specified resource doesn't exist.</p>
106
- */
107
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
108
- name: "ResourceNotFoundException";
109
- $fault: "client";
110
- message?: string;
111
- }
112
- export declare namespace ResourceNotFoundException {
113
- /**
114
- * @internal
115
- */
116
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
117
- }
118
- /**
119
- * <p>Indicates that the request is being made too frequently and is more than what the server can handle.</p>
120
- */
121
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
122
- name: "TooManyRequestsException";
123
- $fault: "client";
124
- message?: string;
125
- }
126
- export declare namespace TooManyRequestsException {
127
- /**
128
- * @internal
129
- */
130
- const filterSensitiveLog: (obj: TooManyRequestsException) => any;
131
- }
132
- /**
133
- * <p>Indicates that the request is not authorized. This can happen due to an invalid access token in the request.</p>
134
- */
135
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
136
- name: "UnauthorizedException";
137
- $fault: "client";
138
- message?: string;
139
- }
140
- export declare namespace UnauthorizedException {
141
- /**
142
- * @internal
143
- */
144
- const filterSensitiveLog: (obj: UnauthorizedException) => any;
145
- }
146
- export interface ListAccountRolesRequest {
147
- /**
148
- * <p>The page token from the previous response output when you request subsequent pages.</p>
149
- */
150
- nextToken?: string;
151
- /**
152
- * <p>The number of items that clients can request per page.</p>
153
- */
154
- maxResults?: number;
155
- /**
156
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
157
- * <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>
158
- */
159
- accessToken: string | undefined;
160
- /**
161
- * <p>The identifier for the AWS account that is assigned to the user.</p>
162
- */
163
- accountId: string | undefined;
164
- }
165
- export declare namespace ListAccountRolesRequest {
166
- /**
167
- * @internal
168
- */
169
- const filterSensitiveLog: (obj: ListAccountRolesRequest) => any;
170
- }
171
- /**
172
- * <p>Provides information about the role that is assigned to the user.</p>
173
- */
174
- export interface RoleInfo {
175
- /**
176
- * <p>The friendly name of the role that is assigned to the user.</p>
177
- */
178
- roleName?: string;
179
- /**
180
- * <p>The identifier of the AWS account assigned to the user.</p>
181
- */
182
- accountId?: string;
183
- }
184
- export declare namespace RoleInfo {
185
- /**
186
- * @internal
187
- */
188
- const filterSensitiveLog: (obj: RoleInfo) => any;
189
- }
190
- export interface ListAccountRolesResponse {
191
- /**
192
- * <p>The page token client that is used to retrieve the list of accounts.</p>
193
- */
194
- nextToken?: string;
195
- /**
196
- * <p>A paginated response with the list of roles and the next token if more results are available.</p>
197
- */
198
- roleList?: RoleInfo[];
199
- }
200
- export declare namespace ListAccountRolesResponse {
201
- /**
202
- * @internal
203
- */
204
- const filterSensitiveLog: (obj: ListAccountRolesResponse) => any;
205
- }
206
- export interface ListAccountsRequest {
207
- /**
208
- * <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
209
- */
210
- nextToken?: string;
211
- /**
212
- * <p>This is the number of items clients can request per page.</p>
213
- */
214
- maxResults?: number;
215
- /**
216
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
217
- * <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>
218
- */
219
- accessToken: string | undefined;
220
- }
221
- export declare namespace ListAccountsRequest {
222
- /**
223
- * @internal
224
- */
225
- const filterSensitiveLog: (obj: ListAccountsRequest) => any;
226
- }
227
- export interface ListAccountsResponse {
228
- /**
229
- * <p>The page token client that is used to retrieve the list of accounts.</p>
230
- */
231
- nextToken?: string;
232
- /**
233
- * <p>A paginated response with the list of account information and the next token if more results are available.</p>
234
- */
235
- accountList?: AccountInfo[];
236
- }
237
- export declare namespace ListAccountsResponse {
238
- /**
239
- * @internal
240
- */
241
- const filterSensitiveLog: (obj: ListAccountsResponse) => any;
242
- }
243
- export interface LogoutRequest {
244
- /**
245
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
246
- * <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>
247
- */
248
- accessToken: string | undefined;
249
- }
250
- export declare namespace LogoutRequest {
251
- /**
252
- * @internal
253
- */
254
- const filterSensitiveLog: (obj: LogoutRequest) => any;
255
- }
package/endpoints.ts DELETED
@@ -1,94 +0,0 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
2
- import { RegionInfoProvider } from "@aws-sdk/types";
3
-
4
- const regionHash: RegionHash = {
5
- "ap-southeast-1": {
6
- hostname: "portal.sso.ap-southeast-1.amazonaws.com",
7
- signingRegion: "ap-southeast-1",
8
- },
9
- "ap-southeast-2": {
10
- hostname: "portal.sso.ap-southeast-2.amazonaws.com",
11
- signingRegion: "ap-southeast-2",
12
- },
13
- "ca-central-1": {
14
- hostname: "portal.sso.ca-central-1.amazonaws.com",
15
- signingRegion: "ca-central-1",
16
- },
17
- "eu-central-1": {
18
- hostname: "portal.sso.eu-central-1.amazonaws.com",
19
- signingRegion: "eu-central-1",
20
- },
21
- "eu-west-1": {
22
- hostname: "portal.sso.eu-west-1.amazonaws.com",
23
- signingRegion: "eu-west-1",
24
- },
25
- "eu-west-2": {
26
- hostname: "portal.sso.eu-west-2.amazonaws.com",
27
- signingRegion: "eu-west-2",
28
- },
29
- "us-east-1": {
30
- hostname: "portal.sso.us-east-1.amazonaws.com",
31
- signingRegion: "us-east-1",
32
- },
33
- "us-east-2": {
34
- hostname: "portal.sso.us-east-2.amazonaws.com",
35
- signingRegion: "us-east-2",
36
- },
37
- "us-west-2": {
38
- hostname: "portal.sso.us-west-2.amazonaws.com",
39
- signingRegion: "us-west-2",
40
- },
41
- };
42
-
43
- const partitionHash: PartitionHash = {
44
- aws: {
45
- regions: [
46
- "af-south-1",
47
- "ap-east-1",
48
- "ap-northeast-1",
49
- "ap-northeast-2",
50
- "ap-northeast-3",
51
- "ap-south-1",
52
- "ap-southeast-1",
53
- "ap-southeast-2",
54
- "ca-central-1",
55
- "eu-central-1",
56
- "eu-north-1",
57
- "eu-south-1",
58
- "eu-west-1",
59
- "eu-west-2",
60
- "eu-west-3",
61
- "me-south-1",
62
- "sa-east-1",
63
- "us-east-1",
64
- "us-east-2",
65
- "us-west-1",
66
- "us-west-2",
67
- ],
68
- hostname: "portal.sso.{region}.amazonaws.com",
69
- },
70
- "aws-cn": {
71
- regions: ["cn-north-1", "cn-northwest-1"],
72
- hostname: "portal.sso.{region}.amazonaws.com.cn",
73
- },
74
- "aws-iso": {
75
- regions: ["us-iso-east-1"],
76
- hostname: "portal.sso.{region}.c2s.ic.gov",
77
- },
78
- "aws-iso-b": {
79
- regions: ["us-isob-east-1"],
80
- hostname: "portal.sso.{region}.sc2s.sgov.gov",
81
- },
82
- "aws-us-gov": {
83
- regions: ["us-gov-east-1", "us-gov-west-1"],
84
- hostname: "portal.sso.{region}.amazonaws.com",
85
- },
86
- };
87
-
88
- export const defaultRegionInfoProvider: RegionInfoProvider = async (region: string, options?: any) =>
89
- getRegionInfo(region, {
90
- ...options,
91
- signingService: "awsssoportal",
92
- regionHash,
93
- partitionHash,
94
- });
package/jest.config.js DELETED
@@ -1,4 +0,0 @@
1
- module.exports = {
2
- preset: "ts-jest",
3
- testMatch: ["**/*.spec.ts", "!**/*.browser.spec.ts", "!**/*.integ.spec.ts"],
4
- };
@@ -1,334 +0,0 @@
1
- import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
3
-
4
- /**
5
- * <p>Provides information about your AWS account.</p>
6
- */
7
- export interface AccountInfo {
8
- /**
9
- * <p>The identifier of the AWS account that is assigned to the user.</p>
10
- */
11
- accountId?: string;
12
-
13
- /**
14
- * <p>The display name of the AWS account that is assigned to the user.</p>
15
- */
16
- accountName?: string;
17
-
18
- /**
19
- * <p>The email address of the AWS account that is assigned to the user.</p>
20
- */
21
- emailAddress?: string;
22
- }
23
-
24
- export namespace AccountInfo {
25
- /**
26
- * @internal
27
- */
28
- export const filterSensitiveLog = (obj: AccountInfo): any => ({
29
- ...obj,
30
- });
31
- }
32
-
33
- export interface GetRoleCredentialsRequest {
34
- /**
35
- * <p>The friendly name of the role that is assigned to the user.</p>
36
- */
37
- roleName: string | undefined;
38
-
39
- /**
40
- * <p>The identifier for the AWS account that is assigned to the user.</p>
41
- */
42
- accountId: string | undefined;
43
-
44
- /**
45
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
46
- * <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>
47
- */
48
- accessToken: string | undefined;
49
- }
50
-
51
- export namespace GetRoleCredentialsRequest {
52
- /**
53
- * @internal
54
- */
55
- export const filterSensitiveLog = (obj: GetRoleCredentialsRequest): any => ({
56
- ...obj,
57
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
58
- });
59
- }
60
-
61
- /**
62
- * <p>Provides information about the role credentials that are assigned to the user.</p>
63
- */
64
- export interface RoleCredentials {
65
- /**
66
- * <p>The identifier used for the temporary security credentials. For more information, see
67
- * <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
68
- * <i>AWS IAM User Guide</i>.</p>
69
- */
70
- accessKeyId?: string;
71
-
72
- /**
73
- * <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
74
- * <i>AWS IAM User Guide</i>.</p>
75
- */
76
- secretAccessKey?: string;
77
-
78
- /**
79
- * <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
80
- * <i>AWS IAM User Guide</i>.</p>
81
- */
82
- sessionToken?: string;
83
-
84
- /**
85
- * <p>The date on which temporary security credentials expire.</p>
86
- */
87
- expiration?: number;
88
- }
89
-
90
- export namespace RoleCredentials {
91
- /**
92
- * @internal
93
- */
94
- export const filterSensitiveLog = (obj: RoleCredentials): any => ({
95
- ...obj,
96
- ...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }),
97
- ...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }),
98
- });
99
- }
100
-
101
- export interface GetRoleCredentialsResponse {
102
- /**
103
- * <p>The credentials for the role that is assigned to the user.</p>
104
- */
105
- roleCredentials?: RoleCredentials;
106
- }
107
-
108
- export namespace GetRoleCredentialsResponse {
109
- /**
110
- * @internal
111
- */
112
- export const filterSensitiveLog = (obj: GetRoleCredentialsResponse): any => ({
113
- ...obj,
114
- ...(obj.roleCredentials && { roleCredentials: RoleCredentials.filterSensitiveLog(obj.roleCredentials) }),
115
- });
116
- }
117
-
118
- /**
119
- * <p>Indicates that a problem occurred with the input to the request. For example, a required
120
- * parameter might be missing or out of range.</p>
121
- */
122
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
123
- name: "InvalidRequestException";
124
- $fault: "client";
125
- message?: string;
126
- }
127
-
128
- export namespace InvalidRequestException {
129
- /**
130
- * @internal
131
- */
132
- export const filterSensitiveLog = (obj: InvalidRequestException): any => ({
133
- ...obj,
134
- });
135
- }
136
-
137
- /**
138
- * <p>The specified resource doesn't exist.</p>
139
- */
140
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
141
- name: "ResourceNotFoundException";
142
- $fault: "client";
143
- message?: string;
144
- }
145
-
146
- export namespace ResourceNotFoundException {
147
- /**
148
- * @internal
149
- */
150
- export const filterSensitiveLog = (obj: ResourceNotFoundException): any => ({
151
- ...obj,
152
- });
153
- }
154
-
155
- /**
156
- * <p>Indicates that the request is being made too frequently and is more than what the server can handle.</p>
157
- */
158
- export interface TooManyRequestsException extends __SmithyException, $MetadataBearer {
159
- name: "TooManyRequestsException";
160
- $fault: "client";
161
- message?: string;
162
- }
163
-
164
- export namespace TooManyRequestsException {
165
- /**
166
- * @internal
167
- */
168
- export const filterSensitiveLog = (obj: TooManyRequestsException): any => ({
169
- ...obj,
170
- });
171
- }
172
-
173
- /**
174
- * <p>Indicates that the request is not authorized. This can happen due to an invalid access token in the request.</p>
175
- */
176
- export interface UnauthorizedException extends __SmithyException, $MetadataBearer {
177
- name: "UnauthorizedException";
178
- $fault: "client";
179
- message?: string;
180
- }
181
-
182
- export namespace UnauthorizedException {
183
- /**
184
- * @internal
185
- */
186
- export const filterSensitiveLog = (obj: UnauthorizedException): any => ({
187
- ...obj,
188
- });
189
- }
190
-
191
- export interface ListAccountRolesRequest {
192
- /**
193
- * <p>The page token from the previous response output when you request subsequent pages.</p>
194
- */
195
- nextToken?: string;
196
-
197
- /**
198
- * <p>The number of items that clients can request per page.</p>
199
- */
200
- maxResults?: number;
201
-
202
- /**
203
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
204
- * <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>
205
- */
206
- accessToken: string | undefined;
207
-
208
- /**
209
- * <p>The identifier for the AWS account that is assigned to the user.</p>
210
- */
211
- accountId: string | undefined;
212
- }
213
-
214
- export namespace ListAccountRolesRequest {
215
- /**
216
- * @internal
217
- */
218
- export const filterSensitiveLog = (obj: ListAccountRolesRequest): any => ({
219
- ...obj,
220
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
221
- });
222
- }
223
-
224
- /**
225
- * <p>Provides information about the role that is assigned to the user.</p>
226
- */
227
- export interface RoleInfo {
228
- /**
229
- * <p>The friendly name of the role that is assigned to the user.</p>
230
- */
231
- roleName?: string;
232
-
233
- /**
234
- * <p>The identifier of the AWS account assigned to the user.</p>
235
- */
236
- accountId?: string;
237
- }
238
-
239
- export namespace RoleInfo {
240
- /**
241
- * @internal
242
- */
243
- export const filterSensitiveLog = (obj: RoleInfo): any => ({
244
- ...obj,
245
- });
246
- }
247
-
248
- export interface ListAccountRolesResponse {
249
- /**
250
- * <p>The page token client that is used to retrieve the list of accounts.</p>
251
- */
252
- nextToken?: string;
253
-
254
- /**
255
- * <p>A paginated response with the list of roles and the next token if more results are available.</p>
256
- */
257
- roleList?: RoleInfo[];
258
- }
259
-
260
- export namespace ListAccountRolesResponse {
261
- /**
262
- * @internal
263
- */
264
- export const filterSensitiveLog = (obj: ListAccountRolesResponse): any => ({
265
- ...obj,
266
- });
267
- }
268
-
269
- export interface ListAccountsRequest {
270
- /**
271
- * <p>(Optional) When requesting subsequent pages, this is the page token from the previous response output.</p>
272
- */
273
- nextToken?: string;
274
-
275
- /**
276
- * <p>This is the number of items clients can request per page.</p>
277
- */
278
- maxResults?: number;
279
-
280
- /**
281
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
282
- * <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>
283
- */
284
- accessToken: string | undefined;
285
- }
286
-
287
- export namespace ListAccountsRequest {
288
- /**
289
- * @internal
290
- */
291
- export const filterSensitiveLog = (obj: ListAccountsRequest): any => ({
292
- ...obj,
293
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
294
- });
295
- }
296
-
297
- export interface ListAccountsResponse {
298
- /**
299
- * <p>The page token client that is used to retrieve the list of accounts.</p>
300
- */
301
- nextToken?: string;
302
-
303
- /**
304
- * <p>A paginated response with the list of account information and the next token if more results are available.</p>
305
- */
306
- accountList?: AccountInfo[];
307
- }
308
-
309
- export namespace ListAccountsResponse {
310
- /**
311
- * @internal
312
- */
313
- export const filterSensitiveLog = (obj: ListAccountsResponse): any => ({
314
- ...obj,
315
- });
316
- }
317
-
318
- export interface LogoutRequest {
319
- /**
320
- * <p>The token issued by the <code>CreateToken</code> API call. For more information, see
321
- * <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>
322
- */
323
- accessToken: string | undefined;
324
- }
325
-
326
- export namespace LogoutRequest {
327
- /**
328
- * @internal
329
- */
330
- export const filterSensitiveLog = (obj: LogoutRequest): any => ({
331
- ...obj,
332
- ...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
333
- });
334
- }
@@ -1,7 +0,0 @@
1
- import { SSO } from "../SSO";
2
- import { SSOClient } from "../SSOClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
-
5
- export interface SSOPaginationConfiguration extends PaginationConfiguration {
6
- client: SSO | SSOClient;
7
- }