public static interface CreateUserRequest.Builder extends TransferRequest.Builder, SdkPojo, CopyableBuilder<CreateUserRequest.Builder,CreateUserRequest>
Modifier and Type | Method and Description |
---|---|
CreateUserRequest.Builder |
homeDirectory(String homeDirectory)
The landing directory (folder) for a user when they log in to the server using their SFTP client.
|
CreateUserRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateUserRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateUserRequest.Builder |
policy(String policy)
A scope-down policy for your user so you can use the same IAM role across multiple users.
|
CreateUserRequest.Builder |
role(String role)
The IAM role that controls your user’s access to your Amazon S3 bucket.
|
CreateUserRequest.Builder |
serverId(String serverId)
A system-assigned unique identifier for an SFTP server instance.
|
CreateUserRequest.Builder |
sshPublicKeyBody(String sshPublicKeyBody)
The public portion of the Secure Shall (SSH) key used to authenticate the user to the SFTP server.
|
CreateUserRequest.Builder |
tags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for users.
|
CreateUserRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
Key-value pairs that can be used to group and search for users.
|
CreateUserRequest.Builder |
tags(Tag... tags)
Key-value pairs that can be used to group and search for users.
|
CreateUserRequest.Builder |
userName(String userName)
A unique string that identifies a user and is associated with a server as specified by the
ServerId . |
build
overrideConfiguration
copy
applyMutation, build
CreateUserRequest.Builder homeDirectory(String homeDirectory)
The landing directory (folder) for a user when they log in to the server using their SFTP client. An example
is /home/username
.
homeDirectory
- The landing directory (folder) for a user when they log in to the server using their SFTP client. An
example is /home/username
.CreateUserRequest.Builder policy(String policy)
A scope-down policy for your user so you can use the same IAM role across multiple users. This policy scopes
down user access to portions of their Amazon S3 bucket. Variables you can use inside this policy include
${Transfer:UserName}
, ${Transfer:HomeDirectory}
, and
${Transfer:HomeBucket}
.
policy
- A scope-down policy for your user so you can use the same IAM role across multiple users. This policy
scopes down user access to portions of their Amazon S3 bucket. Variables you can use inside this
policy include ${Transfer:UserName}
, ${Transfer:HomeDirectory}
, and
${Transfer:HomeBucket}
.CreateUserRequest.Builder role(String role)
The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.
role
- The IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this
role will determine the level of access you want to provide your users when transferring files into
and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship
that allows the SFTP server to access your resources when servicing your SFTP user’s transfer
requests.CreateUserRequest.Builder serverId(String serverId)
A system-assigned unique identifier for an SFTP server instance. This is the specific SFTP server that you added your user to.
serverId
- A system-assigned unique identifier for an SFTP server instance. This is the specific SFTP server that
you added your user to.CreateUserRequest.Builder sshPublicKeyBody(String sshPublicKeyBody)
The public portion of the Secure Shall (SSH) key used to authenticate the user to the SFTP server.
sshPublicKeyBody
- The public portion of the Secure Shall (SSH) key used to authenticate the user to the SFTP server.CreateUserRequest.Builder tags(Collection<Tag> tags)
Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.
tags
- Key-value pairs that can be used to group and search for users. Tags are metadata attached to users
for any purpose.CreateUserRequest.Builder tags(Tag... tags)
Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.
tags
- Key-value pairs that can be used to group and search for users. Tags are metadata attached to users
for any purpose.CreateUserRequest.Builder tags(Consumer<Tag.Builder>... tags)
Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateUserRequest.Builder userName(String userName)
A unique string that identifies a user and is associated with a server as specified by the
ServerId
.
userName
- A unique string that identifies a user and is associated with a server as specified by the
ServerId
.CreateUserRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateUserRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.