text:
# This file is auto-generated by AWSMetadata.jl
using AWS
using AWS.AWSServices: transfer
using AWS.Compat
using AWS.UUIDs

"""
    create_access(external_id, role, server_id)
    create_access(external_id, role, server_id, params::Dict{String,<:Any})

Used by administrators to choose which groups in the directory should have access to upload
and download files over the enabled protocols using Amazon Web Services Transfer Family.
For example, a Microsoft Active Directory might contain 50,000 users, but only a small
fraction might need the ability to transfer files to the server. An administrator can use
CreateAccess to limit the access to the correct set of users who need this ability.

# Arguments
- `external_id`: 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 Amazon Web Services 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 regex 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: =,.@:/-
- `role`: Specifies the Amazon Resource Name (ARN) of the IAM role that controls your
  users' access to your Amazon S3 bucket or 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 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`: A system-assigned unique identifier for a server instance. This is the
  specific server that you added your user to.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"HomeDirectory"`: 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.
- `"HomeDirectoryMappings"`: 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 and Target pair, where Entry shows how the path is made
  visible and Target 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 Amazon Web Services Identity
  and Access Management (IAM) role provides access to paths in Target. This value can only be
  set when HomeDirectoryType is set to LOGICAL. The following is an Entry and Target 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 set Entry to / and set
  Target to the HomeDirectory parameter value. The following is an Entry and Target pair
  example for chroot.  [ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" }
  ]   If the target of a logical directory entry does not exist in Amazon S3 or EFS, the
  entry is ignored. As a workaround, you can use the Amazon S3 API or EFS API to create 0
  byte objects as place holders for your directory. If using the CLI, use the s3api or efsapi
  call instead of s3 or efs so you can use the put-object operation. For example, you use the
  following: aws s3api put-object --bucket bucketname --key path/to/folder/. Make sure that
  the end of the key name ends in a / for it to be considered a folder.
- `"HomeDirectoryType"`: The type of landing directory (folder) you want your users' home
  directory to be when they log into 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 it LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you
  want to make Amazon S3 or EFS paths visible to your users.
- `"Policy"`: A session policy for your user so that you can use the same IAM role across
  multiple users. This policy scopes down user 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 only applies when the domain of
  ServerId is S3. EFS does not use session policies. For session policies, Amazon Web
  Services 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.
- `"PosixProfile"`:
"""
function create_access(
    ExternalId, Role, ServerId; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "CreateAccess",
        Dict{String,Any}(
            "ExternalId" => ExternalId, "Role" => Role, "ServerId" => ServerId
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function create_access(
    ExternalId,
    Role,
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "CreateAccess",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}(
                    "ExternalId" => ExternalId, "Role" => Role, "ServerId" => ServerId
                ),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    create_server()
    create_server(params::Dict{String,<:Any})

Instantiates an auto-scaling virtual server based on the selected file transfer protocol in
Amazon Web Services. When you make updates to your file transfer protocol-enabled server or
when you work with users, use the service-generated ServerId property that is assigned to
the newly created server.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"Certificate"`: The Amazon Resource Name (ARN) of the Amazon Web Services Certificate
  Manager (ACM) certificate. Required when Protocols is set to FTPS. To request a new public
  certificate, see Request a public certificate in the  Amazon Web Services Certificate
  Manager User Guide. To import an existing certificate into ACM, see Importing certificates
  into ACM in the  Amazon Web Services Certificate Manager User Guide. To request a private
  certificate to use FTPS through private IP addresses, see Request a private certificate in
  the  Amazon Web Services 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"`: 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.
- `"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 it
  accessible only to resources within your VPC, or you can attach Elastic IP addresses and
  make it accessible to clients over the internet. Your VPC's default security groups are
  automatically assigned to your endpoint.
- `"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 with
  EndpointType=VPC_ENDPOINT in your Amazon Web Services account on or before May 19, 2021,
  you will not be affected. After this date, use EndpointType=VPC. For more information, see
  https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vp
  c-endpoint. It is recommended that you use VPC as the EndpointType. 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 with EndpointType set to VPC_ENDPOINT.
- `"HostKey"`: The RSA private key as generated by the ssh-keygen -N \"\" -m PEM -f
  my-new-server-key command.  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 Change the host
  key for your SFTP-enabled server in the Amazon Web Services Transfer Family User Guide.
- `"IdentityProviderDetails"`: Required when IdentityProviderType is set to
  AWS_DIRECTORY_SERVICE or API_GATEWAY. Accepts an array containing all of the information
  required to use a directory in AWS_DIRECTORY_SERVICE or invoke a customer-supplied
  authentication API, including the API Gateway URL. Not required when IdentityProviderType
  is set to SERVICE_MANAGED.
- `"IdentityProviderType"`: Specifies the mode of authentication for a server. The default
  value is SERVICE_MANAGED, which allows you to store and access user credentials within the
  Amazon Web Services Transfer Family service. Use AWS_DIRECTORY_SERVICE to provide access to
  Active Directory groups in Amazon Web Services Managed Active Directory or Microsoft Active
  Directory in your on-premises environment or in Amazon Web Services using AD Connectors.
  This option also requires you to provide a Directory ID using the IdentityProviderDetails
  parameter. Use the API_GATEWAY value to integrate with an identity provider of your
  choosing. The API_GATEWAY setting requires you to provide an API Gateway endpoint URL to
  call for authentication using the IdentityProviderDetails parameter. Use the AWS_LAMBDA
  value to directly use a Lambda function as your identity provider. If you choose this
  value, you must specify the ARN for the lambda function in the Function parameter for the
  IdentityProviderDetails data type.
- `"LoggingRole"`: Specifies the Amazon Resource Name (ARN) of the Amazon Web Services
  Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch
  logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your
  CloudWatch logs.
- `"ProtocolDetails"`: The protocol settings that are configured for your server.  Use the
  PassiveIp parameter to indicate passive mode (for FTP and FTPS protocols). Enter a single
  dotted-quad IPv4 address, such as the external IP address of a firewall, router, or load
  balancer.  Use the TlsSessionResumptionMode parameter to determine whether or not your
  Transfer server resumes recent, negotiated sessions through a unique session ID.
- `"Protocols"`: 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    If you select FTPS, you must choose a certificate
  stored in Amazon Web Services Certificate Manager (ACM) which is used to identify your
  server when clients connect to it over FTPS. If Protocol includes either FTP or FTPS, then
  the EndpointType must be VPC and the IdentityProviderType must be AWS_DIRECTORY_SERVICE or
  API_GATEWAY. If Protocol includes FTP, then AddressAllocationIds cannot be associated. If
  Protocol is set only to SFTP, the EndpointType can be set to PUBLIC and the
  IdentityProviderType can be set to SERVICE_MANAGED.
- `"SecurityPolicyName"`: Specifies the name of the security policy that is attached to the
  server.
- `"Tags"`: Key-value pairs that can be used to group and search for servers.
- `"WorkflowDetails"`: Specifies the workflow ID for the workflow to assign and the
  execution role used for executing the workflow.
"""
function create_server(; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer("CreateServer"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET)
end
function create_server(
    params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "CreateServer", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
    )
end

"""
    create_user(role, server_id, user_name)
    create_user(role, server_id, user_name, params::Dict{String,<:Any})

Creates a user and associates them with an existing file transfer protocol-enabled server.
You can only create and associate users with servers that have the IdentityProviderType set
to SERVICE_MANAGED. Using parameters for CreateUser, you can specify the user name, set the
home directory, store the user's public key, and assign the user's Amazon Web Services
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.

# Arguments
- `role`: Specifies the Amazon Resource Name (ARN) of the IAM role that controls your
  users' access to your Amazon S3 bucket or 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 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`: A system-assigned unique identifier for a server instance. This is the
  specific server that you added your user to.
- `user_name`: 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.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"HomeDirectory"`: 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.
- `"HomeDirectoryMappings"`: 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 and Target pair, where Entry shows how the path is made
  visible and Target 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 Amazon Web Services Identity
  and Access Management (IAM) role provides access to paths in Target. This value can only be
  set when HomeDirectoryType is set to LOGICAL. The following is an Entry and Target 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 set Entry to / and set
  Target to the HomeDirectory parameter value. The following is an Entry and Target pair
  example for chroot.  [ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" }
  ]   If the target of a logical directory entry does not exist in Amazon S3 or EFS, the
  entry is ignored. As a workaround, you can use the Amazon S3 API or EFS API to create 0
  byte objects as place holders for your directory. If using the CLI, use the s3api or efsapi
  call instead of s3 or efs so you can use the put-object operation. For example, you use the
  following: aws s3api put-object --bucket bucketname --key path/to/folder/. Make sure that
  the end of the key name ends in a / for it to be considered a folder.
- `"HomeDirectoryType"`: The type of landing directory (folder) you want your users' home
  directory to be when they log into 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 it LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you
  want to make Amazon S3 or EFS paths visible to your users.
- `"Policy"`: A session policy for your user so that you can use the same IAM role across
  multiple users. This policy scopes down user 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 only applies when the domain of
  ServerId is S3. EFS does not use session policies. For session policies, Amazon Web
  Services 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.
- `"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.
- `"SshPublicKeyBody"`: The public portion of the Secure Shell (SSH) key used to
  authenticate the user to the server.   Currently, Transfer Family does not accept
  elliptical curve keys (keys beginning with ecdsa).
- `"Tags"`: Key-value pairs that can be used to group and search for users. Tags are
  metadata attached to users for any purpose.
"""
function create_user(
    Role, ServerId, UserName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "CreateUser",
        Dict{String,Any}("Role" => Role, "ServerId" => ServerId, "UserName" => UserName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function create_user(
    Role,
    ServerId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "CreateUser",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}(
                    "Role" => Role, "ServerId" => ServerId, "UserName" => UserName
                ),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    create_workflow(steps)
    create_workflow(steps, params::Dict{String,<:Any})

 Allows you to create a workflow with specified steps and step details the workflow invokes
after file transfer completes. After creating a workflow, you can associate the workflow
created with any transfer servers by specifying the workflow-details field in CreateServer
and UpdateServer operations.

# Arguments
- `steps`: 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: custom step with a lambda 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
  filesystem ID and path.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"Description"`: A textual description for the workflow.
- `"OnExceptionSteps"`: 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 send SUCCESS before it times out, the exception steps are executed.
- `"Tags"`: Key-value pairs that can be used to group and search for workflows. Tags are
  metadata attached to workflows for any purpose.
"""
function create_workflow(Steps; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "CreateWorkflow",
        Dict{String,Any}("Steps" => Steps);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function create_workflow(
    Steps, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "CreateWorkflow",
        Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Steps" => Steps), params));
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    delete_access(external_id, server_id)
    delete_access(external_id, server_id, params::Dict{String,<:Any})

Allows you to delete the access specified in the ServerID and ExternalID parameters.

# Arguments
- `external_id`: 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 Amazon Web Services 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 regex 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: =,.@:/-
- `server_id`: A system-assigned unique identifier for a server that has this user assigned.

"""
function delete_access(
    ExternalId, ServerId; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DeleteAccess",
        Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function delete_access(
    ExternalId,
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DeleteAccess",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    delete_server(server_id)
    delete_server(server_id, params::Dict{String,<:Any})

Deletes the file transfer protocol-enabled server that you specify. No response returns
from this operation.

# Arguments
- `server_id`: A unique system-assigned identifier for a server instance.

"""
function delete_server(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "DeleteServer",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function delete_server(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DeleteServer",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    delete_ssh_public_key(server_id, ssh_public_key_id, user_name)
    delete_ssh_public_key(server_id, ssh_public_key_id, user_name, params::Dict{String,<:Any})

Deletes a user's Secure Shell (SSH) public key.

# Arguments
- `server_id`: A system-assigned unique identifier for a file transfer protocol-enabled
  server instance that has the user assigned to it.
- `ssh_public_key_id`: A unique identifier used to reference your user's specific SSH key.
- `user_name`: A unique string that identifies a user whose public key is being deleted.

"""
function delete_ssh_public_key(
    ServerId, SshPublicKeyId, UserName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DeleteSshPublicKey",
        Dict{String,Any}(
            "ServerId" => ServerId,
            "SshPublicKeyId" => SshPublicKeyId,
            "UserName" => UserName,
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function delete_ssh_public_key(
    ServerId,
    SshPublicKeyId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DeleteSshPublicKey",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}(
                    "ServerId" => ServerId,
                    "SshPublicKeyId" => SshPublicKeyId,
                    "UserName" => UserName,
                ),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    delete_user(server_id, user_name)
    delete_user(server_id, user_name, params::Dict{String,<:Any})

Deletes the user belonging to a file transfer protocol-enabled server you specify. No
response returns from this operation.  When you delete a user from a server, the user's
information is lost.

# Arguments
- `server_id`: A system-assigned unique identifier for a server instance that has the user
  assigned to it.
- `user_name`: A unique string that identifies a user that is being deleted from a server.

"""
function delete_user(ServerId, UserName; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "DeleteUser",
        Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function delete_user(
    ServerId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DeleteUser",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    delete_workflow(workflow_id)
    delete_workflow(workflow_id, params::Dict{String,<:Any})

Deletes the specified workflow.

# Arguments
- `workflow_id`: A unique identifier for the workflow.

"""
function delete_workflow(WorkflowId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "DeleteWorkflow",
        Dict{String,Any}("WorkflowId" => WorkflowId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function delete_workflow(
    WorkflowId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DeleteWorkflow",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("WorkflowId" => WorkflowId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_access(external_id, server_id)
    describe_access(external_id, server_id, params::Dict{String,<:Any})

Describes the access that is assigned to the specific file transfer protocol-enabled
server, as identified by its ServerId property and its ExternalID. The response from this
call returns the properties of the access that is associated with the ServerId value that
was specified.

# Arguments
- `external_id`: 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 Amazon Web Services 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 regex 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: =,.@:/-
- `server_id`: A system-assigned unique identifier for a server that has this access
  assigned.

"""
function describe_access(
    ExternalId, ServerId; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DescribeAccess",
        Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_access(
    ExternalId,
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeAccess",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_execution(execution_id, workflow_id)
    describe_execution(execution_id, workflow_id, params::Dict{String,<:Any})

You can use DescribeExecution to check the details of the execution of the specified
workflow.

# Arguments
- `execution_id`: A unique identifier for the execution of a workflow.
- `workflow_id`: A unique identifier for the workflow.

"""
function describe_execution(
    ExecutionId, WorkflowId; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DescribeExecution",
        Dict{String,Any}("ExecutionId" => ExecutionId, "WorkflowId" => WorkflowId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_execution(
    ExecutionId,
    WorkflowId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeExecution",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ExecutionId" => ExecutionId, "WorkflowId" => WorkflowId),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_security_policy(security_policy_name)
    describe_security_policy(security_policy_name, params::Dict{String,<:Any})

Describes the security policy that is attached to your file transfer protocol-enabled
server. The response contains a description of the security policy's properties. For more
information about security policies, see Working with security policies.

# Arguments
- `security_policy_name`: Specifies the name of the security policy that is attached to the
  server.

"""
function describe_security_policy(
    SecurityPolicyName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DescribeSecurityPolicy",
        Dict{String,Any}("SecurityPolicyName" => SecurityPolicyName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_security_policy(
    SecurityPolicyName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeSecurityPolicy",
        Dict{String,Any}(
            mergewith(
                _merge, Dict{String,Any}("SecurityPolicyName" => SecurityPolicyName), params
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_server(server_id)
    describe_server(server_id, params::Dict{String,<:Any})

Describes a file transfer protocol-enabled server that you specify by passing the ServerId
parameter. The response contains a description of a server's properties. When you set
EndpointType to VPC, the response will contain the EndpointDetails.

# Arguments
- `server_id`: A system-assigned unique identifier for a server.

"""
function describe_server(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "DescribeServer",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_server(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeServer",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_user(server_id, user_name)
    describe_user(server_id, user_name, params::Dict{String,<:Any})

Describes the user assigned to the specific file transfer protocol-enabled server, as
identified by its ServerId property. The response from this call returns the properties of
the user associated with the ServerId value that was specified.

# Arguments
- `server_id`: A system-assigned unique identifier for a server that has this user assigned.
- `user_name`: The name of the user assigned to one or more servers. User names are part of
  the sign-in credentials to use the Amazon Web Services Transfer Family service and perform
  file transfer tasks.

"""
function describe_user(
    ServerId, UserName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "DescribeUser",
        Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_user(
    ServerId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeUser",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    describe_workflow(workflow_id)
    describe_workflow(workflow_id, params::Dict{String,<:Any})

Describes the specified workflow.

# Arguments
- `workflow_id`: A unique identifier for the workflow.

"""
function describe_workflow(WorkflowId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "DescribeWorkflow",
        Dict{String,Any}("WorkflowId" => WorkflowId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function describe_workflow(
    WorkflowId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "DescribeWorkflow",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("WorkflowId" => WorkflowId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    import_ssh_public_key(server_id, ssh_public_key_body, user_name)
    import_ssh_public_key(server_id, ssh_public_key_body, user_name, params::Dict{String,<:Any})

Adds a Secure Shell (SSH) public key to a user account identified by a UserName value
assigned to the specific file transfer protocol-enabled server, identified by ServerId. The
response returns the UserName value, the ServerId value, and the name of the SshPublicKeyId.

# Arguments
- `server_id`: A system-assigned unique identifier for a server.
- `ssh_public_key_body`: The public key portion of an SSH key pair.
- `user_name`: The name of the user account that is assigned to one or more servers.

"""
function import_ssh_public_key(
    ServerId, SshPublicKeyBody, UserName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "ImportSshPublicKey",
        Dict{String,Any}(
            "ServerId" => ServerId,
            "SshPublicKeyBody" => SshPublicKeyBody,
            "UserName" => UserName,
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function import_ssh_public_key(
    ServerId,
    SshPublicKeyBody,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "ImportSshPublicKey",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}(
                    "ServerId" => ServerId,
                    "SshPublicKeyBody" => SshPublicKeyBody,
                    "UserName" => UserName,
                ),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_accesses(server_id)
    list_accesses(server_id, params::Dict{String,<:Any})

Lists the details for all the accesses you have on your server.

# Arguments
- `server_id`: A system-assigned unique identifier for a server that has users assigned to
  it.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the maximum number of access SIDs to return.
- `"NextToken"`: When you can get additional results from the ListAccesses call, a
  NextToken parameter is returned in the output. You can then pass in a subsequent command to
  the NextToken parameter to continue listing additional accesses.
"""
function list_accesses(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "ListAccesses",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function list_accesses(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "ListAccesses",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_executions(workflow_id)
    list_executions(workflow_id, params::Dict{String,<:Any})

Lists all executions for the specified workflow.

# Arguments
- `workflow_id`: A unique identifier for the workflow.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the aximum number of executions to return.
- `"NextToken"`:  ListExecutions returns the NextToken parameter in the output. You can
  then pass the NextToken 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, callthe API by specifing 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, suppling the NextToken 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.
"""
function list_executions(WorkflowId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "ListExecutions",
        Dict{String,Any}("WorkflowId" => WorkflowId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function list_executions(
    WorkflowId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "ListExecutions",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("WorkflowId" => WorkflowId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_security_policies()
    list_security_policies(params::Dict{String,<:Any})

Lists the security policies that are attached to your file transfer protocol-enabled
servers.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the number of security policies to return as a response to the
  ListSecurityPolicies query.
- `"NextToken"`: When additional results are obtained from the ListSecurityPolicies
  command, a NextToken parameter is returned in the output. You can then pass the NextToken
  parameter in a subsequent command to continue listing additional security policies.
"""
function list_security_policies(; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "ListSecurityPolicies"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
    )
end
function list_security_policies(
    params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "ListSecurityPolicies",
        params;
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_servers()
    list_servers(params::Dict{String,<:Any})

Lists the file transfer protocol-enabled servers that are associated with your Amazon Web
Services account.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the number of servers to return as a response to the
  ListServers query.
- `"NextToken"`: When additional results are obtained from the ListServers command, a
  NextToken parameter is returned in the output. You can then pass the NextToken parameter in
  a subsequent command to continue listing additional servers.
"""
function list_servers(; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer("ListServers"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET)
end
function list_servers(
    params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "ListServers", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
    )
end

"""
    list_tags_for_resource(arn)
    list_tags_for_resource(arn, params::Dict{String,<:Any})

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The
resource can be a user, server, or role.

# Arguments
- `arn`: 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.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the number of tags to return as a response to the
  ListTagsForResource request.
- `"NextToken"`: When you request additional results from the ListTagsForResource
  operation, a NextToken parameter is returned in the input. You can then pass in a
  subsequent command to the NextToken parameter to continue listing additional tags.
"""
function list_tags_for_resource(Arn; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "ListTagsForResource",
        Dict{String,Any}("Arn" => Arn);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function list_tags_for_resource(
    Arn, params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "ListTagsForResource",
        Dict{String,Any}(mergewith(_merge, Dict{String,Any}("Arn" => Arn), params));
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_users(server_id)
    list_users(server_id, params::Dict{String,<:Any})

Lists the users for a file transfer protocol-enabled server that you specify by passing the
ServerId parameter.

# Arguments
- `server_id`: A system-assigned unique identifier for a server that has users assigned to
  it.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the number of users to return as a response to the ListUsers
  request.
- `"NextToken"`: When you can get additional results from the ListUsers call, a NextToken
  parameter is returned in the output. You can then pass in a subsequent command to the
  NextToken parameter to continue listing additional users.
"""
function list_users(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "ListUsers",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function list_users(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "ListUsers",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    list_workflows()
    list_workflows(params::Dict{String,<:Any})

Lists all of your workflows.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"MaxResults"`: Specifies the maximum number of workflows to return.
- `"NextToken"`:  ListWorkflows returns the NextToken parameter in the output. You can then
  pass the NextToken parameter in a subsequent command to continue listing additional
  workflows.
"""
function list_workflows(; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer("ListWorkflows"; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET)
end
function list_workflows(
    params::AbstractDict{String}; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "ListWorkflows", params; aws_config=aws_config, feature_set=SERVICE_FEATURE_SET
    )
end

"""
    send_workflow_step_state(execution_id, status, token, workflow_id)
    send_workflow_step_state(execution_id, status, token, workflow_id, params::Dict{String,<:Any})

Sends a callback for asynchronous custom steps.  The ExecutionId, WorkflowId, and Token are
passed to the target resource during execution of a custom step of a workflow. You must
include those with their callback as well as providing a status.

# Arguments
- `execution_id`: A unique identifier for the execution of a workflow.
- `status`: Indicates whether the specified step succeeded or failed.
- `token`: Used to distinguish between multiple callbacks for multiple Lambda steps within
  the same execution.
- `workflow_id`: A unique identifier for the workflow.

"""
function send_workflow_step_state(
    ExecutionId,
    Status,
    Token,
    WorkflowId;
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "SendWorkflowStepState",
        Dict{String,Any}(
            "ExecutionId" => ExecutionId,
            "Status" => Status,
            "Token" => Token,
            "WorkflowId" => WorkflowId,
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function send_workflow_step_state(
    ExecutionId,
    Status,
    Token,
    WorkflowId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "SendWorkflowStepState",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}(
                    "ExecutionId" => ExecutionId,
                    "Status" => Status,
                    "Token" => Token,
                    "WorkflowId" => WorkflowId,
                ),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    start_server(server_id)
    start_server(server_id, params::Dict{String,<:Any})

Changes the state of a file transfer protocol-enabled server from OFFLINE to ONLINE. It has
no impact on a server that is already ONLINE. An ONLINE server can accept and process file
transfer jobs. The state of STARTING indicates that the server is in an intermediate state,
either not fully able to respond, or not fully online. The values of START_FAILED can
indicate an error condition. No response is returned from this call.

# Arguments
- `server_id`: A system-assigned unique identifier for a server that you start.

"""
function start_server(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "StartServer",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function start_server(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "StartServer",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    stop_server(server_id)
    stop_server(server_id, params::Dict{String,<:Any})

Changes the state of a file transfer protocol-enabled server from ONLINE to OFFLINE. An
OFFLINE server cannot accept and process file transfer jobs. Information tied to your
server, such as server and user properties, are not affected by stopping your server.
Stopping the server will not reduce or impact your file transfer protocol endpoint billing;
you must delete the server to stop being billed.  The state of STOPPING indicates that the
server is in an intermediate state, either not fully able to respond, or not fully offline.
The values of STOP_FAILED can indicate an error condition. No response is returned from
this call.

# Arguments
- `server_id`: A system-assigned unique identifier for a server that you stopped.

"""
function stop_server(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "StopServer",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function stop_server(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "StopServer",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    tag_resource(arn, tags)
    tag_resource(arn, tags, params::Dict{String,<:Any})

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN).
Resources are users, servers, roles, and other entities. There is no response returned from
this call.

# Arguments
- `arn`: An Amazon Resource Name (ARN) for a specific Amazon Web Services resource, such as
  a server, user, or role.
- `tags`: 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.

"""
function tag_resource(Arn, Tags; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "TagResource",
        Dict{String,Any}("Arn" => Arn, "Tags" => Tags);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function tag_resource(
    Arn,
    Tags,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "TagResource",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("Arn" => Arn, "Tags" => Tags), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    test_identity_provider(server_id, user_name)
    test_identity_provider(server_id, user_name, params::Dict{String,<:Any})

If the IdentityProviderType of a file transfer protocol-enabled server is
AWS_DIRECTORY_SERVICE or API_Gateway, tests whether your identity provider is set up
successfully. We highly recommend that you call this operation to test your authentication
method as soon as you create your server. By doing so, you can troubleshoot issues with the
identity provider integration to ensure that your users can successfully use the service.
The ServerId and UserName parameters are required. The ServerProtocol, SourceIp, and
UserPassword are all optional.    You cannot use TestIdentityProvider if the
IdentityProviderType of your server is SERVICE_MANAGED.      If you provide any incorrect
values for any parameters, the Response field is empty.     If you provide a server ID for
a server that uses service-managed users, you get an error:    An error occurred
(InvalidRequestException) when calling the TestIdentityProvider operation: s-server-ID not
configured for external auth      If you enter a Server ID for the --server-id parameter
that does not identify an actual Transfer server, you receive the following error:   An
error occurred (ResourceNotFoundException) when calling the TestIdentityProvider operation:
Unknown server

# Arguments
- `server_id`: A system-assigned identifier for a specific server. That server's user
  authentication method is tested with a user name and password.
- `user_name`: The name of the user account to be tested.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"ServerProtocol"`: 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)
- `"SourceIp"`: The source IP address of the user account to be tested.
- `"UserPassword"`: The password of the user account to be tested.
"""
function test_identity_provider(
    ServerId, UserName; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "TestIdentityProvider",
        Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function test_identity_provider(
    ServerId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "TestIdentityProvider",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    untag_resource(arn, tag_keys)
    untag_resource(arn, tag_keys, params::Dict{String,<:Any})

Detaches a key-value pair from a resource, as identified by its Amazon Resource Name (ARN).
Resources are users, servers, roles, and other entities. No response is returned from this
call.

# Arguments
- `arn`: 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`: 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.

"""
function untag_resource(Arn, TagKeys; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "UntagResource",
        Dict{String,Any}("Arn" => Arn, "TagKeys" => TagKeys);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function untag_resource(
    Arn,
    TagKeys,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "UntagResource",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("Arn" => Arn, "TagKeys" => TagKeys), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    update_access(external_id, server_id)
    update_access(external_id, server_id, params::Dict{String,<:Any})

Allows you to update parameters for the access specified in the ServerID and ExternalID
parameters.

# Arguments
- `external_id`: 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 Amazon Web Services 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 regex 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: =,.@:/-
- `server_id`: A system-assigned unique identifier for a server instance. This is the
  specific server that you added your user to.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"HomeDirectory"`: 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.
- `"HomeDirectoryMappings"`: 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 and Target pair, where Entry shows how the path is made
  visible and Target 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 Amazon Web Services Identity
  and Access Management (IAM) role provides access to paths in Target. This value can only be
  set when HomeDirectoryType is set to LOGICAL. The following is an Entry and Target 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 set Entry to / and set
  Target to the HomeDirectory parameter value. The following is an Entry and Target pair
  example for chroot.  [ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" }
  ]   If the target of a logical directory entry does not exist in Amazon S3 or EFS, the
  entry is ignored. As a workaround, you can use the Amazon S3 API or EFS API to create 0
  byte objects as place holders for your directory. If using the CLI, use the s3api or efsapi
  call instead of s3 or efs so you can use the put-object operation. For example, you use the
  following: aws s3api put-object --bucket bucketname --key path/to/folder/. Make sure that
  the end of the key name ends in a / for it to be considered a folder.
- `"HomeDirectoryType"`: The type of landing directory (folder) you want your users' home
  directory to be when they log into 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 it LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you
  want to make Amazon S3 or EFS paths visible to your users.
- `"Policy"`: A session policy for your user so that you can use the same IAM role across
  multiple users. This policy scopes down user 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 only applies when the domain of
  ServerId is S3. EFS does not use session policies. For session policies, Amazon Web
  Services 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.
- `"PosixProfile"`:
- `"Role"`: Specifies the Amazon Resource Name (ARN) of the IAM role that controls your
  users' access to your Amazon S3 bucket or 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 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.
"""
function update_access(
    ExternalId, ServerId; aws_config::AbstractAWSConfig=global_aws_config()
)
    return transfer(
        "UpdateAccess",
        Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function update_access(
    ExternalId,
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "UpdateAccess",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ExternalId" => ExternalId, "ServerId" => ServerId),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    update_server(server_id)
    update_server(server_id, params::Dict{String,<:Any})

Updates the file transfer protocol-enabled server's properties after that server has been
created. The UpdateServer call returns the ServerId of the server you updated.

# Arguments
- `server_id`: A system-assigned unique identifier for a server instance that the user
  account is assigned to.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"Certificate"`: The Amazon Resource Name (ARN) of the Amazon Web ServicesCertificate
  Manager (ACM) certificate. Required when Protocols is set to FTPS. 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.
- `"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 it
  accessible only to resources within your VPC, or you can attach Elastic IP addresses and
  make it accessible to clients over the internet. Your VPC's default security groups are
  automatically assigned to your endpoint.
- `"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 with
  EndpointType=VPC_ENDPOINT in your Amazon Web Servicesaccount on or before May 19, 2021, you
  will not be affected. After this date, use EndpointType=VPC. For more information, see
  https://docs.aws.amazon.com/transfer/latest/userguide/create-server-in-vpc.html#deprecate-vp
  c-endpoint. It is recommended that you use VPC as the EndpointType. 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 with EndpointType set to VPC_ENDPOINT.
- `"HostKey"`: The RSA private key as generated by ssh-keygen -N \"\" -m PEM -f
  my-new-server-key.  If you aren't planning to migrate existing users from an existing
  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 Change the host key for your SFTP-enabled
  server in the Amazon Web ServicesTransfer Family User Guide.
- `"IdentityProviderDetails"`: An array containing all of the information required to call
  a customer's authentication API method.
- `"LoggingRole"`: Specifies the Amazon Resource Name (ARN) of the Amazon Web Services
  Identity and Access Management (IAM) role that allows a server to turn on Amazon CloudWatch
  logging for Amazon S3 or Amazon EFS events. When set, user activity can be viewed in your
  CloudWatch logs.
- `"ProtocolDetails"`:  The protocol settings that are configured for your server.   Use
  the PassiveIp parameter to indicate passive mode (for FTP and FTPS protocols). Enter a
  single dotted-quad IPv4 address, such as the external IP address of a firewall, router, or
  load balancer.  Use the TlsSessionResumptionMode parameter to determine whether or not your
  Transfer server resumes recent, negotiated sessions through a unique session ID.
- `"Protocols"`: 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:   Secure Shell (SSH) File Transfer Protocol (SFTP): File transfer over SSH   File
  Transfer Protocol Secure (FTPS): File transfer with TLS encryption   File Transfer Protocol
  (FTP): Unencrypted file transfer    If you select FTPS, you must choose a certificate
  stored in Amazon Web ServicesCertificate Manager (ACM) which will be used to identify your
  server when clients connect to it over FTPS. If Protocol includes either FTP or FTPS, then
  the EndpointType must be VPC and the IdentityProviderType must be AWS_DIRECTORY_SERVICE or
  API_GATEWAY. If Protocol includes FTP, then AddressAllocationIds cannot be associated. If
  Protocol is set only to SFTP, the EndpointType can be set to PUBLIC and the
  IdentityProviderType can be set to SERVICE_MANAGED.
- `"SecurityPolicyName"`: Specifies the name of the security policy that is attached to the
  server.
- `"WorkflowDetails"`: Specifies the workflow ID for the workflow to assign and the
  execution role used for executing the workflow.
"""
function update_server(ServerId; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "UpdateServer",
        Dict{String,Any}("ServerId" => ServerId);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function update_server(
    ServerId,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "UpdateServer",
        Dict{String,Any}(
            mergewith(_merge, Dict{String,Any}("ServerId" => ServerId), params)
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end

"""
    update_user(server_id, user_name)
    update_user(server_id, user_name, params::Dict{String,<:Any})

Assigns new properties to a user. Parameters you pass modify any or all of the following:
the home directory, role, and policy for the UserName and ServerId you specify. The
response returns the ServerId and the UserName for the updated user.

# Arguments
- `server_id`: A system-assigned unique identifier for a server instance that the user
  account is assigned to.
- `user_name`: 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.

# Optional Parameters
Optional parameters can be passed as a `params::Dict{String,<:Any}`. Valid keys are:
- `"HomeDirectory"`: 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.
- `"HomeDirectoryMappings"`: 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 and Target pair, where Entry shows how the path is made
  visible and Target 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 Amazon Web Services Identity
  and Access Management (IAM) role provides access to paths in Target. This value can only be
  set when HomeDirectoryType is set to LOGICAL. The following is an Entry and Target 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 set Entry to '/' and set
  Target to the HomeDirectory parameter value. The following is an Entry and Target pair
  example for chroot.  [ { \"Entry:\": \"/\", \"Target\": \"/bucket_name/home/mydirectory\" }
  ]   If the target of a logical directory entry does not exist in Amazon S3 or EFS, the
  entry is ignored. As a workaround, you can use the Amazon S3 API or EFS API to create 0
  byte objects as place holders for your directory. If using the CLI, use the s3api or efsapi
  call instead of s3 or efs so you can use the put-object operation. For example, you use the
  following: aws s3api put-object --bucket bucketname --key path/to/folder/. Make sure that
  the end of the key name ends in a / for it to be considered a folder.
- `"HomeDirectoryType"`: The type of landing directory (folder) you want your users' home
  directory to be when they log into 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 it LOGICAL, you need to provide mappings in the HomeDirectoryMappings for how you
  want to make Amazon S3 or EFS paths visible to your users.
- `"Policy"`: A session policy for your user so that you can use the same IAM role across
  multiple users. This policy scopes down user 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 only applies when the domain of
  ServerId is S3. EFS does not use session policies. For session policies, Amazon Web
  Services 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.
- `"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"`: Specifies the Amazon Resource Name (ARN) of the IAM role that controls your
  users' access to your Amazon S3 bucket or 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 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.
"""
function update_user(ServerId, UserName; aws_config::AbstractAWSConfig=global_aws_config())
    return transfer(
        "UpdateUser",
        Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName);
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end
function update_user(
    ServerId,
    UserName,
    params::AbstractDict{String};
    aws_config::AbstractAWSConfig=global_aws_config(),
)
    return transfer(
        "UpdateUser",
        Dict{String,Any}(
            mergewith(
                _merge,
                Dict{String,Any}("ServerId" => ServerId, "UserName" => UserName),
                params,
            ),
        );
        aws_config=aws_config,
        feature_set=SERVICE_FEATURE_SET,
    )
end


text:
""
function parse_json(file_string::String)
    data_string = readstring(open(file_string))
    return JSON.parse(data_string)
end

ext: jl


text:
# module, using, import, export
function lintmodule(ex::Expr, ctx::LintContext)
    @checktoplevel(ctx, "module")

    # TODO: do something about baremodules
    bare = ex.args[1]::Bool
    name = ex.args[2]
    if !isa(name, Symbol)
        msg(ctx, :E100, "module name must be a symbol")
        return
    end
    mi = ModuleInfo(name)
    vi = VarInfo(location(ctx), Module)
    info!(vi, mi)

    # set binding in parent module
    set!(ctx.current, name, vi)

    # set binding in this module
    mctx = ModuleContext(ctx.current, mi)
    set!(mctx, name, VarInfo(vi))

    withcontext(ctx, mctx) do
        lintexpr(ex.args[3], ctx)
        for sym in exports(ctx.current)
            if lookup(ctx.current, sym) == nothing
                msg(ctx, :W361, sym, "exporting undefined symbol")
            end
        end
    end
    @assert lookup(ctx.current, name) !== nothing
    info!(lookup(ctx.current, name), data(mctx))
end

"""
    walkmodulepath(m::Module, path::AbstractVector{Symbol}) :: Union{Any, Nothing}

Walk the module `m` based on the path descripton given by a series of symbols
describing submodules of `m`. For example, if `m === Base` and `path ==
[:Iterators, :take]`, then this returns `Base.Iterators.take`. If an error
occurs at any step, `nothing` is returned.

```jldoctest
julia> using Lint.walkmodulepath

julia> using Compat

julia> walkmodulepath(Compat, [:Iterators, :take])
take (generic function with 2 methods)
```
"""
function walkmodulepath(m::Module, path::AbstractVector{Symbol})::Union{Any, Nothing}
    # walk down m until we get to the requested symbol
    for s in path
        try
            m = getfield(m, s)
        catch
            return nothing
        end
    end
    m
end

function importobject(ctx::LintContext, name::Symbol, obj, source::Symbol)
    # TODO: don't overwrite existing identifiers
    vi = VarInfo(location(ctx), Core.Typeof(obj); source=source)
    info!(vi, StandardLibraryObject(obj))
    set!(ctx.current, name, vi)
end

function importintocontext(m::Module, p::AbstractVector{Symbol},
                           source::Symbol, getexports::Bool, ctx::LintContext)
    # walk down m until we get to the requested symbol
    maybem = walkmodulepath(m, @view(p[2:end]))
    if maybem == nothing
        msg(ctx, :W360, join(string.(p), "."),
            "importing probably undefined symbol")
        return
    end
    m = maybem

    if getexports && isa(m, Module)
        for n in names(m)
            try
                obj = getfield(m, n)
                importobject(ctx, n, obj, source)
            catch
                set!(ctx.current, n, VarInfo(location(ctx); source=source))
            end
        end
    end

    importobject(ctx, p[end], m, source)
end

function lintimport(ex::Expr, ctx::LintContext)
    if ctx.quoteLvl > 0
        return  # not safe to import in quotes
    end
    imp = understand_import(ex)
    @assert imp !== nothing
    @checktoplevel(ctx, kind(imp))

    # Don't use modules protected by a guard (these can cause crashes!)
    # see issue #149
    ctx.ifdepth > 0 && return

    source = kind(imp) === :using ? :used : :imported
    getexports = kind(imp) !== :import

    if dots(imp) == 0
        # top-level import
        if path(imp)[1] in [:Base, :Compat, :Core, :Lint]
            m = getfield(Lint, path(imp)[1])
            importintocontext(m, path(imp), source, getexports, ctx)
        elseif getexports
            # unfortunately, we need to import dynamically
            maybem = dynamic_import_toplevel_module(path(imp)[1])
            if maybem == nothing
                # TODO: make an effort to import the symbol?
                msg(ctx, :W101, path(imp)[1],
                    "unfortunately, Lint could not determine the exports of this module")
                return
            end
            m = maybem
            importintocontext(m, path(imp), source, getexports, ctx)
        else
            set!(ctx.current, path(imp)[end],
                 VarInfo(location(ctx); source=source))
        end
    else
        importfrom = ctx.current
        for i = 2:dots(imp)
            if isroot(importfrom)
                msg(ctx, :W362, join(string.(path(imp))),
                    "relative import is too deep; at least $(dots(imp) - i) superfluous dots")
                return
            end
            importfrom = parent(importfrom)
        end

        # walk down importfrom until we get to the requested symbol
        frommodule = data(importfrom)
        local vi
        canimport = true
        for s in path(imp)
            if !canimport
                msg(ctx, :W363, join(string.(path(imp)), "."),
                    "attempted import from probable non-module")
                return
            end
            result = lookup(frommodule, s)
            if result == nothing
                msg(ctx, :W360, join(string.(path(imp)), "."),
                    "importing probably undefined symbol")
                return
            else
                vi = result
                if vi.typeactual <: Module && vi.extra !== nothing && isa(vi.extra, ModuleInfo)
                    frommodule = vi.extra
                else
                    canimport = false
                end
            end
        end

        set!(ctx.current, path(imp)[end], VarInfo(vi; source=source))

        if getexports && vi.typeactual <: Module && vi.extra !== nothing &&
           isa(vi.extra, ModuleInfo)
            for n in vi.extra.exports
                nvi = lookup(vi.extra, n)
                if nvi !== nothing
                    set!(ctx.current, n, VarInfo(nvi); source=source)
                else
                    set!(ctx.current, n, VarInfo(location(ctx); source=source))
                end
            end
        end
    end
end

function lintexport(ex::Expr, ctx::LintContext)
    @checktoplevel(ctx, "export")
    for sym in ex.args
        if sym in exports(ctx.current)
            msg(ctx, :E333, sym, "duplicate exports of symbol")
        else
            export!(ctx.current, sym)
        end
    end
end


text:
macro contextualized(MetadataType::Symbol)
    esc(quote
        $Contextual.contextualized($MetadataType)
    end)
end

macro contextual(MetadataType::Symbol)
    esc(quote
        $Contextual.context()
    end)
end


text:
export SGD, Nesterov

export LearningRatePolicy, MomentumPolicy

@compat abstract type LearningRatePolicy end
@compat abstract type MomentumPolicy end


text:
#cd("C:/Users/francis.smart.ctr/GitDir/AbstractLogicJL")
#cd("/Users/francissmart/Documents/GitHub/AbstractLogic")

struct Hotcomb
  intuple
end

Base.keys(x::Hotcomb)     = keys(x.intuple)
value(x::Hotcomb)         = [(length(i)>1 ? i : 1:i) for i in x.intuple]
Base.size(x::Hotcomb)     = (*(length.(value(x))...), length(x.intuple))
find(x::Tuple, y::Symbol) = x[[x...] .== y]
Base.collect(x::Hotcomb)  = [x[i,j] for i in 1:size(x)[1], j in 1:size(x)[2]]
Base.min(x::Hotcomb)      = min(collect(Iterators.flatten(value(x)))...)
Base.max(x::Hotcomb)      = max(collect(Iterators.flatten(value(x)))...)
ends(x::Hotcomb)          = [min(x), max(x)]

function Base.getindex(x::Hotcomb, row::Integer, col::Integer)
    # Divisor is calculating based on how many values remains how many times to repeat the current value
    divisor = (col+1 > size(x)[2] ? 1 : value(x)[(col+1):size(x)[2]] .|> length |> prod)
    # indexvalue finds the index to select from the column of interest
    indexvalue = (Integer(ceil(row / divisor)) - 1) % length(value(x)[col]) +1
    value(x)[col][indexvalue]
end

Base.getindex(x::Hotcomb, row::Int, ::Colon) = [ x[row,i] for i = 1:size(x)[2] ]
Base.getindex(x::Hotcomb, ::Colon, col::Union{Int64,Symbol}) = [ x[i,col] for i = 1:size(x)[1] ]
Base.getindex(x::Hotcomb, ::Colon, ::Colon) = collect(x)

function Base.getindex(x::Hotcomb, row::Integer, col::Symbol)
  keymatch = findall(y -> y==col, [keys(x)...])
  length(keymatch)==0 && throw("Symbol :$col not found")
  x[row, keymatch...]
end

Base.getindex(x::Hotcomb, row::AbstractArray{Bool,1}) = x[row,:]

Base.getindex(x::Hotcomb, row::AbstractArray{Bool,1}, col::Union{Symbol,Int}) =
  [ x[i,col] for i = (1:size(x)[1])[row] ]

Base.getindex(x::Hotcomb, ::Colon, col::Union{Array{Int,1}, Array{Symbol,1}}) =
  [ x[i,j] for i = 1:size(x)[1], j in col]

Base.getindex(x::Hotcomb, row::AbstractArray{Bool,1}, col::Union{Array{Int,1}, Array{Symbol,1}}) =
  [ x[i,j] for i = (1:size(x)[1])[row], j in col]

Base.getindex(x::Hotcomb, row::AbstractArray{Bool,1}, ::Colon) =
  [ x[i,j] for i = (1:size(x)[1])[row], j =  (1:size(x)[2])]

Base.getindex(x::Hotcomb, ::Colon, ::Colon) = collect(x)

Base.getindex(x::Hotcomb, symb::Union{Array{Symbol,1}, Symbol}) = x[:,symb]

append(x::Hotcomb, y::NamedTuple) = Hotcomb(merge(x.intuple, y))

x = Hotcomb((a=2,b=2,c=2,d=2))

append(x, (e=2,f=2, a=2))

###################### Testing

x = Hotcomb((a=4,b=4,c=6:15))
binaryselector = rand(Bool, size(x)[1])

x[1,:]
x[binaryselector, :a]
x[:, [:a,:b]]
x[[:a,:b]]
x[:a]
x[binaryselector, [1,3,2,1]]

x[binaryselector, 1]
y = x[binaryselector, :]

# min(x)
# max(x)
# ends(x)

"""
Hotcomb(x) takes a tuple, named tuple, vector of ranges, or vector of constants.
Vectors of constants will be expanded with starting index of 1.

It can be accessed using `[:,:]`` getindex lookups. It uses processing speed to
loopup values but uses almost no memory. Symbols can also be used to index columns.
Hotcomb type has `key()`, `value()`, `size()`, and `collect()` methods defined for it.

# Examples
```jldoctest
julia> mycomb = Hotcomb((a=1:2, b=1:4,c='a':'c'))
Hotcomb((a = 1:2, b = 1:4, c = 'a':1:'c'))

julia> collect(mycomb)
24×3 Array{Any,2}:
 1  1  'a'
 1  1  'b'
 1  1  'c'
 1  2  'a'
 1  2  'b'
 1  2  'c'
 ⋮
 2  3  'a'
 2  3  'b'
 2  3  'c'
 2  4  'a'
 2  4  'b'
 2  4  'c'

julia> mycomb[5 , :]
3-element Array{Any,1}:
 1
 2
 'b'

julia> mycomb[4 , :b]
2

julia> keys(Hotcomb((a=1:2, b=1:4,c='a':'c')))
(:a, :b, :c)

julia> value(Hotcomb([4,5,6]))
3-element Array{UnitRange{Int64},1}:
 1:4
 1:5
 1:6

julia> value(Hotcomb([4,5,6]) == value(Hotcomb([1:4,1:5,1:6]))
true
```
"""


text:
module PlotsLH

using DocStringExtensions, Plots, StatsPlots

export grouped_bar_xy, grouped_bar_xyz
export plot_regressions
export make_legend

include("helpers.jl")
include("xy.jl")
include("xyz.jl")
include("regression_plots.jl")

end # module


text:
#unum-division.jl - currently uses the goldschmidt method, but will also
#implement other division algorithms.

doc"""
  `Unums.div(::Unum, ::Unum)` outputs a Unum OR Ubound corresponding to the quotient
  of two unums.  This is bound to the (\/) operation if options[:usegnum] is not
  set.  Note that in the case of degenerate unums, div may change the bit values
  of the individual unums, but the values will not be altered.
"""
@universal function udiv(a::Unum, b::Unum)
  #some basic test cases.
  (isnan(a) || isnan(b)) && return nan(U)
  #division by zero is always a NaN, for unums.  Why?  Because zero must be unsigned
  #in the unum spec, the signedness of the resulting infinity is undefined, and the
  #answer thus must be NaN.
  is_zero(b) && return nan(U)
  #division from zero is always zero.
  is_zero(a) && return zero(U)

  #figure out the result sign.
  result_sign = (a.flags $ b.flags) & UNUM_SIGN_MASK

  #division from inf is always inf, except inf/inf = NaN.
  if is_inf(a)
    is_inf(b) && return nan(U)
    return inf(U, result_sign)
  end

  #division by inf is always zero.
  is_inf(b) && return zero(U)
  #division by a unit value is always the same value, with a possible sign change.
  is_unit(b) && return coerce_sign!(copy(a), result_sign)

  resolve_degenerates!(a)
  resolve_degenerates!(b)

  if is_exact(a) && is_exact(b)
    div_exact(a, b, result_sign)
  else
    div_inexact(a, b, result_sign)
  end
end

__frac_bits(FSS::Int64) = max_fsize(FSS) + 1

global verbose_div = false
function set_verbose()
  global verbose_div = true
  nothing
end

@universal function div_exact(a::Unum, b::Unum, result_sign::UInt16)

  #first, calculate the exponents.
  _asubnormal = is_subnormal(a)
  _bsubnormal = is_subnormal(b)

  _aexp = decode_exp(a)
  _bexp = decode_exp(b)

  #solve the exponent.
  exponent = _aexp - _bexp

  exponent += _asubnormal * 1 - _bsubnormal * 1

  dividend = copy(a)
  _asubnormal && (exponent -= normalize!(dividend))
  zero_a = frac_ctz(dividend)

  #check if the divisor's fraction is all zero. (exact power of two)
  if is_all_zero(b.fraction)
    #check for subnormality.
    if exponent < min_exponent(ESS)
      dividend.esize = max_esize(ESS)
      dividend.exponent = z64

      right_shift = to16(min_exponent(ESS) - exponent)
      right_shift > (max_esize(ESS) + o16) && return sss(U, result_sign)

      frac_rsh_underflow_check!(dividend, right_shift)
      frac_set_bit!(dividend, right_shift)
    else
      (dividend.esize, dividend.exponent) = encode_exp(exponent)
    end
    coerce_sign!(dividend, result_sign)
    return dividend
  end

  (exponent > max_exponent(ESS)) && return mmr(U, result_sign)
  (exponent < min_exponent(ESS,FSS) - 1) && return sss(U, result_sign)

  #we're going to have to readjust so that the top part of the result is
  #between 0.5 and 1
  exponent -= 1

  divisor = copy(b)
  _bsubnormal && (exponent += normalize!(divisor))
  zero_b = frac_ctz(divisor)

  exponent += frac_div!(dividend, divisor)

  if FSS < 6
    dividend.fraction &= mask_top(FSS)
  end

  (dividend.esize, dividend.exponent) = encode_exp(exponent)
  dividend.fsize = max_fsize(FSS)
  #create a tentative result.
  make_exact!(dividend)
  #count zeros on the tail of the dividend.
  zero_r = frac_ctz(dividend)
  one_r  = frac_cto(dividend)

  if (zero_a == zero_r + zero_b - __frac_bits(FSS))
    exact_trim!(dividend)
  elseif (zero_a == one_r + zero_b - __frac_bits(FSS))
    next_unum!(dividend)
    exact_trim!(dividend)
  else
    make_ulp!(dividend)
  end

  exponent = decode_exp(dividend)

  exponent > max_exponent(ESS) && return mmr!(dividend, result_sign)

  if exponent < min_exponent(ESS)
    #in the case that we need to make this subnormal.
    right_shift = to16(min_exponent(ESS) - exponent)
    right_shift > (max_fsize(FSS) + o16) && return sss!(dividend, result_sign)
    frac_rsh_underflow_check!(dividend, right_shift)
    frac_set_bit!(dividend, right_shift)
    dividend.esize = max_esize(ESS)
    dividend.exponent = z64
  end

  coerce_sign!(dividend, result_sign)
  return dividend
end

doc"""
  `Unums.frac_div!(dividend::Unum, divisor::Unum)` performs the binomial
  goldschmidt division algorithm.  Algorithm is as follows:

  For X/Y, where X in [1,2) and Y in (0.5, 1]:  pick Z s.t. Y = 1 - Z.  Observe:

  * (1 - Z)(1 + Z)     == (1 - Z^2)
  * (1 - Z^2)(1 + Z^2) == (1 - Z^4)
  * (1 - Z^4)(1 + Z^4) == (1 - Z^8), etc, so:

  (1 - Z)(1 + Z)(1 + Z^2)(1 + Z^4) -> 1 + Z^2N -> 1 as N -> ∞

  ∴ X(1 + Z)(1 + Z^2)(1 + Z^4) -> (X / Y) as N -> ∞.
"""
@universal function frac_div!(dividend::Unum, divisor::Unum)
  d_result = prep_result!(dividend)
  #first prepare the divisor.
  d_multiple = prep_multiple!(divisor)
  #replace the fraction of "divisor" with the actual value of Z, not considering
  #the normal fraction invisible one.

  carry = frac_dmul!(d_result, d_multiple)
  #because frac_mul expects the presence of the "invisible one", we don't need
  #to supply it.

  traversals = 0  #how many times have we traversed a boundary?

  for idx = 1:(FSS)

    verbose_div && println(d_result)

    (carry != o64) && begin
      d_result = frac_rsh!(d_result, 0x0001)
      traversals = 1
    end

    #square the fraction part of the result.
    d_multiple = frac_sqr!(d_multiple)
    #multply the dividend to be that expected result.

    carry = frac_dmul!(d_result, d_multiple)
  end

  finalize_result!(dividend, d_result)

  return traversals  #report whether or not the exponent was altered.
end

type i128shell
  a::UInt128
end

frac_rsh!(x::i128shell, sh::UInt16) = (x.a >>= sh; x)

function frac_sqr!{ESS,FSS}(a::UnumSmall{ESS,FSS})
  a.fraction = i64mul_simple(a.fraction, a.fraction)
  return a
end
function frac_sqr!(number::UInt128)
  top_word = (number >> 64)
  bottom_word = (number & 0x0000_0000_0000_0000_FFFF_FFFF_FFFF_FFFF)
  result = top_word * bottom_word
  result >>= 63                      #63 because there's a *2 in there.
  result += top_word * top_word
end
frac_sqr!{ESS,FSS}(multiplier::UnumLarge{ESS,FSS}) = (frac_mul!(multiplier, multiplier.fraction, Val{__cell_length(FSS) + __xtras(FSS)}, Val{false}); multiplier)

frac_dmul!{ESS,FSS}(dividend::UnumSmall{ESS,FSS}, multiplier::UnumSmall{ESS,FSS}) = frac_mul!(dividend, multiplier.fraction)
frac_dmul!{ESS,FSS}(dividend::UnumLarge{ESS,FSS}, multiplier::UnumLarge{ESS,FSS}) = frac_mul!(dividend, multiplier.fraction, Val{__cell_length(FSS) + __xtras(FSS)}, Val{true})
function frac_dmul!(dividend::i128shell, multiplier::UInt128)
  carry = o64
  top_d = (dividend.a >> 64)
  top_m = (multiplier >> 64)
  result::UInt128 = top_d * (multiplier & 0x0000_0000_0000_0000_FFFF_FFFF_FFFF_FFFF)
  old_result = result
  result += top_m * (dividend.a & 0x0000_0000_0000_0000_FFFF_FFFF_FFFF_FFFF)

  if (old_result > result)
    result >>= 64
    result += 0x0000_0000_0000_0001_0000_0000_0000_0000
  else
    result >>= 64
  end

  old_result = result
  result += top_d * top_m
  carry += (result < old_result) * o64

  old_result = result
  result += dividend.a
  carry += (result < old_result) * o64

  old_result = result
  result += multiplier
  carry += (result < old_result) * o64

  dividend.a = result
  return carry
end

prep_result!{ESS,FSS}(a::UnumSmall{ESS,FSS}) = a
prep_result!{ESS}(a::UnumSmall{ESS,6}) = i128shell(UInt128(a.fraction) << 64)
function prep_result!{ESS,FSS}(a::UnumLarge{ESS,FSS})
  for idx = 1:__xtras(FSS)
    push!(a.fraction.a, z64)
  end
  return a
end

__xtras(FSS) = 4#__cell_length(FSS) >> 1

prep_multiple!{ESS,FSS}(a::UnumSmall{ESS,FSS}) = (a.fraction = (z64 - ((a.fraction >> 1) | t64)); a)
function prep_multiple!{ESS}(a::UnumSmall{ESS, 6})
  lbit = ((a.fraction & o64) != z64)
  return (UInt128((lbit * f64) - ((a.fraction >> 1) | t64)) << 64) | (lbit * t64)
end
function prep_multiple!{ESS,FSS}(a::UnumLarge{ESS,FSS})
  @inbounds begin
    lbit = ((a.fraction[__cell_length(FSS)] & o64))
    frac_rsh!(a, 0x0001)
    a.fraction[1] |= t64
    invert!(a.fraction)
  end

  @inbounds a.fraction[__cell_length(FSS)] -= (lbit * o64)
  #now go through and invert every cell.

  #TODO:  Decide on this question (not now!)
  #hack-ey.  Should we be doing this or checking to see if we have the right size??
  push!(a.fraction.a, lbit * t64)
  for idx = 2:__xtras(FSS)
    push!(a.fraction.a, z64)
  end
  return a
end

finalize_result!{ESS,FSS}(a::UnumSmall{ESS,FSS}, b::UnumSmall{ESS,FSS}) = nothing
finalize_result!{ESS}(a::UnumSmall{ESS,6}, b::i128shell) = (a.fraction = top_part(b.a))
function finalize_result!{ESS,FSS}(a::UnumLarge{ESS,FSS}, b::UnumLarge{ESS,FSS})
  for idx = 1:__xtras(FSS)
    pop!(a.fraction.a)
  end
end

@universal function div_inexact(a::Unum, b::Unum, result_sign::UInt16)

  is_inf_ulp(a) && (return inf_ulp_div(a, b, result_sign))
  is_zero_ulp(a) && (return zero_ulp_div(a, b, result_sign))

  is_inf_ulp(b) && (return inf_ulp_div_right(a, b, result_sign))
  is_zero_ulp(b) && (return zero_ulp_div_right(a, b, result_sign))

  #calculate the tops and the bottoms of both ulps.
  outer_bound_dividend = is_exact(a) ? a : outer_exact(a)
  outer_bound_divisor = is_exact(b) ? b : outer_exact(b)

  #calculate the inner and outer bounds of the result.
  inner = div_exact(a, outer_bound_divisor, result_sign)
  outer = div_exact(outer_bound_dividend, b, result_sign)

  #just in case we found an exact number here, make it not so.
  is_exact(inner) && outer_ulp!(inner)
  is_exact(outer) && inner_ulp!(outer)

  return (result_sign != z16) ? resolve_as_utype!(outer, inner) : resolve_as_utype!(inner, outer)
end

@universal function inf_ulp_div(inf_ulp::Unum, b::Unum, result_sign::UInt16)
  (decode_exp(b) < 0) && return mmr(U, result_sign)
  is_inf_ulp(b) && return allsignedreals(result_sign, U)

  outer_bound_b = is_exact(b) ? b : outer_exact(b)
  inner_bound_u = inner_exact(inf_ulp)

  result_inner = div_exact(inner_bound_u, outer_bound_b, result_sign)

  is_exact(result_inner) && outer_ulp!(result_inner)

  return (result_sign != z16) ? resolve_as_utype!(neg_mmr(U), result_inner) : resolve_as_utype!(result_inner, mmr(U))
end

@universal function zero_ulp_div(zero_ulp::Unum, b::Unum, result_sign::UInt16)

  is_zero_ulp(b) && return allsignedreals(result_sign, U)

  _ulp_exact = outer_exact(zero_ulp)
  _arg_exact = is_exact(b) ? b : outer_exact(b)

  res_exp = decode_exp(_ulp_exact) + 1 * is_subnormal(_ulp_exact) - decode_exp(_arg_exact) - 1 * is_subnormal(_arg_exact)
  (res_exp < min_exponent(ESS, FSS)) && return sss(U, result_sign)

  result_outer = div_exact(_ulp_exact, _arg_exact, result_sign)

  is_exact(result_outer) && inner_ulp!(result_outer)

  return (result_sign != z16) ? resolve_as_utype!(result_outer, neg_sss(U)) : resolve_as_utype!(sss(U), result_outer)
end

@universal function inf_ulp_div_right(a::Unum, inf_ulp::Unum, result_sign::UInt16)

 _arg_exact = is_exact(a) ? a : outer_exact(a)
 _ulp_exact = inner_exact(inf_ulp)

 #no need to check inf/inf because that's covered by the right hand side function.

 outer_bound = div_exact(_arg_exact, _ulp_exact, result_sign)
 is_exact(outer_bound) && inner_ulp!(outer_bound)

 return (result_sign != z16) ? resolve_as_utype!(outer_bound, neg_sss(U)) : resolve_as_utype!(sss(U), outer_bound)
end

@universal function zero_ulp_div_right(a::Unum, zero_ulp::Unum, result_sign::UInt16)
  _arg_exact = is_exact(a) ? a : inner_exact(a)
  _ulp_exact = outer_exact(zero_ulp)

  inner_bound = div_exact(_arg_exact, _ulp_exact, result_sign)

  is_exact(inner_bound) && outer_ulp!(inner_bound)

  return (result_sign != z16) ? resolve_as_utype!(neg_mmr(U), inner_bound) : resolve_as_utype!(inner_bound, mmr(U))
end

#import the Base divide operation and bind it to the udiv and udiv! functions
import Base./
@bind_operation(/, udiv)

max_stars_repo_name: REX-Computing/unumjl

max_issues_repo_name: REX-Computing/unumjl

max_forks_repo_name: REX-Computing/unumjl


text:
@testset "{{ title }} Type Tests" begin

  @test isdefined({{ app }}, :{{ class }}) == true

end