1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class SSO extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: SSO.Types.ClientConfiguration)
|
13 | config: Config & SSO.Types.ClientConfiguration;
|
14 | /**
|
15 | * Returns the STS short-term credentials for a given role name that is assigned to the user.
|
16 | */
|
17 | getRoleCredentials(params: SSO.Types.GetRoleCredentialsRequest, callback?: (err: AWSError, data: SSO.Types.GetRoleCredentialsResponse) => void): Request<SSO.Types.GetRoleCredentialsResponse, AWSError>;
|
18 | /**
|
19 | * Returns the STS short-term credentials for a given role name that is assigned to the user.
|
20 | */
|
21 | getRoleCredentials(callback?: (err: AWSError, data: SSO.Types.GetRoleCredentialsResponse) => void): Request<SSO.Types.GetRoleCredentialsResponse, AWSError>;
|
22 | /**
|
23 | * Lists all roles that are assigned to the user for a given AWS account.
|
24 | */
|
25 | listAccountRoles(params: SSO.Types.ListAccountRolesRequest, callback?: (err: AWSError, data: SSO.Types.ListAccountRolesResponse) => void): Request<SSO.Types.ListAccountRolesResponse, AWSError>;
|
26 | /**
|
27 | * Lists all roles that are assigned to the user for a given AWS account.
|
28 | */
|
29 | listAccountRoles(callback?: (err: AWSError, data: SSO.Types.ListAccountRolesResponse) => void): Request<SSO.Types.ListAccountRolesResponse, AWSError>;
|
30 | /**
|
31 | * Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the AWS SSO User Guide. This operation returns a paginated response.
|
32 | */
|
33 | listAccounts(params: SSO.Types.ListAccountsRequest, callback?: (err: AWSError, data: SSO.Types.ListAccountsResponse) => void): Request<SSO.Types.ListAccountsResponse, AWSError>;
|
34 | /**
|
35 | * Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the AWS SSO User Guide. This operation returns a paginated response.
|
36 | */
|
37 | listAccounts(callback?: (err: AWSError, data: SSO.Types.ListAccountsResponse) => void): Request<SSO.Types.ListAccountsResponse, AWSError>;
|
38 | /**
|
39 | * Removes the client- and server-side session that is associated with the user.
|
40 | */
|
41 | logout(params: SSO.Types.LogoutRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
42 | |
43 |
|
44 |
|
45 | logout(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
46 | }
|
47 | declare namespace SSO {
|
48 | export type AccessKeyType = string;
|
49 | export type AccessTokenType = string;
|
50 | export type AccountIdType = string;
|
51 | export interface AccountInfo {
|
52 | |
53 |
|
54 |
|
55 | accountId?: AccountIdType;
|
56 | |
57 |
|
58 |
|
59 | accountName?: AccountNameType;
|
60 | |
61 |
|
62 |
|
63 | emailAddress?: EmailAddressType;
|
64 | }
|
65 | export type AccountListType = AccountInfo[];
|
66 | export type AccountNameType = string;
|
67 | export type EmailAddressType = string;
|
68 | export type ExpirationTimestampType = number;
|
69 | export interface GetRoleCredentialsRequest {
|
70 | |
71 |
|
72 |
|
73 | roleName: RoleNameType;
|
74 | |
75 |
|
76 |
|
77 | accountId: AccountIdType;
|
78 | |
79 |
|
80 |
|
81 | accessToken: AccessTokenType;
|
82 | }
|
83 | export interface GetRoleCredentialsResponse {
|
84 | |
85 |
|
86 |
|
87 | roleCredentials?: RoleCredentials;
|
88 | }
|
89 | export interface ListAccountRolesRequest {
|
90 | |
91 |
|
92 |
|
93 | nextToken?: NextTokenType;
|
94 | |
95 |
|
96 |
|
97 | maxResults?: MaxResultType;
|
98 | |
99 |
|
100 |
|
101 | accessToken: AccessTokenType;
|
102 | |
103 |
|
104 |
|
105 | accountId: AccountIdType;
|
106 | }
|
107 | export interface ListAccountRolesResponse {
|
108 | |
109 |
|
110 |
|
111 | nextToken?: NextTokenType;
|
112 | |
113 |
|
114 |
|
115 | roleList?: RoleListType;
|
116 | }
|
117 | export interface ListAccountsRequest {
|
118 | |
119 |
|
120 |
|
121 | nextToken?: NextTokenType;
|
122 | |
123 |
|
124 |
|
125 | maxResults?: MaxResultType;
|
126 | |
127 |
|
128 |
|
129 | accessToken: AccessTokenType;
|
130 | }
|
131 | export interface ListAccountsResponse {
|
132 | |
133 |
|
134 |
|
135 | nextToken?: NextTokenType;
|
136 | |
137 |
|
138 |
|
139 | accountList?: AccountListType;
|
140 | }
|
141 | export interface LogoutRequest {
|
142 | |
143 |
|
144 |
|
145 | accessToken: AccessTokenType;
|
146 | }
|
147 | export type MaxResultType = number;
|
148 | export type NextTokenType = string;
|
149 | export interface RoleCredentials {
|
150 | |
151 |
|
152 |
|
153 | accessKeyId?: AccessKeyType;
|
154 | |
155 |
|
156 |
|
157 | secretAccessKey?: SecretAccessKeyType;
|
158 | |
159 |
|
160 |
|
161 | sessionToken?: SessionTokenType;
|
162 | |
163 |
|
164 |
|
165 | expiration?: ExpirationTimestampType;
|
166 | }
|
167 | export interface RoleInfo {
|
168 | |
169 |
|
170 |
|
171 | roleName?: RoleNameType;
|
172 | |
173 |
|
174 |
|
175 | accountId?: AccountIdType;
|
176 | }
|
177 | export type RoleListType = RoleInfo[];
|
178 | export type RoleNameType = string;
|
179 | export type SecretAccessKeyType = string;
|
180 | export type SessionTokenType = string;
|
181 | |
182 |
|
183 |
|
184 | export type apiVersion = "2019-06-10"|"latest"|string;
|
185 | export interface ClientApiVersions {
|
186 | |
187 |
|
188 |
|
189 | apiVersion?: apiVersion;
|
190 | }
|
191 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
192 | |
193 |
|
194 |
|
195 | export import Types = SSO;
|
196 | }
|
197 | export = SSO;
|