@Generated(value="software.amazon.awssdk:codegen") public final class DescribedUser extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DescribedUser.Builder,DescribedUser>
Returns properties of the user that you wish to describe.
Modifier and Type | Class and Description |
---|---|
static interface |
DescribedUser.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
This property contains the unique Amazon Resource Name (ARN) for the user that was requested to be described.
|
static DescribedUser.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
homeDirectory()
This property specifies the landing directory (or folder) which is the location that files are written to or read
from in an Amazon S3 bucket for the described user.
|
String |
policy()
Specifies the name of the policy in use for the described user.
|
String |
role()
This property specifies the IAM role that controls your user’s access to your Amazon S3 bucket.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends DescribedUser.Builder> |
serializableBuilderClass() |
List<SshPublicKey> |
sshPublicKeys()
This property contains the public key portion of the Secure Shell (SSH) keys stored for the described user.
|
List<Tag> |
tags()
This property contains the key-value pairs for the user requested.
|
DescribedUser.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userName()
This property is the name of the user that was requested to be described.
|
copy
public String arn()
This property contains the unique Amazon Resource Name (ARN) for the user that was requested to be described.
public String homeDirectory()
This property specifies the landing directory (or folder) which is the location that files are written to or read
from in an Amazon S3 bucket for the described user. An example would be:
/bucket_name/home/username
.
/bucket_name/home/username
.public String policy()
Specifies the name of the policy in use for the described user.
public String role()
This property specifies the IAM role that controls your user’s access to your Amazon S3 bucket. The policies attached to this role will determine the level of access you want to provide your users when transferring files into and out of your Amazon S3 bucket or buckets. The IAM role should also contain a trust relationship that allows the SFTP server to access your resources when servicing your SFTP user’s transfer requests.
public List<SshPublicKey> sshPublicKeys()
This property contains the public key portion of the Secure Shell (SSH) keys stored for the described user.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<Tag> tags()
This property contains the key-value pairs for the user requested. Tag can be used to search for and group users for a variety of purposes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String userName()
This property is the name of the user that was requested to be described. User names are used for authentication purposes. This is the string that will be used by your user when they log in to your SFTP server.
public DescribedUser.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DescribedUser.Builder,DescribedUser>
public static DescribedUser.Builder builder()
public static Class<? extends DescribedUser.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.