import { Value } from '../../cloudformation/Value';
import { HomeDirectoryMapEntryProps } from './user/HomeDirectoryMapEntryProps';
import { PosixProfileProps } from './user/PosixProfileProps';
import { SshPublicKeyProps } from './user/SshPublicKeyProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type UserAttributes = {
    ServerId: Attribute<string>;
    UserName: Attribute<string>;
    Arn: Attribute<string>;
};
export type User = AwsResource<'AWS::Transfer::User', UserProperties, UserAttributes>;
/**
  The <code>AWS::Transfer::User</code> resource creates a user and associates them with an existing server. You can only create and associate users with servers that have the <code>IdentityProviderType</code> set to <code>SERVICE_MANAGED</code>. Using parameters for <code>CreateUser</code>, you can specify the user name, set the home directory, store the user’s public key, and assign the user’s AWS Identity and Access Management (IAM) role. You can also optionally add a session policy, and assign metadata with tags that can be used to group and search for users.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html">the AWS Docs</a>
*/
export declare function user(userProps: UserProperties): User;
/**
  The <code>AWS::Transfer::User</code> resource creates a user and associates them with an existing server. You can only create and associate users with servers that have the <code>IdentityProviderType</code> set to <code>SERVICE_MANAGED</code>. Using parameters for <code>CreateUser</code>, you can specify the user name, set the home directory, store the user’s public key, and assign the user’s AWS Identity and Access Management (IAM) role. You can also optionally add a session policy, and assign metadata with tags that can be used to group and search for users.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-transfer-user.html">the AWS Docs</a>
*/
export interface UserProperties {
    /** <code>Policy</code>  <a name="cfn-transfer-user-policy"></a>
  A session policy for your user so you can use the same IAM role across multiple users. This policy restricts user access to portions of their Amazon S3 bucket. Variables that you can use inside this policy include <code>${Transfer:UserName}</code>, <code>${Transfer:HomeDirectory}</code>, and <code>${Transfer:HomeBucket}</code>.<br />
  For session policies, AWS 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 <code>Policy</code> argument.<br />
  For an example of a session policy, see <a href="https://docs.aws.amazon.com/transfer/latest/userguide/session-policy.html">Example session policy</a>.<br />
  For more information, see <a href="https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html">AssumeRole</a> in the
  AWS Security Token Service API Reference:
  Required: No<br />
  
  Maximum: <code>2048</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    policy?: Value<string>;
    /** <code>Role</code>  <a name="cfn-transfer-user-role"></a>
  The Amazon Resource Name (ARN) of the AWS 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.<br />
  
  Required: Yes<br />
  
  Minimum: <code>20</code><br />
  
  Maximum: <code>2048</code><br />
  
  Pattern: <code>arn:.*role/.*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    role: Value<string>;
    /** <code>HomeDirectory</code>  <a name="cfn-transfer-user-homedirectory"></a>
  The landing directory (folder) for a user when they log in to the server using the client.<br />
  A <code>HomeDirectory</code> example is <code>/bucket_name/home/mydirectory</code>.<br />
  
  Required: No<br />
  
  Maximum: <code>1024</code><br />
  
  Pattern: <code>^$|/.*</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    homeDirectory?: Value<string>;
    /** <code>HomeDirectoryType</code>  <a name="cfn-transfer-user-homedirectorytype"></a>
  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 <code>PATH</code>, the user will see the absolute Amazon S3 bucket or Amazon EFS path as is in their file transfer protocol clients. If you set it to <code>LOGICAL</code>, you need to provide mappings in the <code>HomeDirectoryMappings</code> for how you want to make Amazon S3 or Amazon EFS paths visible to your users.<br />
  If <code>HomeDirectoryType</code> is <code>LOGICAL</code>, you must provide mappings, using the <code>HomeDirectoryMappings</code> parameter. If, on the other hand, <code>HomeDirectoryType</code> is <code>PATH</code>, you provide an absolute path using the <code>HomeDirectory</code> parameter. You cannot have both <code>HomeDirectory</code> and <code>HomeDirectoryMappings</code> in your template.
  
  Required: No<br />
  
  Allowed values: <code>LOGICAL | PATH</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    homeDirectoryType?: Value<'LOGICAL' | 'PATH'>;
    /** <code>ServerId</code>  <a name="cfn-transfer-user-serverid"></a>
  A system-assigned unique identifier for a server instance. This is the specific server that you added your user to.<br />
  
  Required: Yes<br />
  
  Minimum: <code>19</code><br />
  
  Maximum: <code>19</code><br />
  
  Pattern: <code>^s-([0-9a-f]{17})$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    serverId: Value<string>;
    /** <code>UserName</code>  <a name="cfn-transfer-user-username"></a>
  A unique string that identifies a user and is associated with a <code>ServerId</code>. 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.<br />
  
  Required: Yes<br />
  
  Minimum: <code>3</code><br />
  
  Maximum: <code>100</code><br />
  
  Pattern: <code>^[\w][\w@.-]{2,99}$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    userName: Value<string>;
    /** <code>HomeDirectoryMappings</code>  <a name="cfn-transfer-user-homedirectorymappings"></a>
  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 <code>Entry</code> and <code>Target</code> pair, where <code>Entry</code> shows how the path is made visible and <code>Target</code> 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 AWS Identity and Access Management (IAM) role provides access to paths in <code>Target</code>. This value can be set only when <code>HomeDirectoryType</code> is set to
  LOGICAL: br />
  The following is an <code>Entry</code> and <code>Target</code> pair example.<br />
  <code>[ { &quot;Entry&quot;: &quot;/directory1&quot;, &quot;Target&quot;: &quot;/bucket_name/home/mydirectory&quot; } ]</code><br />
  In most cases, you can use this value instead of the session policy to lock your user down to the designated home directory (”<code>chroot</code>”). To do this, you can set <code>Entry</code> to <code>/</code> and set <code>Target</code> to the value the user should see for their home directory when they log in.<br />
  The following is an <code>Entry</code> and <code>Target</code> pair example for <code>chroot</code>.<br />
  <code>[ { &quot;Entry&quot;: &quot;/&quot;, &quot;Target&quot;: &quot;/bucket_name/home/mydirectory&quot; } ]</code><br />
  
  Required: No<br />
  
  Maximum: <code>50</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    homeDirectoryMappings?: HomeDirectoryMapEntryProps[];
    /** <code>PosixProfile</code>  <a name="cfn-transfer-user-posixprofile"></a>
  Specifies the full POSIX identity, including user ID (<code>Uid</code>), group ID (<code>Gid</code>), and any secondary groups IDs (<code>SecondaryGids</code>), that controls your users’ access to your Amazon Elastic File System (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.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    posixProfile?: PosixProfileProps;
    /** <code>SshPublicKeys</code>  <a name="cfn-transfer-user-sshpublickeys"></a>
  Specifies the public key portion of the Secure Shell (SSH) keys stored for the described user.<br />
  
  Required: No<br />
  
  Maximum: <code>5</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    sshPublicKeys?: SshPublicKeyProps[];
    /** <code>Tags</code>  <a name="cfn-transfer-user-tags"></a>
  Key-value pairs that can be used to group and search for users. Tags are metadata attached to users for any purpose.<br />
  
  Required: No<br />
  
  Maximum: <code>50</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    tags?: Tag[];
}
