UNPKG

38.3 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class Transfer extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: Transfer.Types.ClientConfiguration)
13 config: Config & Transfer.Types.ClientConfiguration;
14 /**
15 * Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS. The call returns the ServerId property assigned by the service to the newly created server. Reference this ServerId property when you make updates to your server, or work with users. The response returns the ServerId value for the newly created server.
16 */
17 createServer(params: Transfer.Types.CreateServerRequest, callback?: (err: AWSError, data: Transfer.Types.CreateServerResponse) => void): Request<Transfer.Types.CreateServerResponse, AWSError>;
18 /**
19 * Instantiates an autoscaling virtual server based on Secure File Transfer Protocol (SFTP) in AWS. The call returns the ServerId property assigned by the service to the newly created server. Reference this ServerId property when you make updates to your server, or work with users. The response returns the ServerId value for the newly created server.
20 */
21 createServer(callback?: (err: AWSError, data: Transfer.Types.CreateServerResponse) => void): Request<Transfer.Types.CreateServerResponse, AWSError>;
22 /**
23 * Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server. Using parameters for CreateUser, you can specify the user name, set the home directory, store the user's public key, and assign the user's AWS Identity and Access Management (IAM) role. You can also optionally add a scope-down policy, and assign metadata with tags that can be used to group and search for users. The response returns the UserName and ServerId values of the new user for that server.
24 */
25 createUser(params: Transfer.Types.CreateUserRequest, callback?: (err: AWSError, data: Transfer.Types.CreateUserResponse) => void): Request<Transfer.Types.CreateUserResponse, AWSError>;
26 /**
27 * Adds a user and associate them with an existing Secure File Transfer Protocol (SFTP) server. Using parameters for CreateUser, you can specify the user name, set the home directory, store the user's public key, and assign the user's AWS Identity and Access Management (IAM) role. You can also optionally add a scope-down policy, and assign metadata with tags that can be used to group and search for users. The response returns the UserName and ServerId values of the new user for that server.
28 */
29 createUser(callback?: (err: AWSError, data: Transfer.Types.CreateUserResponse) => void): Request<Transfer.Types.CreateUserResponse, AWSError>;
30 /**
31 * Deletes the Secure File Transfer Protocol (SFTP) server that you specify. If you used SERVICE_MANAGED as your IdentityProviderType, you need to delete all users associated with this server before deleting the server itself No response returns from this call.
32 */
33 deleteServer(params: Transfer.Types.DeleteServerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
34 /**
35 * Deletes the Secure File Transfer Protocol (SFTP) server that you specify. If you used SERVICE_MANAGED as your IdentityProviderType, you need to delete all users associated with this server before deleting the server itself No response returns from this call.
36 */
37 deleteServer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
38 /**
39 * Deletes a user's Secure Shell (SSH) public key. No response is returned from this call.
40 */
41 deleteSshPublicKey(params: Transfer.Types.DeleteSshPublicKeyRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
42 /**
43 * Deletes a user's Secure Shell (SSH) public key. No response is returned from this call.
44 */
45 deleteSshPublicKey(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
46 /**
47 * Deletes the user belonging to the server you specify. No response returns from this call. When you delete a user from a server, the user's information is lost.
48 */
49 deleteUser(params: Transfer.Types.DeleteUserRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
50 /**
51 * Deletes the user belonging to the server you specify. No response returns from this call. When you delete a user from a server, the user's information is lost.
52 */
53 deleteUser(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
54 /**
55 * Describes the server that you specify by passing the ServerId parameter. The response contains a description of the server's properties.
56 */
57 describeServer(params: Transfer.Types.DescribeServerRequest, callback?: (err: AWSError, data: Transfer.Types.DescribeServerResponse) => void): Request<Transfer.Types.DescribeServerResponse, AWSError>;
58 /**
59 * Describes the server that you specify by passing the ServerId parameter. The response contains a description of the server's properties.
60 */
61 describeServer(callback?: (err: AWSError, data: Transfer.Types.DescribeServerResponse) => void): Request<Transfer.Types.DescribeServerResponse, AWSError>;
62 /**
63 * Describes the user assigned to a specific server, as identified by its ServerId property. The response from this call returns the properties of the user associated with the ServerId value that was specified.
64 */
65 describeUser(params: Transfer.Types.DescribeUserRequest, callback?: (err: AWSError, data: Transfer.Types.DescribeUserResponse) => void): Request<Transfer.Types.DescribeUserResponse, AWSError>;
66 /**
67 * Describes the user assigned to a specific server, as identified by its ServerId property. The response from this call returns the properties of the user associated with the ServerId value that was specified.
68 */
69 describeUser(callback?: (err: AWSError, data: Transfer.Types.DescribeUserResponse) => void): Request<Transfer.Types.DescribeUserResponse, AWSError>;
70 /**
71 * Adds a Secure Shell (SSH) public key to a user account identified by a UserName value assigned to a specific server, identified by ServerId. The response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.
72 */
73 importSshPublicKey(params: Transfer.Types.ImportSshPublicKeyRequest, callback?: (err: AWSError, data: Transfer.Types.ImportSshPublicKeyResponse) => void): Request<Transfer.Types.ImportSshPublicKeyResponse, AWSError>;
74 /**
75 * Adds a Secure Shell (SSH) public key to a user account identified by a UserName value assigned to a specific server, identified by ServerId. The response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.
76 */
77 importSshPublicKey(callback?: (err: AWSError, data: Transfer.Types.ImportSshPublicKeyResponse) => void): Request<Transfer.Types.ImportSshPublicKeyResponse, AWSError>;
78 /**
79 * Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
80 */
81 listServers(params: Transfer.Types.ListServersRequest, callback?: (err: AWSError, data: Transfer.Types.ListServersResponse) => void): Request<Transfer.Types.ListServersResponse, AWSError>;
82 /**
83 * Lists the Secure File Transfer Protocol (SFTP) servers that are associated with your AWS account.
84 */
85 listServers(callback?: (err: AWSError, data: Transfer.Types.ListServersResponse) => void): Request<Transfer.Types.ListServersResponse, AWSError>;
86 /**
87 * Lists all of the tags associated with the Amazon Resource Number (ARN) you specify. The resource can be a user, server, or role.
88 */
89 listTagsForResource(params: Transfer.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: Transfer.Types.ListTagsForResourceResponse) => void): Request<Transfer.Types.ListTagsForResourceResponse, AWSError>;
90 /**
91 * Lists all of the tags associated with the Amazon Resource Number (ARN) you specify. The resource can be a user, server, or role.
92 */
93 listTagsForResource(callback?: (err: AWSError, data: Transfer.Types.ListTagsForResourceResponse) => void): Request<Transfer.Types.ListTagsForResourceResponse, AWSError>;
94 /**
95 * Lists the users for the server that you specify by passing the ServerId parameter.
96 */
97 listUsers(params: Transfer.Types.ListUsersRequest, callback?: (err: AWSError, data: Transfer.Types.ListUsersResponse) => void): Request<Transfer.Types.ListUsersResponse, AWSError>;
98 /**
99 * Lists the users for the server that you specify by passing the ServerId parameter.
100 */
101 listUsers(callback?: (err: AWSError, data: Transfer.Types.ListUsersResponse) => void): Request<Transfer.Types.ListUsersResponse, AWSError>;
102 /**
103 * Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE to ONLINE. It has no impact on an SFTP server that is already ONLINE. An ONLINE server can accept and process file transfer jobs. The state of STARTING indicates that the server is in an intermediate state, either not fully able to respond, or not fully online. The values of START_FAILED can indicate an error condition. No response is returned from this call.
104 */
105 startServer(params: Transfer.Types.StartServerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
106 /**
107 * Changes the state of a Secure File Transfer Protocol (SFTP) server from OFFLINE to ONLINE. It has no impact on an SFTP server that is already ONLINE. An ONLINE server can accept and process file transfer jobs. The state of STARTING indicates that the server is in an intermediate state, either not fully able to respond, or not fully online. The values of START_FAILED can indicate an error condition. No response is returned from this call.
108 */
109 startServer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
110 /**
111 * Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE server cannot accept and process file transfer jobs. Information tied to your server such as server and user properties are not affected by stopping your server. Stopping a server will not reduce or impact your Secure File Transfer Protocol (SFTP) endpoint billing. The states of STOPPING indicates that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition. No response is returned from this call.
112 */
113 stopServer(params: Transfer.Types.StopServerRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
114 /**
115 * Changes the state of an SFTP server from ONLINE to OFFLINE. An OFFLINE server cannot accept and process file transfer jobs. Information tied to your server such as server and user properties are not affected by stopping your server. Stopping a server will not reduce or impact your Secure File Transfer Protocol (SFTP) endpoint billing. The states of STOPPING indicates that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of STOP_FAILED can indicate an error condition. No response is returned from this call.
116 */
117 stopServer(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
118 /**
119 * Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. There is no response returned from this call.
120 */
121 tagResource(params: Transfer.Types.TagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
122 /**
123 * Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. There is no response returned from this call.
124 */
125 tagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
126 /**
127 * If the IdentityProviderType of the server is API_Gateway, tests whether your API Gateway is set up successfully. We highly recommend that you call this method to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the API Gateway integration to ensure that your users can successfully use the service.
128 */
129 testIdentityProvider(params: Transfer.Types.TestIdentityProviderRequest, callback?: (err: AWSError, data: Transfer.Types.TestIdentityProviderResponse) => void): Request<Transfer.Types.TestIdentityProviderResponse, AWSError>;
130 /**
131 * If the IdentityProviderType of the server is API_Gateway, tests whether your API Gateway is set up successfully. We highly recommend that you call this method to test your authentication method as soon as you create your server. By doing so, you can troubleshoot issues with the API Gateway integration to ensure that your users can successfully use the service.
132 */
133 testIdentityProvider(callback?: (err: AWSError, data: Transfer.Types.TestIdentityProviderResponse) => void): Request<Transfer.Types.TestIdentityProviderResponse, AWSError>;
134 /**
135 * Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. No response is returned from this call.
136 */
137 untagResource(params: Transfer.Types.UntagResourceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
138 /**
139 * Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN). Resources are users, servers, roles, and other entities. No response is returned from this call.
140 */
141 untagResource(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
142 /**
143 * Updates the server properties after that server has been created. The UpdateServer call returns the ServerId of the Secure File Transfer Protocol (SFTP) server you updated.
144 */
145 updateServer(params: Transfer.Types.UpdateServerRequest, callback?: (err: AWSError, data: Transfer.Types.UpdateServerResponse) => void): Request<Transfer.Types.UpdateServerResponse, AWSError>;
146 /**
147 * Updates the server properties after that server has been created. The UpdateServer call returns the ServerId of the Secure File Transfer Protocol (SFTP) server you updated.
148 */
149 updateServer(callback?: (err: AWSError, data: Transfer.Types.UpdateServerResponse) => void): Request<Transfer.Types.UpdateServerResponse, AWSError>;
150 /**
151 * Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory, role, and policy for the UserName and ServerId you specify. The response returns the ServerId and the UserName for the updated user.
152 */
153 updateUser(params: Transfer.Types.UpdateUserRequest, callback?: (err: AWSError, data: Transfer.Types.UpdateUserResponse) => void): Request<Transfer.Types.UpdateUserResponse, AWSError>;
154 /**
155 * Assigns new properties to a user. Parameters you pass modify any or all of the following: the home directory, role, and policy for the UserName and ServerId you specify. The response returns the ServerId and the UserName for the updated user.
156 */
157 updateUser(callback?: (err: AWSError, data: Transfer.Types.UpdateUserResponse) => void): Request<Transfer.Types.UpdateUserResponse, AWSError>;
158}
159declare namespace Transfer {
160 export type Arn = string;
161 export interface CreateServerRequest {
162 /**
163 * An array containing all of the information required to call a customer-supplied authentication API. This parameter is not required when the IdentityProviderType value of server that is created uses the SERVICE_MANAGED authentication method.
164 */
165 IdentityProviderDetails?: IdentityProviderDetails;
166 /**
167 * The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. An IdentityProviderType value of API_GATEWAY indicates that user authentication requires a call to an API Gateway endpoint URL provided by you to integrate an identity provider of your choice.
168 */
169 IdentityProviderType?: IdentityProviderType;
170 /**
171 * A value that allows the service to write your SFTP users’ activity to your Amazon CloudWatch logs for monitoring and auditing purposes.
172 */
173 LoggingRole?: Role;
174 /**
175 * Key-value pairs that can be used to group and search for servers.
176 */
177 Tags?: Tags;
178 }
179 export interface CreateServerResponse {
180 /**
181 * The service-assigned ID of the SFTP server that is created.
182 */
183 ServerId: ServerId;
184 }
185 export interface CreateUserRequest {
186 /**
187 * The landing directory (folder) for a user when they log in to the server using their SFTP client. An example is /home/username .
188 */
189 HomeDirectory?: HomeDirectory;
190 /**
191 * A scope-down policy for your user so you can use the same IAM role across multiple users. This policy scopes down user access to portions of their Amazon S3 bucket. Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.
192 */
193 Policy?: Policy;
194 /**
195 * The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.
196 */
197 Role: Role;
198 /**
199 * A system-assigned unique identifier for an SFTP server instance. This is the specific SFTP server that you added your user to.
200 */
201 ServerId: ServerId;
202 /**
203 * The public portion of the Secure Shall (SSH) key used to authenticate the user to the SFTP server.
204 */
205 SshPublicKeyBody?: SshPublicKeyBody;
206 /**
207 * Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.
208 */
209 Tags?: Tags;
210 /**
211 * A unique string that identifies a user and is associated with a server as specified by the ServerId.
212 */
213 UserName: UserName;
214 }
215 export interface CreateUserResponse {
216 /**
217 * The ID of the SFTP server that the user is attached to.
218 */
219 ServerId: ServerId;
220 /**
221 * A unique string that identifies a user account associated with an SFTP server.
222 */
223 UserName: UserName;
224 }
225 export type DateImported = Date;
226 export interface DeleteServerRequest {
227 /**
228 * A unique system-assigned identifier for an SFTP server instance.
229 */
230 ServerId: ServerId;
231 }
232 export interface DeleteSshPublicKeyRequest {
233 /**
234 * A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) server instance that has the user assigned to it.
235 */
236 ServerId: ServerId;
237 /**
238 * A unique identifier used to reference your user’s specific SSH key.
239 */
240 SshPublicKeyId: SshPublicKeyId;
241 /**
242 * A unique string that identifies a user whose public key is being deleted.
243 */
244 UserName: UserName;
245 }
246 export interface DeleteUserRequest {
247 /**
248 * A system-assigned unique identifier for an SFTP server instance that has the user assigned to it.
249 */
250 ServerId: ServerId;
251 /**
252 * A unique string that identifies a user that is being deleted from the server.
253 */
254 UserName: UserName;
255 }
256 export interface DescribeServerRequest {
257 /**
258 * A system-assigned unique identifier for an SFTP server.
259 */
260 ServerId: ServerId;
261 }
262 export interface DescribeServerResponse {
263 /**
264 * An array containing the properties of the server with the ServerID you specified.
265 */
266 Server: DescribedServer;
267 }
268 export interface DescribeUserRequest {
269 /**
270 * A system-assigned unique identifier for an SFTP server that has this user assigned.
271 */
272 ServerId: ServerId;
273 /**
274 * The name of the user assigned to one or more servers. User names are part of the sign-in credentials to use the AWS Transfer service and perform file transfer tasks.
275 */
276 UserName: UserName;
277 }
278 export interface DescribeUserResponse {
279 /**
280 * A system-assigned unique identifier for an SFTP server that has this user assigned.
281 */
282 ServerId: ServerId;
283 /**
284 * An array containing the properties of the user account for the ServerID value that you specified.
285 */
286 User: DescribedUser;
287 }
288 export interface DescribedServer {
289 /**
290 * Specifies the unique Amazon Resource Name (ARN) for the server to be described.
291 */
292 Arn: Arn;
293 /**
294 * Specifies information to call a customer-supplied authentication API. This field is not populated when the IdentityProviderType of the server is SERVICE_MANAGED&gt;.
295 */
296 IdentityProviderDetails?: IdentityProviderDetails;
297 /**
298 * This property defines the mode of authentication method enabled for this service. A value of SERVICE_MANAGED, means that you are using this Server to store and access SFTP user credentials within the service. A value of API_GATEWAY indicates that you have integrated an API Gateway endpoint that will be invoked for authenticating your user into the service.
299 */
300 IdentityProviderType?: IdentityProviderType;
301 /**
302 * This property is an AWS Identity and Access Management (IAM) entity that allows the server to turn on Amazon CloudWatch logging for Amazon S3 events. When set, user activity can be view in your CloudWatch logs.
303 */
304 LoggingRole?: Role;
305 /**
306 * This property is a unique system assigned identifier for the SFTP server that you instantiate.
307 */
308 ServerId?: ServerId;
309 /**
310 * The condition of the SFTP server for the server that was described. A value of ONLINE indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations. The states of STARTING and STOPPING indicated that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.
311 */
312 State?: State;
313 /**
314 * This property contains the key-value pairs that you can use to search for and group servers that were assigned to the server that was described.
315 */
316 Tags?: Tags;
317 /**
318 * The number of users that are assigned to the SFTP server you specified with the ServerId.
319 */
320 UserCount?: UserCount;
321 }
322 export interface DescribedUser {
323 /**
324 * This property contains the unique Amazon Resource Name (ARN) for the user that was requested to be described.
325 */
326 Arn: Arn;
327 /**
328 * This property specifies the landing directory (or folder) which is the location that files are written to or read from in an Amazon S3 bucket for the described user. An example would be: /bucket_name/home/username .
329 */
330 HomeDirectory?: HomeDirectory;
331 /**
332 * Specifies the name of the policy in use for the described user.
333 */
334 Policy?: Policy;
335 /**
336 * This property specifies the IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.
337 */
338 Role?: Role;
339 /**
340 * This property contains the public key portion of the Secure Shell (SSH) keys stored for the described user.
341 */
342 SshPublicKeys?: SshPublicKeys;
343 /**
344 * This property contains the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.
345 */
346 Tags?: Tags;
347 /**
348 * This property is the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your SFTP server.
349 */
350 UserName?: UserName;
351 }
352 export type HomeDirectory = string;
353 export interface IdentityProviderDetails {
354 /**
355 * The IdentityProviderDetail parameter contains the location of the service endpoint used to authenticate users.
356 */
357 Url?: Url;
358 /**
359 * The Role parameter provides the type of InvocationRole used to authenticate the user account.
360 */
361 InvocationRole?: Role;
362 }
363 export type IdentityProviderType = "SERVICE_MANAGED"|"API_GATEWAY"|string;
364 export interface ImportSshPublicKeyRequest {
365 /**
366 * A system-assigned unique identifier for an SFTP server.
367 */
368 ServerId: ServerId;
369 /**
370 * The public key portion of an SSH key pair.
371 */
372 SshPublicKeyBody: SshPublicKeyBody;
373 /**
374 * The name of the user account that is assigned to one or more servers.
375 */
376 UserName: UserName;
377 }
378 export interface ImportSshPublicKeyResponse {
379 /**
380 * A system-assigned unique identifier for an SFTP server.
381 */
382 ServerId: ServerId;
383 /**
384 * This identifier is the name given to a public key by the system that was imported.
385 */
386 SshPublicKeyId: SshPublicKeyId;
387 /**
388 * A user name assigned to the ServerID value that you specified.
389 */
390 UserName: UserName;
391 }
392 export interface ListServersRequest {
393 /**
394 * Specifies the number of servers to return as a response to the ListServers query.
395 */
396 MaxResults?: MaxResults;
397 /**
398 * When additional results are obtained from the ListServers command, a NextToken parameter is returned in the output. You can then pass the NextToken parameter in a subsequent command to continue listing additional servers.
399 */
400 NextToken?: NextToken;
401 }
402 export interface ListServersResponse {
403 /**
404 * When you can get additional results from the ListServers operation, a NextToken parameter is returned in the output. In a following command, you can pass in the NextToken parameter to continue listing additional servers.
405 */
406 NextToken?: NextToken;
407 /**
408 * An array of servers that were listed.
409 */
410 Servers: ListedServers;
411 }
412 export interface ListTagsForResourceRequest {
413 /**
414 * Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific AWS resource, such as a server, user, or role.
415 */
416 Arn: Arn;
417 /**
418 * Specifies the number of tags to return as a response to the ListTagsForResource request.
419 */
420 MaxResults?: MaxResults;
421 /**
422 * When you request additional results from the ListTagsForResource call, a NextToken parameter is returned in the input. You can then pass in a subsequent command the NextToken parameter to continue listing additional tags.
423 */
424 NextToken?: NextToken;
425 }
426 export interface ListTagsForResourceResponse {
427 /**
428 * This value is the ARN you specified to list the tags of.
429 */
430 Arn?: Arn;
431 /**
432 * When you can get additional results from the ListTagsForResource call, a NextToken parameter is returned in the output. You can then pass in a subsequent command the NextToken parameter to continue listing additional tags.
433 */
434 NextToken?: NextToken;
435 /**
436 * Key-value pairs that are assigned to a resource, usually for the purpose of grouping and searching for items. Tags are metadata that you define that you can use for any purpose.
437 */
438 Tags?: Tags;
439 }
440 export interface ListUsersRequest {
441 /**
442 * Specifies the number of users to return as a response to the ListUsers request.
443 */
444 MaxResults?: MaxResults;
445 /**
446 * When you can get additional results from the ListUsers call, a NextToken parameter is returned in the output. You can then pass in a subsequent command the NextToken parameter to continue listing additional users.
447 */
448 NextToken?: NextToken;
449 /**
450 * A system-assigned unique identifier for a Secure File Transfer Protocol (SFTP) server that has users are assigned to it.
451 */
452 ServerId: ServerId;
453 }
454 export interface ListUsersResponse {
455 /**
456 * When you can get additional results from the ListUsers call, a NextToken parameter is returned in the output. You can then pass in a subsequent command the NextToken parameter to continue listing additional users.
457 */
458 NextToken?: NextToken;
459 /**
460 * A system-assigned unique identifier for an SFTP server that the users are assigned to.
461 */
462 ServerId: ServerId;
463 /**
464 * Returns the user accounts and their properties for the ServerId value that you specify.
465 */
466 Users: ListedUsers;
467 }
468 export interface ListedServer {
469 /**
470 * The unique Amazon Resource Name (ARN) for the server to be listed.
471 */
472 Arn: Arn;
473 /**
474 * The authentication method used to validate a user for the server that was specified. listed. This can include Secure Shell (SSH), user name and password combinations, or your own custom authentication method. Valid values include SERVICE_MANAGED or API_GATEWAY.
475 */
476 IdentityProviderType?: IdentityProviderType;
477 /**
478 * The AWS Identity and Access Management entity that allows the server to turn on Amazon CloudWatch logging.
479 */
480 LoggingRole?: Role;
481 /**
482 * This value is the unique system assigned identifier for the SFTP servers that were listed.
483 */
484 ServerId?: ServerId;
485 /**
486 * This property describes the condition of the SFTP server for the server that was described. A value of ONLINE&gt; indicates that the server can accept jobs and transfer files. A State value of OFFLINE means that the server cannot perform file transfer operations. The states of STARTING and STOPPING indicated that the server is in an intermediate state, either not fully able to respond, or not fully offline. The values of START_FAILED or STOP_FAILED can indicate an error condition.
487 */
488 State?: State;
489 /**
490 * This property is a numeric value that indicates the number of users that are assigned to the SFTP server you specified with the ServerId.
491 */
492 UserCount?: UserCount;
493 }
494 export type ListedServers = ListedServer[];
495 export interface ListedUser {
496 /**
497 * This property is the unique Amazon Resource Name (ARN) for the user that you wish to learn about.
498 */
499 Arn: Arn;
500 /**
501 * This value specifies the location that files are written to or read from an Amazon S3 bucket for the user you specify by their ARN.
502 */
503 HomeDirectory?: HomeDirectory;
504 /**
505 * The role in use by this user. A role is an AWS Identity and Access Management (IAM) entity that in this case allows the SFTP server to act on a user's behalf. It allows the server to inherit the trust relationship that enables that user to perform file operations to their Amazon S3 bucket.
506 */
507 Role?: Role;
508 /**
509 * This value is the number of SSH public keys stored for the user you specified.
510 */
511 SshPublicKeyCount?: SshPublicKeyCount;
512 /**
513 * The name of the user whose ARN was specified. User names are used for authentication purposes.
514 */
515 UserName?: UserName;
516 }
517 export type ListedUsers = ListedUser[];
518 export type MaxResults = number;
519 export type Message = string;
520 export type NextToken = string;
521 export type NullableRole = string;
522 export type Policy = string;
523 export type Role = string;
524 export type ServerId = string;
525 export interface SshPublicKey {
526 /**
527 * The date that the public key was added to the user account.
528 */
529 DateImported: DateImported;
530 /**
531 * The content of the SSH public key as specified by the PublicKeyId.
532 */
533 SshPublicKeyBody: SshPublicKeyBody;
534 /**
535 * The SshPublicKeyId parameter contains the identifier of the public key.
536 */
537 SshPublicKeyId: SshPublicKeyId;
538 }
539 export type SshPublicKeyBody = string;
540 export type SshPublicKeyCount = number;
541 export type SshPublicKeyId = string;
542 export type SshPublicKeys = SshPublicKey[];
543 export interface StartServerRequest {
544 /**
545 * A system-assigned unique identifier for an SFTP server that you start.
546 */
547 ServerId: ServerId;
548 }
549 export type State = "OFFLINE"|"ONLINE"|"STARTING"|"STOPPING"|"START_FAILED"|"STOP_FAILED"|string;
550 export type StatusCode = number;
551 export interface StopServerRequest {
552 /**
553 * A system-assigned unique identifier for an SFTP server that you stopped.
554 */
555 ServerId: ServerId;
556 }
557 export interface Tag {
558 /**
559 * The name assigned to the tag that you create.
560 */
561 Key: TagKey;
562 /**
563 * This property contains one or more values that you assigned to the key name you create.
564 */
565 Value: TagValue;
566 }
567 export type TagKey = string;
568 export type TagKeys = TagKey[];
569 export interface TagResourceRequest {
570 /**
571 * An Amazon Resource Name (ARN) for a specific AWS resource, such as a server, user, or role.
572 */
573 Arn: Arn;
574 /**
575 * Key-value pairs assigned to ARNs that you can use to group and search for resources by type. You can attach this metadata to user accounts for any purpose.
576 */
577 Tags: Tags;
578 }
579 export type TagValue = string;
580 export type Tags = Tag[];
581 export interface TestIdentityProviderRequest {
582 /**
583 * A system assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.
584 */
585 ServerId: ServerId;
586 /**
587 * This request parameter is name of the user account to be tested.
588 */
589 UserName: UserName;
590 /**
591 * The password of the user account to be tested.
592 */
593 UserPassword?: UserPassword;
594 }
595 export interface TestIdentityProviderResponse {
596 /**
597 * The result of the authorization test as a message.
598 */
599 Message?: Message;
600 /**
601 * The HTTP status code that is the response from your API Gateway.
602 */
603 StatusCode: StatusCode;
604 /**
605 * The endpoint of the service used to authenticate a user.
606 */
607 Url: Url;
608 }
609 export interface UntagResourceRequest {
610 /**
611 * This is the value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific AWS resource, such as a server, user, or role.
612 */
613 Arn: Arn;
614 /**
615 * TagKeys are key-value pairs assigned to ARNs that can be used to group and search for resources by type. This metadata can be attached to resources for any purpose.
616 */
617 TagKeys: TagKeys;
618 }
619 export interface UpdateServerRequest {
620 /**
621 * This response parameter is an array containing all of the information required to call a customer's authentication API method.
622 */
623 IdentityProviderDetails?: IdentityProviderDetails;
624 /**
625 * Changes the AWS Identity and Access Management (IAM) role that allows Amazon S3 events to be logged in Amazon CloudWatch, turning logging on or off.
626 */
627 LoggingRole?: NullableRole;
628 /**
629 * A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.
630 */
631 ServerId: ServerId;
632 }
633 export interface UpdateServerResponse {
634 /**
635 * A system-assigned unique identifier for an SFTP server that the user account is assigned to.
636 */
637 ServerId: ServerId;
638 }
639 export interface UpdateUserRequest {
640 /**
641 * The HomeDirectory parameter specifies the landing directory (folder) for a user when they log in to the server using their client. An example would be: /home/username .
642 */
643 HomeDirectory?: HomeDirectory;
644 /**
645 * Allows you to supply a scope-down policy for your user so you can use the same AWS Identity and Access Management (IAM) role across multiple users. The policy scopes down users access to portions of your Amazon S3 bucket. Variables you can use inside this policy include ${Transfer:UserName}, ${Transfer:HomeDirectory}, and ${Transfer:HomeBucket}.
646 */
647 Policy?: Policy;
648 /**
649 * The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the Secure File Transfer Protocol (SFTP) server to access your resources when servicing your SFTP user’s transfer requests.
650 */
651 Role?: Role;
652 /**
653 * A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.
654 */
655 ServerId: ServerId;
656 /**
657 * A unique string that identifies a user and is associated with a server as specified by the ServerId. This is the string that will be used by your user when they log in to your SFTP server.
658 */
659 UserName: UserName;
660 }
661 export interface UpdateUserResponse {
662 /**
663 * A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.
664 */
665 ServerId: ServerId;
666 /**
667 * The unique identifier for a user that is assigned to the SFTP server instance that was specified in the request.
668 */
669 UserName: UserName;
670 }
671 export type Url = string;
672 export type UserCount = number;
673 export type UserName = string;
674 export type UserPassword = string;
675 /**
676 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
677 */
678 export type apiVersion = "2018-11-05"|"latest"|string;
679 export interface ClientApiVersions {
680 /**
681 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
682 */
683 apiVersion?: apiVersion;
684 }
685 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
686 /**
687 * Contains interfaces for use with the Transfer client.
688 */
689 export import Types = Transfer;
690}
691export = Transfer;