Struct aws_sdk_transfer::Client
source · pub struct Client { /* private fields */ }
Expand description
Client for AWS Transfer Family
Client for invoking operations on AWS Transfer Family. Each operation on AWS Transfer Family is a method on this
this struct. .send()
MUST be invoked on the generated operations to dispatch the request to the service.
Examples
Constructing a client and invoking an operation
// create a shared configuration. This can be used & shared between multiple service clients.
let shared_config = aws_config::load_from_env().await;
let client = aws_sdk_transfer::Client::new(&shared_config);
// invoke an operation
/* let rsp = client
.<operation_name>().
.<param>("some value")
.send().await; */
Constructing a client with custom configuration
use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_transfer::config::Builder::from(&shared_config)
.retry_config(RetryConfig::disabled())
.build();
let client = aws_sdk_transfer::Client::from_conf(config);
Implementations§
source§impl Client
impl Client
sourcepub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
pub fn with_config(
client: Client<DynConnector, DynMiddleware<DynConnector>>,
conf: Config
) -> Self
Creates a client with the given service configuration.
source§impl Client
impl Client
sourcepub fn create_access(&self) -> CreateAccess
pub fn create_access(&self) -> CreateAccess
Constructs a fluent builder for the CreateAccess
operation.
- The fluent builder is configurable:
home_directory(impl Into<String>)
/set_home_directory(Option<String>)
:The landing directory (folder) for a user when they log in to the server using the client.
A
HomeDirectory
example is/bucket_name/home/mydirectory
.home_directory_type(HomeDirectoryType)
/set_home_directory_type(Option<HomeDirectoryType>)
:The type of landing directory (folder) that you want your users’ home directory to be when they log in to the server. If you set it to
PATH
, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set itLOGICAL
, you need to provide mappings in theHomeDirectoryMappings
for how you want to make Amazon S3 or Amazon EFS paths visible to your users.home_directory_mappings(Vec<HomeDirectoryMapEntry>)
/set_home_directory_mappings(Option<Vec<HomeDirectoryMapEntry>>)
:Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the
Entry
andTarget
pair, whereEntry
shows how the path is made visible andTarget
is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths inTarget
. This value can be set only whenHomeDirectoryType
is set to LOGICAL.The following is an
Entry
andTarget
pair example.[ { “Entry”: “/directory1”, “Target”: “/bucket_name/home/mydirectory” } ]
In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (“
chroot
”). To do this, you can setEntry
to/
and setTarget
to theHomeDirectory
parameter value.The following is an
Entry
andTarget
pair example forchroot
.[ { “Entry”: “/”, “Target”: “/bucket_name/home/mydirectory” } ]
policy(impl Into<String>)
/set_policy(Option<String>)
:A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user’s access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include
${Transfer:UserName}
,${Transfer:HomeDirectory}
, and${Transfer:HomeBucket}
.This policy applies only when the domain of
ServerId
is Amazon S3. Amazon EFS does not use session policies.For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the
Policy
argument.For an example of a session policy, see Example session policy.
For more information, see AssumeRole in the Security Token Service API Reference.
posix_profile(PosixProfile)
/set_posix_profile(Option<PosixProfile>)
:The full POSIX identity, including user ID (
Uid
), group ID (Gid
), and any secondary groups IDs (SecondaryGids
), that controls your users’ access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users’ access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users’ transfer requests.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.
external_id(impl Into<String>)
/set_external_id(Option<String>)
:A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.
Get-ADGroup -Filter {samAccountName -like “YourGroupName*”} -Properties * | Select SamAccountName,ObjectSid
In that command, replace YourGroupName with the name of your Active Directory group.
The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-
- On success, responds with
CreateAccessOutput
with field(s):server_id(Option<String>)
:The identifier of the server that the user is attached to.
external_id(Option<String>)
:The external identifier of the group whose users have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family.
- On failure, responds with
SdkError<CreateAccessError>
sourcepub fn create_agreement(&self) -> CreateAgreement
pub fn create_agreement(&self) -> CreateAgreement
Constructs a fluent builder for the CreateAgreement
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:A name or short description to identify the agreement.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses.
local_profile_id(impl Into<String>)
/set_local_profile_id(Option<String>)
:A unique identifier for the AS2 local profile.
partner_profile_id(impl Into<String>)
/set_partner_profile_id(Option<String>)
:A unique identifier for the partner profile used in the agreement.
base_directory(impl Into<String>)
/set_base_directory(Option<String>)
:The landing directory (folder) for files transferred by using the AS2 protocol.
A
BaseDirectory
example is DOC-EXAMPLE-BUCKET/home/mydirectory.access_role(impl Into<String>)
/set_access_role(Option<String>)
:With AS2, you can send files by calling
StartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
. We use the file’s parent directory (for example, for–send-file-paths /bucket/dir/file.txt
, parent directory is/bucket/dir/
) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.status(AgreementStatusType)
/set_status(Option<AgreementStatusType>)
:The status of the agreement. The agreement can be either
ACTIVE
orINACTIVE
.tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for agreements.
- On success, responds with
CreateAgreementOutput
with field(s):agreement_id(Option<String>)
:The unique identifier for the agreement. Use this ID for deleting, or updating an agreement, as well as in any other API calls that require that you specify the agreement ID.
- On failure, responds with
SdkError<CreateAgreementError>
sourcepub fn create_connector(&self) -> CreateConnector
pub fn create_connector(&self) -> CreateConnector
Constructs a fluent builder for the CreateConnector
operation.
- The fluent builder is configurable:
url(impl Into<String>)
/set_url(Option<String>)
:The URL of the partner’s AS2 endpoint.
as2_config(As2ConnectorConfig)
/set_as2_config(Option<As2ConnectorConfig>)
:A structure that contains the parameters for a connector object.
access_role(impl Into<String>)
/set_access_role(Option<String>)
:With AS2, you can send files by calling
StartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
. We use the file’s parent directory (for example, for–send-file-paths /bucket/dir/file.txt
, parent directory is/bucket/dir/
) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.logging_role(impl Into<String>)
/set_logging_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
- On success, responds with
CreateConnectorOutput
with field(s):connector_id(Option<String>)
:The unique identifier for the connector, returned after the API call succeeds.
- On failure, responds with
SdkError<CreateConnectorError>
sourcepub fn create_profile(&self) -> CreateProfile
pub fn create_profile(&self) -> CreateProfile
Constructs a fluent builder for the CreateProfile
operation.
- The fluent builder is configurable:
as2_id(impl Into<String>)
/set_as2_id(Option<String>)
:The
As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is theAS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is theAS2-To
header for the AS2 messages sent to the partner using theStartFileTransfer
API operation. This ID cannot include spaces.profile_type(ProfileType)
/set_profile_type(Option<ProfileType>)
:Determines the type of profile to create:
-
Specify
LOCAL
to create a local profile. A local profile represents the AS2-enabled Transfer Family server organization or party. -
Specify
PARTNER
to create a partner profile. A partner profile represents a remote organization, external to Transfer Family.
-
certificate_ids(Vec<String>)
/set_certificate_ids(Option<Vec<String>>)
:An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for AS2 profiles.
- On success, responds with
CreateProfileOutput
with field(s):profile_id(Option<String>)
:The unique identifier for the AS2 profile, returned after the API call succeeds.
- On failure, responds with
SdkError<CreateProfileError>
sourcepub fn create_server(&self) -> CreateServer
pub fn create_server(&self) -> CreateServer
Constructs a fluent builder for the CreateServer
operation.
- The fluent builder is configurable:
certificate(impl Into<String>)
/set_certificate(Option<String>)
:The Amazon Resource Name (ARN) of the Certificate Manager (ACM) certificate. Required when
Protocols
is set toFTPS
.To request a new public certificate, see Request a public certificate in the Certificate Manager User Guide.
To import an existing certificate into ACM, see Importing certificates into ACM in the Certificate Manager User Guide.
To request a private certificate to use FTPS through private IP addresses, see Request a private certificate in the Certificate Manager User Guide.
Certificates with the following cryptographic algorithms and key sizes are supported:
-
2048-bit RSA (RSA_2048)
-
4096-bit RSA (RSA_4096)
-
Elliptic Prime Curve 256 bit (EC_prime256v1)
-
Elliptic Prime Curve 384 bit (EC_secp384r1)
-
Elliptic Prime Curve 521 bit (EC_secp521r1)
The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.
-
domain(Domain)
/set_domain(Option<Domain>)
:The domain of the storage system that is used for file transfers. There are two domains available: Amazon Simple Storage Service (Amazon S3) and Amazon Elastic File System (Amazon EFS). The default value is S3.
After the server is created, the domain cannot be changed.
endpoint_details(EndpointDetails)
/set_endpoint_details(Option<EndpointDetails>)
:The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC’s default security groups are automatically assigned to your endpoint.
endpoint_type(EndpointType)
/set_endpoint_type(Option<EndpointType>)
:The type of endpoint that you want your server to use. You can choose to make your server’s endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.
After May 19, 2021, you won’t be able to create a server using
EndpointType=VPC_ENDPOINT
in your Amazon Web Services account if your account hasn’t already done so before May 19, 2021. If you have already created servers withEndpointType=VPC_ENDPOINT
in your Amazon Web Services account on or before May 19, 2021, you will not be affected. After this date, useEndpointType
=VPC
.For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.
It is recommended that you use
VPC
as theEndpointType
. With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server’s endpoint and use VPC security groups to restrict traffic by the client’s public IP address. This is not possible withEndpointType
set toVPC_ENDPOINT
.host_key(impl Into<String>)
/set_host_key(Option<String>)
:The RSA, ECDSA, or ED25519 private key to use for your SFTP-enabled server. You can add multiple host keys, in case you want to rotate keys, or have a set of active keys that use different algorithms.
Use the following command to generate an RSA 2048 bit key with no passphrase:
ssh-keygen -t rsa -b 2048 -N “” -m PEM -f my-new-server-key
.Use a minimum value of 2048 for the
-b
option. You can create a stronger key by using 3072 or 4096.Use the following command to generate an ECDSA 256 bit key with no passphrase:
ssh-keygen -t ecdsa -b 256 -N “” -m PEM -f my-new-server-key
.Valid values for the
-b
option for ECDSA are 256, 384, and 521.Use the following command to generate an ED25519 key with no passphrase:
ssh-keygen -t ed25519 -N “” -f my-new-server-key
.For all of these commands, you can replace my-new-server-key with a string of your choice.
If you aren’t planning to migrate existing users from an existing SFTP-enabled server to a new server, don’t update the host key. Accidentally changing a server’s host key can be disruptive.
For more information, see Update host keys for your SFTP-enabled server in the Transfer Family User Guide.
identity_provider_details(IdentityProviderDetails)
/set_identity_provider_details(Option<IdentityProviderDetails>)
:Required when
IdentityProviderType
is set toAWS_DIRECTORY_SERVICE
orAPI_GATEWAY
. Accepts an array containing all of the information required to use a directory inAWS_DIRECTORY_SERVICE
or invoke a customer-supplied authentication API, including the API Gateway URL. Not required whenIdentityProviderType
is set toSERVICE_MANAGED
.identity_provider_type(IdentityProviderType)
/set_identity_provider_type(Option<IdentityProviderType>)
:The mode of authentication for a server. The default value is
SERVICE_MANAGED
, which allows you to store and access user credentials within the Transfer Family service.Use
AWS_DIRECTORY_SERVICE
to provide access to Active Directory groups in Directory Service for Microsoft Active Directory or Microsoft Active Directory in your on-premises environment or in Amazon Web Services using AD Connector. This option also requires you to provide a Directory ID by using theIdentityProviderDetails
parameter.Use the
API_GATEWAY
value to integrate with an identity provider of your choosing. TheAPI_GATEWAY
setting requires you to provide an Amazon API Gateway endpoint URL to call for authentication by using theIdentityProviderDetails
parameter.Use the
AWS_LAMBDA
value to directly use an Lambda function as your identity provider. If you choose this value, you must specify the ARN for the Lambda function in theFunction
parameter or theIdentityProviderDetails
data type.logging_role(impl Into<String>)
/set_logging_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.
post_authentication_login_banner(impl Into<String>)
/set_post_authentication_login_banner(Option<String>)
:Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.
The SFTP protocol does not support post-authentication display banners.
pre_authentication_login_banner(impl Into<String>)
/set_pre_authentication_login_banner(Option<String>)
:Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:
This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.
protocols(Vec<Protocol>)
/set_protocols(Option<Vec<Protocol>>)
:Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server’s endpoint. The available protocols are:
-
SFTP
(Secure Shell (SSH) File Transfer Protocol): File transfer over SSH -
FTPS
(File Transfer Protocol Secure): File transfer with TLS encryption -
FTP
(File Transfer Protocol): Unencrypted file transfer -
AS2
(Applicability Statement 2): used for transporting structured business-to-business data
-
If you select
FTPS
, you must choose a certificate stored in Certificate Manager (ACM) which is used to identify your server when clients connect to it over FTPS. -
If
Protocol
includes eitherFTP
orFTPS
, then theEndpointType
must beVPC
and theIdentityProviderType
must beAWS_DIRECTORY_SERVICE
orAPI_GATEWAY
. -
If
Protocol
includesFTP
, thenAddressAllocationIds
cannot be associated. -
If
Protocol
is set only toSFTP
, theEndpointType
can be set toPUBLIC
and theIdentityProviderType
can be set toSERVICE_MANAGED
. -
If
Protocol
includesAS2
, then theEndpointType
must beVPC
, and domain must be Amazon S3.
-
protocol_details(ProtocolDetails)
/set_protocol_details(Option<ProtocolDetails>)
:The protocol settings that are configured for your server.
-
To indicate passive mode (for FTP and FTPS protocols), use the
PassiveIp
parameter. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. -
To ignore the error that is generated when the client attempts to use the
SETSTAT
command on a file that you are uploading to an Amazon S3 bucket, use theSetStatOption
parameter. To have the Transfer Family server ignore theSETSTAT
command and upload files without needing to make any changes to your SFTP client, set the value toENABLE_NO_OP
. If you set theSetStatOption
parameter toENABLE_NO_OP
, Transfer Family generates a log entry to Amazon CloudWatch Logs, so that you can determine when the client is making aSETSTAT
call. -
To determine whether your Transfer Family server resumes recent, negotiated sessions through a unique session ID, use the
TlsSessionResumptionMode
parameter. -
As2Transports
indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
-
security_policy_name(impl Into<String>)
/set_security_policy_name(Option<String>)
:Specifies the name of the security policy that is attached to the server.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for servers.
workflow_details(WorkflowDetails)
/set_workflow_details(Option<WorkflowDetails>)
:Specifies the workflow ID for the workflow to assign and the execution role that’s used for executing the workflow.
In additon to a workflow to execute when a file is uploaded completely,
WorkflowDeatails
can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when a file is open when the session disconnects.
- On success, responds with
CreateServerOutput
with field(s):server_id(Option<String>)
:The service-assigned identifier of the server that is created.
- On failure, responds with
SdkError<CreateServerError>
sourcepub fn create_user(&self) -> CreateUser
pub fn create_user(&self) -> CreateUser
Constructs a fluent builder for the CreateUser
operation.
- The fluent builder is configurable:
home_directory(impl Into<String>)
/set_home_directory(Option<String>)
:The landing directory (folder) for a user when they log in to the server using the client.
A
HomeDirectory
example is/bucket_name/home/mydirectory
.home_directory_type(HomeDirectoryType)
/set_home_directory_type(Option<HomeDirectoryType>)
:The type of landing directory (folder) that you want your users’ home directory to be when they log in to the server. If you set it to
PATH
, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set itLOGICAL
, you need to provide mappings in theHomeDirectoryMappings
for how you want to make Amazon S3 or Amazon EFS paths visible to your users.home_directory_mappings(Vec<HomeDirectoryMapEntry>)
/set_home_directory_mappings(Option<Vec<HomeDirectoryMapEntry>>)
:Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the
Entry
andTarget
pair, whereEntry
shows how the path is made visible andTarget
is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths inTarget
. This value can be set only whenHomeDirectoryType
is set to LOGICAL.The following is an
Entry
andTarget
pair example.[ { “Entry”: “/directory1”, “Target”: “/bucket_name/home/mydirectory” } ]
In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (“
chroot
”). To do this, you can setEntry
to/
and setTarget
to the HomeDirectory parameter value.The following is an
Entry
andTarget
pair example forchroot
.[ { “Entry”: “/”, “Target”: “/bucket_name/home/mydirectory” } ]
policy(impl Into<String>)
/set_policy(Option<String>)
:A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user’s access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include
${Transfer:UserName}
,${Transfer:HomeDirectory}
, and${Transfer:HomeBucket}
.This policy applies only when the domain of
ServerId
is Amazon S3. Amazon EFS does not use session policies.For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the
Policy
argument.For an example of a session policy, see Example session policy.
For more information, see AssumeRole in the Amazon Web Services Security Token Service API Reference.
posix_profile(PosixProfile)
/set_posix_profile(Option<PosixProfile>)
:Specifies the full POSIX identity, including user ID (
Uid
), group ID (Gid
), and any secondary groups IDs (SecondaryGids
), that controls your users’ access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in Amazon EFS determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users’ access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users’ transfer requests.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.
ssh_public_key_body(impl Into<String>)
/set_ssh_public_key_body(Option<String>)
:The public portion of the Secure Shell (SSH) key used to authenticate the user to the server.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:A unique string that identifies a user and is associated with a
ServerId
. This user name must be a minimum of 3 and a maximum of 100 characters long. The following are valid characters: a-z, A-Z, 0-9, underscore ‘_’, hyphen ‘-’, period ‘.’, and at sign ‘@’. The user name can’t start with a hyphen, period, or at sign.
- On success, responds with
CreateUserOutput
with field(s):server_id(Option<String>)
:The identifier of the server that the user is attached to.
user_name(Option<String>)
:A unique string that identifies a user account associated with a server.
- On failure, responds with
SdkError<CreateUserError>
sourcepub fn create_workflow(&self) -> CreateWorkflow
pub fn create_workflow(&self) -> CreateWorkflow
Constructs a fluent builder for the CreateWorkflow
operation.
- The fluent builder is configurable:
description(impl Into<String>)
/set_description(Option<String>)
:A textual description for the workflow.
steps(Vec<WorkflowStep>)
/set_steps(Option<Vec<WorkflowStep>>)
:Specifies the details for the steps that are in the specified workflow.
The
TYPE
specifies which of the following actions is being taken for this step.-
COPY: Copy the file to another location.
-
CUSTOM: Perform a custom step with an Lambda function target.
-
DELETE: Delete the file.
-
TAG: Add a tag to the file.
Currently, copying and tagging are supported only on S3.
For file location, you specify either the S3 bucket and key, or the EFS file system ID and path.
-
on_exception_steps(Vec<WorkflowStep>)
/set_on_exception_steps(Option<Vec<WorkflowStep>>)
:Specifies the steps (actions) to take if errors are encountered during execution of the workflow.
For custom steps, the lambda function needs to send
FAILURE
to the call back API to kick off the exception steps. Additionally, if the lambda does not sendSUCCESS
before it times out, the exception steps are executed.tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
- On success, responds with
CreateWorkflowOutput
with field(s):workflow_id(Option<String>)
:A unique identifier for the workflow.
- On failure, responds with
SdkError<CreateWorkflowError>
sourcepub fn delete_access(&self) -> DeleteAccess
pub fn delete_access(&self) -> DeleteAccess
Constructs a fluent builder for the DeleteAccess
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that has this user assigned.
external_id(impl Into<String>)
/set_external_id(Option<String>)
:A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.
Get-ADGroup -Filter {samAccountName -like “YourGroupName*”} -Properties * | Select SamAccountName,ObjectSid
In that command, replace YourGroupName with the name of your Active Directory group.
The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-
- On success, responds with
DeleteAccessOutput
- On failure, responds with
SdkError<DeleteAccessError>
sourcepub fn delete_agreement(&self) -> DeleteAgreement
pub fn delete_agreement(&self) -> DeleteAgreement
Constructs a fluent builder for the DeleteAgreement
operation.
- The fluent builder is configurable:
agreement_id(impl Into<String>)
/set_agreement_id(Option<String>)
:A unique identifier for the agreement. This identifier is returned when you create an agreement.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The server identifier associated with the agreement that you are deleting.
- On success, responds with
DeleteAgreementOutput
- On failure, responds with
SdkError<DeleteAgreementError>
sourcepub fn delete_certificate(&self) -> DeleteCertificate
pub fn delete_certificate(&self) -> DeleteCertificate
Constructs a fluent builder for the DeleteCertificate
operation.
- The fluent builder is configurable:
certificate_id(impl Into<String>)
/set_certificate_id(Option<String>)
:The identifier of the certificate object that you are deleting.
- On success, responds with
DeleteCertificateOutput
- On failure, responds with
SdkError<DeleteCertificateError>
sourcepub fn delete_connector(&self) -> DeleteConnector
pub fn delete_connector(&self) -> DeleteConnector
Constructs a fluent builder for the DeleteConnector
operation.
- The fluent builder is configurable:
connector_id(impl Into<String>)
/set_connector_id(Option<String>)
:The unique identifier for the connector.
- On success, responds with
DeleteConnectorOutput
- On failure, responds with
SdkError<DeleteConnectorError>
sourcepub fn delete_host_key(&self) -> DeleteHostKey
pub fn delete_host_key(&self) -> DeleteHostKey
Constructs a fluent builder for the DeleteHostKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server that contains the host key that you are deleting.
host_key_id(impl Into<String>)
/set_host_key_id(Option<String>)
:The identifier of the host key that you are deleting.
- On success, responds with
DeleteHostKeyOutput
- On failure, responds with
SdkError<DeleteHostKeyError>
sourcepub fn delete_profile(&self) -> DeleteProfile
pub fn delete_profile(&self) -> DeleteProfile
Constructs a fluent builder for the DeleteProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:The identifier of the profile that you are deleting.
- On success, responds with
DeleteProfileOutput
- On failure, responds with
SdkError<DeleteProfileError>
sourcepub fn delete_server(&self) -> DeleteServer
pub fn delete_server(&self) -> DeleteServer
Constructs a fluent builder for the DeleteServer
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A unique system-assigned identifier for a server instance.
- On success, responds with
DeleteServerOutput
- On failure, responds with
SdkError<DeleteServerError>
sourcepub fn delete_ssh_public_key(&self) -> DeleteSshPublicKey
pub fn delete_ssh_public_key(&self) -> DeleteSshPublicKey
Constructs a fluent builder for the DeleteSshPublicKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a file transfer protocol-enabled server instance that has the user assigned to it.
ssh_public_key_id(impl Into<String>)
/set_ssh_public_key_id(Option<String>)
:A unique identifier used to reference your user’s specific SSH key.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:A unique string that identifies a user whose public key is being deleted.
- On success, responds with
DeleteSshPublicKeyOutput
- On failure, responds with
SdkError<DeleteSshPublicKeyError>
sourcepub fn delete_user(&self) -> DeleteUser
pub fn delete_user(&self) -> DeleteUser
Constructs a fluent builder for the DeleteUser
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance that has the user assigned to it.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:A unique string that identifies a user that is being deleted from a server.
- On success, responds with
DeleteUserOutput
- On failure, responds with
SdkError<DeleteUserError>
sourcepub fn delete_workflow(&self) -> DeleteWorkflow
pub fn delete_workflow(&self) -> DeleteWorkflow
Constructs a fluent builder for the DeleteWorkflow
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:A unique identifier for the workflow.
- On success, responds with
DeleteWorkflowOutput
- On failure, responds with
SdkError<DeleteWorkflowError>
sourcepub fn describe_access(&self) -> DescribeAccess
pub fn describe_access(&self) -> DescribeAccess
Constructs a fluent builder for the DescribeAccess
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that has this access assigned.
external_id(impl Into<String>)
/set_external_id(Option<String>)
:A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.
Get-ADGroup -Filter {samAccountName -like “YourGroupName*”} -Properties * | Select SamAccountName,ObjectSid
In that command, replace YourGroupName with the name of your Active Directory group.
The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-
- On success, responds with
DescribeAccessOutput
with field(s):server_id(Option<String>)
:A system-assigned unique identifier for a server that has this access assigned.
access(Option<DescribedAccess>)
:The external identifier of the server that the access is attached to.
- On failure, responds with
SdkError<DescribeAccessError>
sourcepub fn describe_agreement(&self) -> DescribeAgreement
pub fn describe_agreement(&self) -> DescribeAgreement
Constructs a fluent builder for the DescribeAgreement
operation.
- The fluent builder is configurable:
agreement_id(impl Into<String>)
/set_agreement_id(Option<String>)
:A unique identifier for the agreement. This identifier is returned when you create an agreement.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The server identifier that’s associated with the agreement.
- On success, responds with
DescribeAgreementOutput
with field(s):agreement(Option<DescribedAgreement>)
:The details for the specified agreement, returned as a
DescribedAgreement
object.
- On failure, responds with
SdkError<DescribeAgreementError>
sourcepub fn describe_certificate(&self) -> DescribeCertificate
pub fn describe_certificate(&self) -> DescribeCertificate
Constructs a fluent builder for the DescribeCertificate
operation.
- The fluent builder is configurable:
certificate_id(impl Into<String>)
/set_certificate_id(Option<String>)
:An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
- On success, responds with
DescribeCertificateOutput
with field(s):certificate(Option<DescribedCertificate>)
:The details for the specified certificate, returned as an object.
- On failure, responds with
SdkError<DescribeCertificateError>
sourcepub fn describe_connector(&self) -> DescribeConnector
pub fn describe_connector(&self) -> DescribeConnector
Constructs a fluent builder for the DescribeConnector
operation.
- The fluent builder is configurable:
connector_id(impl Into<String>)
/set_connector_id(Option<String>)
:The unique identifier for the connector.
- On success, responds with
DescribeConnectorOutput
with field(s):connector(Option<DescribedConnector>)
:The structure that contains the details of the connector.
- On failure, responds with
SdkError<DescribeConnectorError>
sourcepub fn describe_execution(&self) -> DescribeExecution
pub fn describe_execution(&self) -> DescribeExecution
Constructs a fluent builder for the DescribeExecution
operation.
- The fluent builder is configurable:
execution_id(impl Into<String>)
/set_execution_id(Option<String>)
:A unique identifier for the execution of a workflow.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:A unique identifier for the workflow.
- On success, responds with
DescribeExecutionOutput
with field(s):workflow_id(Option<String>)
:A unique identifier for the workflow.
execution(Option<DescribedExecution>)
:The structure that contains the details of the workflow’ execution.
- On failure, responds with
SdkError<DescribeExecutionError>
sourcepub fn describe_host_key(&self) -> DescribeHostKey
pub fn describe_host_key(&self) -> DescribeHostKey
Constructs a fluent builder for the DescribeHostKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server that contains the host key that you want described.
host_key_id(impl Into<String>)
/set_host_key_id(Option<String>)
:The identifier of the host key that you want described.
- On success, responds with
DescribeHostKeyOutput
with field(s):host_key(Option<DescribedHostKey>)
:Returns the details for the specified host key.
- On failure, responds with
SdkError<DescribeHostKeyError>
sourcepub fn describe_profile(&self) -> DescribeProfile
pub fn describe_profile(&self) -> DescribeProfile
Constructs a fluent builder for the DescribeProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:The identifier of the profile that you want described.
- On success, responds with
DescribeProfileOutput
with field(s):profile(Option<DescribedProfile>)
:The details of the specified profile, returned as an object.
- On failure, responds with
SdkError<DescribeProfileError>
sourcepub fn describe_security_policy(&self) -> DescribeSecurityPolicy
pub fn describe_security_policy(&self) -> DescribeSecurityPolicy
Constructs a fluent builder for the DescribeSecurityPolicy
operation.
- The fluent builder is configurable:
security_policy_name(impl Into<String>)
/set_security_policy_name(Option<String>)
:Specifies the name of the security policy that is attached to the server.
- On success, responds with
DescribeSecurityPolicyOutput
with field(s):security_policy(Option<DescribedSecurityPolicy>)
:An array containing the properties of the security policy.
- On failure, responds with
SdkError<DescribeSecurityPolicyError>
sourcepub fn describe_server(&self) -> DescribeServer
pub fn describe_server(&self) -> DescribeServer
Constructs a fluent builder for the DescribeServer
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server.
- On success, responds with
DescribeServerOutput
with field(s):server(Option<DescribedServer>)
:An array containing the properties of a server with the
ServerID
you specified.
- On failure, responds with
SdkError<DescribeServerError>
sourcepub fn describe_user(&self) -> DescribeUser
pub fn describe_user(&self) -> DescribeUser
Constructs a fluent builder for the DescribeUser
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that has this user assigned.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:The name of the user assigned to one or more servers. User names are part of the sign-in credentials to use the Transfer Family service and perform file transfer tasks.
- On success, responds with
DescribeUserOutput
with field(s):server_id(Option<String>)
:A system-assigned unique identifier for a server that has this user assigned.
user(Option<DescribedUser>)
:An array containing the properties of the user account for the
ServerID
value that you specified.
- On failure, responds with
SdkError<DescribeUserError>
sourcepub fn describe_workflow(&self) -> DescribeWorkflow
pub fn describe_workflow(&self) -> DescribeWorkflow
Constructs a fluent builder for the DescribeWorkflow
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:A unique identifier for the workflow.
- On success, responds with
DescribeWorkflowOutput
with field(s):workflow(Option<DescribedWorkflow>)
:The structure that contains the details of the workflow.
- On failure, responds with
SdkError<DescribeWorkflowError>
sourcepub fn import_certificate(&self) -> ImportCertificate
pub fn import_certificate(&self) -> ImportCertificate
Constructs a fluent builder for the ImportCertificate
operation.
- The fluent builder is configurable:
usage(CertificateUsageType)
/set_usage(Option<CertificateUsageType>)
:Specifies whether this certificate is used for signing or encryption.
certificate(impl Into<String>)
/set_certificate(Option<String>)
:The file that contains the certificate to import.
certificate_chain(impl Into<String>)
/set_certificate_chain(Option<String>)
:An optional list of certificates that make up the chain for the certificate that’s being imported.
private_key(impl Into<String>)
/set_private_key(Option<String>)
:The file that contains the private key for the certificate that’s being imported.
active_date(DateTime)
/set_active_date(Option<DateTime>)
:An optional date that specifies when the certificate becomes active.
inactive_date(DateTime)
/set_inactive_date(Option<DateTime>)
:An optional date that specifies when the certificate becomes inactive.
description(impl Into<String>)
/set_description(Option<String>)
:A short description that helps identify the certificate.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for certificates.
- On success, responds with
ImportCertificateOutput
with field(s):certificate_id(Option<String>)
:An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
- On failure, responds with
SdkError<ImportCertificateError>
sourcepub fn import_host_key(&self) -> ImportHostKey
pub fn import_host_key(&self) -> ImportHostKey
Constructs a fluent builder for the ImportHostKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server that contains the host key that you are importing.
host_key_body(impl Into<String>)
/set_host_key_body(Option<String>)
:The public key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
description(impl Into<String>)
/set_description(Option<String>)
:The text description that identifies this host key.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
:Key-value pairs that can be used to group and search for host keys.
- On success, responds with
ImportHostKeyOutput
with field(s):server_id(Option<String>)
:Returns the server identifier that contains the imported key.
host_key_id(Option<String>)
:Returns the host key identifier for the imported key.
- On failure, responds with
SdkError<ImportHostKeyError>
sourcepub fn import_ssh_public_key(&self) -> ImportSshPublicKey
pub fn import_ssh_public_key(&self) -> ImportSshPublicKey
Constructs a fluent builder for the ImportSshPublicKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server.
ssh_public_key_body(impl Into<String>)
/set_ssh_public_key_body(Option<String>)
:The public key portion of an SSH key pair.
Transfer Family accepts RSA, ECDSA, and ED25519 keys.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:The name of the user account that is assigned to one or more servers.
- On success, responds with
ImportSshPublicKeyOutput
with field(s):server_id(Option<String>)
:A system-assigned unique identifier for a server.
ssh_public_key_id(Option<String>)
:The name given to a public key by the system that was imported.
user_name(Option<String>)
:A user name assigned to the
ServerID
value that you specified.
- On failure, responds with
SdkError<ImportSshPublicKeyError>
sourcepub fn list_accesses(&self) -> ListAccesses
pub fn list_accesses(&self) -> ListAccesses
Constructs a fluent builder for the ListAccesses
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the maximum number of access SIDs to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you can get additional results from the
ListAccesses
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional accesses.server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that has users assigned to it.
- On success, responds with
ListAccessesOutput
with field(s):next_token(Option<String>)
:When you can get additional results from the
ListAccesses
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional accesses.server_id(Option<String>)
:A system-assigned unique identifier for a server that has users assigned to it.
accesses(Option<Vec<ListedAccess>>)
:Returns the accesses and their properties for the
ServerId
value that you specify.
- On failure, responds with
SdkError<ListAccessesError>
sourcepub fn list_agreements(&self) -> ListAgreements
pub fn list_agreements(&self) -> ListAgreements
Constructs a fluent builder for the ListAgreements
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of agreements to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you can get additional results from the
ListAgreements
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional agreements.server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server for which you want a list of agreements.
- On success, responds with
ListAgreementsOutput
with field(s):next_token(Option<String>)
:Returns a token that you can use to call
ListAgreements
again and receive additional results, if there are any.agreements(Option<Vec<ListedAgreement>>)
:Returns an array, where each item contains the details of an agreement.
- On failure, responds with
SdkError<ListAgreementsError>
sourcepub fn list_certificates(&self) -> ListCertificates
pub fn list_certificates(&self) -> ListCertificates
Constructs a fluent builder for the ListCertificates
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of certificates to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you can get additional results from the
ListCertificates
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional certificates.
- On success, responds with
ListCertificatesOutput
with field(s):next_token(Option<String>)
:Returns the next token, which you can use to list the next certificate.
certificates(Option<Vec<ListedCertificate>>)
:Returns an array of the certificates that are specified in the
ListCertificates
call.
- On failure, responds with
SdkError<ListCertificatesError>
sourcepub fn list_connectors(&self) -> ListConnectors
pub fn list_connectors(&self) -> ListConnectors
Constructs a fluent builder for the ListConnectors
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of connectors to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you can get additional results from the
ListConnectors
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional connectors.
- On success, responds with
ListConnectorsOutput
with field(s):next_token(Option<String>)
:Returns a token that you can use to call
ListConnectors
again and receive additional results, if there are any.connectors(Option<Vec<ListedConnector>>)
:Returns an array, where each item contains the details of a connector.
- On failure, responds with
SdkError<ListConnectorsError>
sourcepub fn list_executions(&self) -> ListExecutions
pub fn list_executions(&self) -> ListExecutions
Constructs a fluent builder for the ListExecutions
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the maximum number of executions to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:ListExecutions
returns theNextToken
parameter in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional executions.This is useful for pagination, for instance. If you have 100 executions for a workflow, you might only want to list first 10. If so, call the API by specifying the
max-results
:aws transfer list-executions –max-results 10
This returns details for the first 10 executions, as well as the pointer (
NextToken
) to the eleventh execution. You can now call the API again, supplying theNextToken
value you received:aws transfer list-executions –max-results 10 –next-token $somePointerReturnedFromPreviousListResult
This call returns the next 10 executions, the 11th through the 20th. You can then repeat the call until the details for all 100 executions have been returned.
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:A unique identifier for the workflow.
- On success, responds with
ListExecutionsOutput
with field(s):next_token(Option<String>)
:ListExecutions
returns theNextToken
parameter in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional executions.workflow_id(Option<String>)
:A unique identifier for the workflow.
executions(Option<Vec<ListedExecution>>)
:Returns the details for each execution.
-
NextToken: returned from a call to several APIs, you can use pass it to a subsequent command to continue listing additional executions.
-
StartTime: timestamp indicating when the execution began.
-
Executions: details of the execution, including the execution ID, initial file location, and Service metadata.
-
Status: one of the following values:
IN_PROGRESS
,COMPLETED
,EXCEPTION
,HANDLING_EXEPTION
.
-
- On failure, responds with
SdkError<ListExecutionsError>
sourcepub fn list_host_keys(&self) -> ListHostKeys
pub fn list_host_keys(&self) -> ListHostKeys
Constructs a fluent builder for the ListHostKeys
operation.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of host keys to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When there are additional results that were not returned, a
NextToken
parameter is returned. You can use that value for a subsequent call toListHostKeys
to continue listing results.server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server that contains the host keys that you want to view.
- On success, responds with
ListHostKeysOutput
with field(s):next_token(Option<String>)
:Returns a token that you can use to call
ListHostKeys
again and receive additional results, if there are any.server_id(Option<String>)
:Returns the server identifier that contains the listed host keys.
host_keys(Option<Vec<ListedHostKey>>)
:Returns an array, where each item contains the details of a host key.
- On failure, responds with
SdkError<ListHostKeysError>
sourcepub fn list_profiles(&self) -> ListProfiles
pub fn list_profiles(&self) -> ListProfiles
Constructs a fluent builder for the ListProfiles
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:The maximum number of profiles to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:When there are additional results that were not returned, a
NextToken
parameter is returned. You can use that value for a subsequent call toListProfiles
to continue listing results.profile_type(ProfileType)
/set_profile_type(Option<ProfileType>)
:Indicates whether to list only
LOCAL
type profiles or onlyPARTNER
type profiles. If not supplied in the request, the command lists all types of profiles.
- On success, responds with
ListProfilesOutput
with field(s):next_token(Option<String>)
:Returns a token that you can use to call
ListProfiles
again and receive additional results, if there are any.profiles(Option<Vec<ListedProfile>>)
:Returns an array, where each item contains the details of a profile.
- On failure, responds with
SdkError<ListProfilesError>
sourcepub fn list_security_policies(&self) -> ListSecurityPolicies
pub fn list_security_policies(&self) -> ListSecurityPolicies
Constructs a fluent builder for the ListSecurityPolicies
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of security policies to return as a response to the
ListSecurityPolicies
query.next_token(impl Into<String>)
/set_next_token(Option<String>)
:When additional results are obtained from the
ListSecurityPolicies
command, aNextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional security policies.
- On success, responds with
ListSecurityPoliciesOutput
with field(s):next_token(Option<String>)
:When you can get additional results from the
ListSecurityPolicies
operation, aNextToken
parameter is returned in the output. In a following command, you can pass in theNextToken
parameter to continue listing security policies.security_policy_names(Option<Vec<String>>)
:An array of security policies that were listed.
- On failure, responds with
SdkError<ListSecurityPoliciesError>
sourcepub fn list_servers(&self) -> ListServers
pub fn list_servers(&self) -> ListServers
Constructs a fluent builder for the ListServers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of servers to return as a response to the
ListServers
query.next_token(impl Into<String>)
/set_next_token(Option<String>)
:When additional results are obtained from the
ListServers
command, aNextToken
parameter is returned in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional servers.
- On success, responds with
ListServersOutput
with field(s):next_token(Option<String>)
:When you can get additional results from the
ListServers
operation, aNextToken
parameter is returned in the output. In a following command, you can pass in theNextToken
parameter to continue listing additional servers.servers(Option<Vec<ListedServer>>)
:An array of servers that were listed.
- On failure, responds with
SdkError<ListServersError>
Constructs a fluent builder for the ListTagsForResource
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
arn(impl Into<String>)
/set_arn(Option<String>)
:Requests the tags associated with a particular Amazon Resource Name (ARN). An ARN is an identifier for a specific Amazon Web Services resource, such as a server, user, or role.
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of tags to return as a response to the
ListTagsForResource
request.next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you request additional results from the
ListTagsForResource
operation, aNextToken
parameter is returned in the input. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional tags.
- On success, responds with
ListTagsForResourceOutput
with field(s):arn(Option<String>)
:The ARN you specified to list the tags of.
next_token(Option<String>)
:When you can get additional results from the
ListTagsForResource
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional tags.tags(Option<Vec<Tag>>)
: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.
- On failure, responds with
SdkError<ListTagsForResourceError>
sourcepub fn list_users(&self) -> ListUsers
pub fn list_users(&self) -> ListUsers
Constructs a fluent builder for the ListUsers
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the number of users to return as a response to the
ListUsers
request.next_token(impl Into<String>)
/set_next_token(Option<String>)
:When you can get additional results from the
ListUsers
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional users.server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that has users assigned to it.
- On success, responds with
ListUsersOutput
with field(s):next_token(Option<String>)
:When you can get additional results from the
ListUsers
call, aNextToken
parameter is returned in the output. You can then pass in a subsequent command to theNextToken
parameter to continue listing additional users.server_id(Option<String>)
:A system-assigned unique identifier for a server that the users are assigned to.
users(Option<Vec<ListedUser>>)
:Returns the user accounts and their properties for the
ServerId
value that you specify.
- On failure, responds with
SdkError<ListUsersError>
sourcepub fn list_workflows(&self) -> ListWorkflows
pub fn list_workflows(&self) -> ListWorkflows
Constructs a fluent builder for the ListWorkflows
operation.
This operation supports pagination; See into_paginator()
.
- The fluent builder is configurable:
max_results(i32)
/set_max_results(Option<i32>)
:Specifies the maximum number of workflows to return.
next_token(impl Into<String>)
/set_next_token(Option<String>)
:ListWorkflows
returns theNextToken
parameter in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional workflows.
- On success, responds with
ListWorkflowsOutput
with field(s):next_token(Option<String>)
:ListWorkflows
returns theNextToken
parameter in the output. You can then pass theNextToken
parameter in a subsequent command to continue listing additional workflows.workflows(Option<Vec<ListedWorkflow>>)
:Returns the
Arn
,WorkflowId
, andDescription
for each workflow.
- On failure, responds with
SdkError<ListWorkflowsError>
sourcepub fn send_workflow_step_state(&self) -> SendWorkflowStepState
pub fn send_workflow_step_state(&self) -> SendWorkflowStepState
Constructs a fluent builder for the SendWorkflowStepState
operation.
- The fluent builder is configurable:
workflow_id(impl Into<String>)
/set_workflow_id(Option<String>)
:A unique identifier for the workflow.
execution_id(impl Into<String>)
/set_execution_id(Option<String>)
:A unique identifier for the execution of a workflow.
token(impl Into<String>)
/set_token(Option<String>)
:Used to distinguish between multiple callbacks for multiple Lambda steps within the same execution.
status(CustomStepStatus)
/set_status(Option<CustomStepStatus>)
:Indicates whether the specified step succeeded or failed.
- On success, responds with
SendWorkflowStepStateOutput
- On failure, responds with
SdkError<SendWorkflowStepStateError>
sourcepub fn start_file_transfer(&self) -> StartFileTransfer
pub fn start_file_transfer(&self) -> StartFileTransfer
Constructs a fluent builder for the StartFileTransfer
operation.
- The fluent builder is configurable:
connector_id(impl Into<String>)
/set_connector_id(Option<String>)
:The unique identifier for the connector.
send_file_paths(Vec<String>)
/set_send_file_paths(Option<Vec<String>>)
:An array of strings. Each string represents the absolute path for one outbound file transfer. For example,
DOC-EXAMPLE-BUCKET/myfile.txt
.
- On success, responds with
StartFileTransferOutput
with field(s):transfer_id(Option<String>)
:Returns the unique identifier for this file transfer.
- On failure, responds with
SdkError<StartFileTransferError>
sourcepub fn start_server(&self) -> StartServer
pub fn start_server(&self) -> StartServer
Constructs a fluent builder for the StartServer
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that you start.
- On success, responds with
StartServerOutput
- On failure, responds with
SdkError<StartServerError>
sourcepub fn stop_server(&self) -> StopServer
pub fn stop_server(&self) -> StopServer
Constructs a fluent builder for the StopServer
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server that you stopped.
- On success, responds with
StopServerOutput
- On failure, responds with
SdkError<StopServerError>
sourcepub fn tag_resource(&self) -> TagResource
pub fn tag_resource(&self) -> TagResource
Constructs a fluent builder for the TagResource
operation.
- The fluent builder is configurable:
arn(impl Into<String>)
/set_arn(Option<String>)
:An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as a server, user, or role.
tags(Vec<Tag>)
/set_tags(Option<Vec<Tag>>)
: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.
- On success, responds with
TagResourceOutput
- On failure, responds with
SdkError<TagResourceError>
sourcepub fn test_identity_provider(&self) -> TestIdentityProvider
pub fn test_identity_provider(&self) -> TestIdentityProvider
Constructs a fluent builder for the TestIdentityProvider
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned identifier for a specific server. That server’s user authentication method is tested with a user name and password.
server_protocol(Protocol)
/set_server_protocol(Option<Protocol>)
:The type of file transfer protocol to be tested.
The available protocols are:
-
Secure Shell (SSH) File Transfer Protocol (SFTP)
-
File Transfer Protocol Secure (FTPS)
-
File Transfer Protocol (FTP)
-
source_ip(impl Into<String>)
/set_source_ip(Option<String>)
:The source IP address of the user account to be tested.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:The name of the user account to be tested.
user_password(impl Into<String>)
/set_user_password(Option<String>)
:The password of the user account to be tested.
- On success, responds with
TestIdentityProviderOutput
with field(s):response(Option<String>)
:The response that is returned from your API Gateway.
status_code(i32)
:The HTTP status code that is the response from your API Gateway.
message(Option<String>)
:A message that indicates whether the test was successful or not.
If an empty string is returned, the most likely cause is that the authentication failed due to an incorrect username or password.
url(Option<String>)
:The endpoint of the service used to authenticate a user.
- On failure, responds with
SdkError<TestIdentityProviderError>
sourcepub fn untag_resource(&self) -> UntagResource
pub fn untag_resource(&self) -> UntagResource
Constructs a fluent builder for the UntagResource
operation.
- The fluent builder is configurable:
arn(impl Into<String>)
/set_arn(Option<String>)
:The value of the resource that will have the tag removed. An Amazon Resource Name (ARN) is an identifier for a specific Amazon Web Services resource, such as a server, user, or role.
tag_keys(Vec<String>)
/set_tag_keys(Option<Vec<String>>)
: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.
- On success, responds with
UntagResourceOutput
- On failure, responds with
SdkError<UntagResourceError>
sourcepub fn update_access(&self) -> UpdateAccess
pub fn update_access(&self) -> UpdateAccess
Constructs a fluent builder for the UpdateAccess
operation.
- The fluent builder is configurable:
home_directory(impl Into<String>)
/set_home_directory(Option<String>)
:The landing directory (folder) for a user when they log in to the server using the client.
A
HomeDirectory
example is/bucket_name/home/mydirectory
.home_directory_type(HomeDirectoryType)
/set_home_directory_type(Option<HomeDirectoryType>)
:The type of landing directory (folder) that you want your users’ home directory to be when they log in to the server. If you set it to
PATH
, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set itLOGICAL
, you need to provide mappings in theHomeDirectoryMappings
for how you want to make Amazon S3 or Amazon EFS paths visible to your users.home_directory_mappings(Vec<HomeDirectoryMapEntry>)
/set_home_directory_mappings(Option<Vec<HomeDirectoryMapEntry>>)
:Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the
Entry
andTarget
pair, whereEntry
shows how the path is made visible andTarget
is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths inTarget
. This value can be set only whenHomeDirectoryType
is set to LOGICAL.The following is an
Entry
andTarget
pair example.[ { “Entry”: “/directory1”, “Target”: “/bucket_name/home/mydirectory” } ]
In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (“
chroot
”). To do this, you can setEntry
to/
and setTarget
to theHomeDirectory
parameter value.The following is an
Entry
andTarget
pair example forchroot
.[ { “Entry”: “/”, “Target”: “/bucket_name/home/mydirectory” } ]
policy(impl Into<String>)
/set_policy(Option<String>)
:A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user’s access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include
${Transfer:UserName}
,${Transfer:HomeDirectory}
, and${Transfer:HomeBucket}
.This policy applies only when the domain of
ServerId
is Amazon S3. Amazon EFS does not use session policies.For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the
Policy
argument.For an example of a session policy, see Example session policy.
For more information, see AssumeRole in the Amazon Web ServicesSecurity Token Service API Reference.
posix_profile(PosixProfile)
/set_posix_profile(Option<PosixProfile>)
:The full POSIX identity, including user ID (
Uid
), group ID (Gid
), and any secondary groups IDs (SecondaryGids
), that controls your users’ access to your Amazon EFS file systems. The POSIX permissions that are set on files and directories in your file system determine the level of access your users get when transferring files into and out of your Amazon EFS file systems.role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users’ access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users’ transfer requests.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.
external_id(impl Into<String>)
/set_external_id(Option<String>)
:A unique identifier that is required to identify specific groups within your directory. The users of the group that you associate have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Transfer Family. If you know the group name, you can view the SID values by running the following command using Windows PowerShell.
Get-ADGroup -Filter {samAccountName -like “YourGroupName*”} -Properties * | Select SamAccountName,ObjectSid
In that command, replace YourGroupName with the name of your Active Directory group.
The regular expression used to validate this parameter is a string of characters consisting of uppercase and lowercase alphanumeric characters with no spaces. You can also include underscores or any of the following characters: =,.@:/-
- On success, responds with
UpdateAccessOutput
with field(s):server_id(Option<String>)
:The identifier of the server that the user is attached to.
external_id(Option<String>)
:The external identifier of the group whose users have access to your Amazon S3 or Amazon EFS resources over the enabled protocols using Amazon Web ServicesTransfer Family.
- On failure, responds with
SdkError<UpdateAccessError>
sourcepub fn update_agreement(&self) -> UpdateAgreement
pub fn update_agreement(&self) -> UpdateAgreement
Constructs a fluent builder for the UpdateAgreement
operation.
- The fluent builder is configurable:
agreement_id(impl Into<String>)
/set_agreement_id(Option<String>)
:A unique identifier for the agreement. This identifier is returned when you create an agreement.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance. This is the specific server that the agreement uses.
description(impl Into<String>)
/set_description(Option<String>)
:To replace the existing description, provide a short description for the agreement.
status(AgreementStatusType)
/set_status(Option<AgreementStatusType>)
:You can update the status for the agreement, either activating an inactive agreement or the reverse.
local_profile_id(impl Into<String>)
/set_local_profile_id(Option<String>)
:A unique identifier for the AS2 local profile.
To change the local profile identifier, provide a new value here.
partner_profile_id(impl Into<String>)
/set_partner_profile_id(Option<String>)
:A unique identifier for the partner profile. To change the partner profile identifier, provide a new value here.
base_directory(impl Into<String>)
/set_base_directory(Option<String>)
:To change the landing directory (folder) for files that are transferred, provide the bucket folder that you want to use; for example,
/DOC-EXAMPLE-BUCKET/home/mydirectory
.access_role(impl Into<String>)
/set_access_role(Option<String>)
:With AS2, you can send files by calling
StartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
. We use the file’s parent directory (for example, for–send-file-paths /bucket/dir/file.txt
, parent directory is/bucket/dir/
) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.
- On success, responds with
UpdateAgreementOutput
with field(s):agreement_id(Option<String>)
:A unique identifier for the agreement. This identifier is returned when you create an agreement.
- On failure, responds with
SdkError<UpdateAgreementError>
sourcepub fn update_certificate(&self) -> UpdateCertificate
pub fn update_certificate(&self) -> UpdateCertificate
Constructs a fluent builder for the UpdateCertificate
operation.
- The fluent builder is configurable:
certificate_id(impl Into<String>)
/set_certificate_id(Option<String>)
:The identifier of the certificate object that you are updating.
active_date(DateTime)
/set_active_date(Option<DateTime>)
:An optional date that specifies when the certificate becomes active.
inactive_date(DateTime)
/set_inactive_date(Option<DateTime>)
:An optional date that specifies when the certificate becomes inactive.
description(impl Into<String>)
/set_description(Option<String>)
:A short description to help identify the certificate.
- On success, responds with
UpdateCertificateOutput
with field(s):certificate_id(Option<String>)
:Returns the identifier of the certificate object that you are updating.
- On failure, responds with
SdkError<UpdateCertificateError>
sourcepub fn update_connector(&self) -> UpdateConnector
pub fn update_connector(&self) -> UpdateConnector
Constructs a fluent builder for the UpdateConnector
operation.
- The fluent builder is configurable:
connector_id(impl Into<String>)
/set_connector_id(Option<String>)
:The unique identifier for the connector.
url(impl Into<String>)
/set_url(Option<String>)
:The URL of the partner’s AS2 endpoint.
as2_config(As2ConnectorConfig)
/set_as2_config(Option<As2ConnectorConfig>)
:A structure that contains the parameters for a connector object.
access_role(impl Into<String>)
/set_access_role(Option<String>)
:With AS2, you can send files by calling
StartFileTransfer
and specifying the file paths in the request parameter,SendFilePaths
. We use the file’s parent directory (for example, for–send-file-paths /bucket/dir/file.txt
, parent directory is/bucket/dir/
) to temporarily store a processed AS2 message file, store the MDN when we receive them from the partner, and write a final JSON file containing relevant metadata of the transmission. So, theAccessRole
needs to provide read and write access to the parent directory of the file location used in theStartFileTransfer
request. Additionally, you need to provide read and write access to the parent directory of the files that you intend to send withStartFileTransfer
.logging_role(impl Into<String>)
/set_logging_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a connector to turn on CloudWatch logging for Amazon S3 events. When set, you can view connector activity in your CloudWatch logs.
- On success, responds with
UpdateConnectorOutput
with field(s):connector_id(Option<String>)
:Returns the identifier of the connector object that you are updating.
- On failure, responds with
SdkError<UpdateConnectorError>
sourcepub fn update_host_key(&self) -> UpdateHostKey
pub fn update_host_key(&self) -> UpdateHostKey
Constructs a fluent builder for the UpdateHostKey
operation.
- The fluent builder is configurable:
server_id(impl Into<String>)
/set_server_id(Option<String>)
:The identifier of the server that contains the host key that you are updating.
host_key_id(impl Into<String>)
/set_host_key_id(Option<String>)
:The identifier of the host key that you are updating.
description(impl Into<String>)
/set_description(Option<String>)
:An updated description for the host key.
- On success, responds with
UpdateHostKeyOutput
with field(s):server_id(Option<String>)
:Returns the server identifier for the server that contains the updated host key.
host_key_id(Option<String>)
:Returns the host key identifier for the updated host key.
- On failure, responds with
SdkError<UpdateHostKeyError>
sourcepub fn update_profile(&self) -> UpdateProfile
pub fn update_profile(&self) -> UpdateProfile
Constructs a fluent builder for the UpdateProfile
operation.
- The fluent builder is configurable:
profile_id(impl Into<String>)
/set_profile_id(Option<String>)
:The identifier of the profile object that you are updating.
certificate_ids(Vec<String>)
/set_certificate_ids(Option<Vec<String>>)
:An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
- On success, responds with
UpdateProfileOutput
with field(s):profile_id(Option<String>)
:Returns the identifier for the profile that’s being updated.
- On failure, responds with
SdkError<UpdateProfileError>
sourcepub fn update_server(&self) -> UpdateServer
pub fn update_server(&self) -> UpdateServer
Constructs a fluent builder for the UpdateServer
operation.
- The fluent builder is configurable:
certificate(impl Into<String>)
/set_certificate(Option<String>)
:The Amazon Resource Name (ARN) of the Amazon Web ServicesCertificate Manager (ACM) certificate. Required when
Protocols
is set toFTPS
.To request a new public certificate, see Request a public certificate in the Amazon Web ServicesCertificate Manager User Guide.
To import an existing certificate into ACM, see Importing certificates into ACM in the Amazon Web ServicesCertificate Manager User Guide.
To request a private certificate to use FTPS through private IP addresses, see Request a private certificate in the Amazon Web ServicesCertificate Manager User Guide.
Certificates with the following cryptographic algorithms and key sizes are supported:
-
2048-bit RSA (RSA_2048)
-
4096-bit RSA (RSA_4096)
-
Elliptic Prime Curve 256 bit (EC_prime256v1)
-
Elliptic Prime Curve 384 bit (EC_secp384r1)
-
Elliptic Prime Curve 521 bit (EC_secp521r1)
The certificate must be a valid SSL/TLS X.509 version 3 certificate with FQDN or IP address specified and information about the issuer.
-
protocol_details(ProtocolDetails)
/set_protocol_details(Option<ProtocolDetails>)
:The protocol settings that are configured for your server.
-
To indicate passive mode (for FTP and FTPS protocols), use the
PassiveIp
parameter. Enter a single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load balancer. -
To ignore the error that is generated when the client attempts to use the
SETSTAT
command on a file that you are uploading to an Amazon S3 bucket, use theSetStatOption
parameter. To have the Transfer Family server ignore theSETSTAT
command and upload files without needing to make any changes to your SFTP client, set the value toENABLE_NO_OP
. If you set theSetStatOption
parameter toENABLE_NO_OP
, Transfer Family generates a log entry to Amazon CloudWatch Logs, so that you can determine when the client is making aSETSTAT
call. -
To determine whether your Transfer Family server resumes recent, negotiated sessions through a unique session ID, use the
TlsSessionResumptionMode
parameter. -
As2Transports
indicates the transport method for the AS2 messages. Currently, only HTTP is supported.
-
endpoint_details(EndpointDetails)
/set_endpoint_details(Option<EndpointDetails>)
:The virtual private cloud (VPC) endpoint settings that are configured for your server. When you host your endpoint within your VPC, you can make your endpoint accessible only to resources within your VPC, or you can attach Elastic IP addresses and make your endpoint accessible to clients over the internet. Your VPC’s default security groups are automatically assigned to your endpoint.
endpoint_type(EndpointType)
/set_endpoint_type(Option<EndpointType>)
:The type of endpoint that you want your server to use. You can choose to make your server’s endpoint publicly accessible (PUBLIC) or host it inside your VPC. With an endpoint that is hosted in a VPC, you can restrict access to your server and resources only within your VPC or choose to make it internet facing by attaching Elastic IP addresses directly to it.
After May 19, 2021, you won’t be able to create a server using
EndpointType=VPC_ENDPOINT
in your Amazon Web Servicesaccount if your account hasn’t already done so before May 19, 2021. If you have already created servers withEndpointType=VPC_ENDPOINT
in your Amazon Web Servicesaccount on or before May 19, 2021, you will not be affected. After this date, useEndpointType
=VPC
.For more information, see https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vpc-endpoint.
It is recommended that you use
VPC
as theEndpointType
. With this endpoint type, you have the option to directly associate up to three Elastic IPv4 addresses (BYO IP included) with your server’s endpoint and use VPC security groups to restrict traffic by the client’s public IP address. This is not possible withEndpointType
set toVPC_ENDPOINT
.host_key(impl Into<String>)
/set_host_key(Option<String>)
:The RSA, ECDSA, or ED25519 private key to use for your SFTP-enabled server. You can add multiple host keys, in case you want to rotate keys, or have a set of active keys that use different algorithms.
Use the following command to generate an RSA 2048 bit key with no passphrase:
ssh-keygen -t rsa -b 2048 -N “” -m PEM -f my-new-server-key
.Use a minimum value of 2048 for the
-b
option. You can create a stronger key by using 3072 or 4096.Use the following command to generate an ECDSA 256 bit key with no passphrase:
ssh-keygen -t ecdsa -b 256 -N “” -m PEM -f my-new-server-key
.Valid values for the
-b
option for ECDSA are 256, 384, and 521.Use the following command to generate an ED25519 key with no passphrase:
ssh-keygen -t ed25519 -N “” -f my-new-server-key
.For all of these commands, you can replace my-new-server-key with a string of your choice.
If you aren’t planning to migrate existing users from an existing SFTP-enabled server to a new server, don’t update the host key. Accidentally changing a server’s host key can be disruptive.
For more information, see Update host keys for your SFTP-enabled server in the Transfer Family User Guide.
identity_provider_details(IdentityProviderDetails)
/set_identity_provider_details(Option<IdentityProviderDetails>)
:An array containing all of the information required to call a customer’s authentication API method.
logging_role(impl Into<String>)
/set_logging_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch logging for Amazon S3 or Amazon EFSevents. When set, you can view user activity in your CloudWatch logs.
post_authentication_login_banner(impl Into<String>)
/set_post_authentication_login_banner(Option<String>)
:Specifies a string to display when users connect to a server. This string is displayed after the user authenticates.
The SFTP protocol does not support post-authentication display banners.
pre_authentication_login_banner(impl Into<String>)
/set_pre_authentication_login_banner(Option<String>)
:Specifies a string to display when users connect to a server. This string is displayed before the user authenticates. For example, the following banner displays details about using the system:
This system is for the use of authorized users only. Individuals using this computer system without authority, or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by system personnel.
protocols(Vec<Protocol>)
/set_protocols(Option<Vec<Protocol>>)
:Specifies the file transfer protocol or protocols over which your file transfer protocol client can connect to your server’s endpoint. The available protocols are:
-
SFTP
(Secure Shell (SSH) File Transfer Protocol): File transfer over SSH -
FTPS
(File Transfer Protocol Secure): File transfer with TLS encryption -
FTP
(File Transfer Protocol): Unencrypted file transfer -
AS2
(Applicability Statement 2): used for transporting structured business-to-business data
-
If you select
FTPS
, you must choose a certificate stored in Certificate Manager (ACM) which is used to identify your server when clients connect to it over FTPS. -
If
Protocol
includes eitherFTP
orFTPS
, then theEndpointType
must beVPC
and theIdentityProviderType
must beAWS_DIRECTORY_SERVICE
orAPI_GATEWAY
. -
If
Protocol
includesFTP
, thenAddressAllocationIds
cannot be associated. -
If
Protocol
is set only toSFTP
, theEndpointType
can be set toPUBLIC
and theIdentityProviderType
can be set toSERVICE_MANAGED
. -
If
Protocol
includesAS2
, then theEndpointType
must beVPC
, and domain must be Amazon S3.
-
security_policy_name(impl Into<String>)
/set_security_policy_name(Option<String>)
:Specifies the name of the security policy that is attached to the server.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance that the user account is assigned to.
workflow_details(WorkflowDetails)
/set_workflow_details(Option<WorkflowDetails>)
:Specifies the workflow ID for the workflow to assign and the execution role that’s used for executing the workflow.
In additon to a workflow to execute when a file is uploaded completely,
WorkflowDeatails
can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when a file is open when the session disconnects.To remove an associated workflow from a server, you can provide an empty
OnUpload
object, as in the following example.aws transfer update-server –server-id s-01234567890abcdef –workflow-details ‘{“OnUpload”:[]}’
- On success, responds with
UpdateServerOutput
with field(s):server_id(Option<String>)
:A system-assigned unique identifier for a server that the user account is assigned to.
- On failure, responds with
SdkError<UpdateServerError>
sourcepub fn update_user(&self) -> UpdateUser
pub fn update_user(&self) -> UpdateUser
Constructs a fluent builder for the UpdateUser
operation.
- The fluent builder is configurable:
home_directory(impl Into<String>)
/set_home_directory(Option<String>)
:The landing directory (folder) for a user when they log in to the server using the client.
A
HomeDirectory
example is/bucket_name/home/mydirectory
.home_directory_type(HomeDirectoryType)
/set_home_directory_type(Option<HomeDirectoryType>)
:The type of landing directory (folder) that you want your users’ home directory to be when they log in to the server. If you set it to
PATH
, the user will see the absolute Amazon S3 bucket or EFS paths as is in their file transfer protocol clients. If you set itLOGICAL
, you need to provide mappings in theHomeDirectoryMappings
for how you want to make Amazon S3 or Amazon EFS paths visible to your users.home_directory_mappings(Vec<HomeDirectoryMapEntry>)
/set_home_directory_mappings(Option<Vec<HomeDirectoryMapEntry>>)
:Logical directory mappings that specify what Amazon S3 or Amazon EFS paths and keys should be visible to your user and how you want to make them visible. You must specify the
Entry
andTarget
pair, whereEntry
shows how the path is made visible andTarget
is the actual Amazon S3 or Amazon EFS path. If you only specify a target, it is displayed as is. You also must ensure that your Identity and Access Management (IAM) role provides access to paths inTarget
. This value can be set only whenHomeDirectoryType
is set to LOGICAL.The following is an
Entry
andTarget
pair example.[ { “Entry”: “/directory1”, “Target”: “/bucket_name/home/mydirectory” } ]
In most cases, you can use this value instead of the session policy to lock down your user to the designated home directory (“
chroot
”). To do this, you can setEntry
to ‘/’ and setTarget
to the HomeDirectory parameter value.The following is an
Entry
andTarget
pair example forchroot
.[ { “Entry”: “/”, “Target”: “/bucket_name/home/mydirectory” } ]
policy(impl Into<String>)
/set_policy(Option<String>)
:A session policy for your user so that you can use the same Identity and Access Management (IAM) role across multiple users. This policy scopes down a user’s access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include
${Transfer:UserName}
,${Transfer:HomeDirectory}
, and${Transfer:HomeBucket}
.This policy applies only when the domain of
ServerId
is Amazon S3. Amazon EFS does not use session policies.For session policies, Transfer Family stores the policy as a JSON blob, instead of the Amazon Resource Name (ARN) of the policy. You save the policy as a JSON blob and pass it in the
Policy
argument.For an example of a session policy, see Creating a session policy.
For more information, see AssumeRole in the Amazon Web Services Security Token Service API Reference.
posix_profile(PosixProfile)
/set_posix_profile(Option<PosixProfile>)
:Specifies the full POSIX identity, including user ID (
Uid
), group ID (Gid
), and any secondary groups IDs (SecondaryGids
), that controls your users’ access to your Amazon Elastic File Systems (Amazon EFS). The POSIX permissions that are set on files and directories in your file system determines the level of access your users get when transferring files into and out of your Amazon EFS file systems.role(impl Into<String>)
/set_role(Option<String>)
:The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role that controls your users’ access to your Amazon S3 bucket or Amazon EFS file system. The policies attached to this role determine the level of access that you want to provide your users when transferring files into and out of your Amazon S3 bucket or Amazon EFS file system. The IAM role should also contain a trust relationship that allows the server to access your resources when servicing your users’ transfer requests.
server_id(impl Into<String>)
/set_server_id(Option<String>)
:A system-assigned unique identifier for a server instance that the user account is assigned to.
user_name(impl Into<String>)
/set_user_name(Option<String>)
:A unique string that identifies a user and is associated with a server as specified by the
ServerId
. This user name must be a minimum of 3 and a maximum of 100 characters long. The following are valid characters: a-z, A-Z, 0-9, underscore ‘_’, hyphen ‘-’, period ‘.’, and at sign ‘@’. The user name can’t start with a hyphen, period, or at sign.
- On success, responds with
UpdateUserOutput
with field(s):server_id(Option<String>)
:A system-assigned unique identifier for a server instance that the user account is assigned to.
user_name(Option<String>)
:The unique identifier for a user that is assigned to a server instance that was specified in the request.
- On failure, responds with
SdkError<UpdateUserError>
source§impl Client
impl Client
sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
Panics
- This method will panic if the
sdk_config
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
sdk_config
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.
sourcepub fn from_conf(conf: Config) -> Self
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config
.
Panics
- This method will panic if the
conf
is missing an async sleep implementation. If you experience this panic, set thesleep_impl
on the Config passed into this function to fix it. - This method will panic if the
conf
is missing an HTTP connector. If you experience this panic, set thehttp_connector
on the Config passed into this function to fix it.