AWS Transfer for SFTP
User Guide

UpdateServer

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.

Request Syntax

{ "IdentityProviderDetails": { "InvocationRole": "string", "Url": "string" }, "LoggingRole": "string", "ServerId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

IdentityProviderDetails

This response parameter is an array containing all of the information required to call a customer's authentication API method.

Type: IdentityProviderDetails object

Required: No

LoggingRole

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.

Type: String

Pattern: ^$|arn:.*role/.*

Required: No

ServerId

A system-assigned unique identifier for an SFTP server instance that the user account is assigned to.

Type: String

Pattern: ^s-([0-9a-f]{17})$

Required: Yes

Response Syntax

{ "ServerId": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ServerId

A system-assigned unique identifier for an SFTP server that the user account is assigned to.

Type: String

Pattern: ^s-([0-9a-f]{17})$

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServiceError

This exception is thrown when an error occurs in the AWS Transfer for SFTP service.

HTTP Status Code: 500

InvalidRequestException

This exception is thrown when the client submits a malformed request.

HTTP Status Code: 400

ResourceNotFoundException

This exception is thrown when a resource is not found by the AWS Transfer for SFTP service.

HTTP Status Code: 400

ServiceUnavailableException

The request has failed because the AWS Transfer for SFTP service is not available.

HTTP Status Code: 500

Examples

Example

The following example updates the role of a server.

Sample Request

{ "LoggingRole": "CloudWatchS3Events", "ServerId": "s-abcd1234adlljl" }

Example

Sample Response

{ "ServerId": "s-abcd1234adlljl" }

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: