Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
Synopsis
- data TestIdentityProvider = TestIdentityProvider' {}
- newTestIdentityProvider :: Text -> Text -> TestIdentityProvider
- testIdentityProvider_serverProtocol :: Lens' TestIdentityProvider (Maybe Protocol)
- testIdentityProvider_userPassword :: Lens' TestIdentityProvider (Maybe Text)
- testIdentityProvider_sourceIp :: Lens' TestIdentityProvider (Maybe Text)
- testIdentityProvider_serverId :: Lens' TestIdentityProvider Text
- testIdentityProvider_userName :: Lens' TestIdentityProvider Text
- data TestIdentityProviderResponse = TestIdentityProviderResponse' {}
- newTestIdentityProviderResponse :: Int -> Int -> Text -> TestIdentityProviderResponse
- testIdentityProviderResponse_response :: Lens' TestIdentityProviderResponse (Maybe Text)
- testIdentityProviderResponse_message :: Lens' TestIdentityProviderResponse (Maybe Text)
- testIdentityProviderResponse_httpStatus :: Lens' TestIdentityProviderResponse Int
- testIdentityProviderResponse_statusCode :: Lens' TestIdentityProviderResponse Int
- testIdentityProviderResponse_url :: Lens' TestIdentityProviderResponse Text
Creating a Request
data TestIdentityProvider Source #
See: newTestIdentityProvider
smart constructor.
TestIdentityProvider' | |
|
Instances
newTestIdentityProvider Source #
:: Text | |
-> Text | |
-> TestIdentityProvider |
Create a value of TestIdentityProvider
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:serverProtocol:TestIdentityProvider'
, testIdentityProvider_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)
$sel:userPassword:TestIdentityProvider'
, testIdentityProvider_userPassword
- The password of the user account to be tested.
$sel:sourceIp:TestIdentityProvider'
, testIdentityProvider_sourceIp
- The source IP address of the user account to be tested.
$sel:serverId:TestIdentityProvider'
, testIdentityProvider_serverId
- A system-assigned identifier for a specific server. That server's user
authentication method is tested with a user name and password.
$sel:userName:TestIdentityProvider'
, testIdentityProvider_userName
- The name of the user account to be tested.
Request Lenses
testIdentityProvider_serverProtocol :: Lens' TestIdentityProvider (Maybe Protocol) Source #
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)
testIdentityProvider_userPassword :: Lens' TestIdentityProvider (Maybe Text) Source #
The password of the user account to be tested.
testIdentityProvider_sourceIp :: Lens' TestIdentityProvider (Maybe Text) Source #
The source IP address of the user account to be tested.
testIdentityProvider_serverId :: Lens' TestIdentityProvider Text Source #
A system-assigned identifier for a specific server. That server's user authentication method is tested with a user name and password.
testIdentityProvider_userName :: Lens' TestIdentityProvider Text Source #
The name of the user account to be tested.
Destructuring the Response
data TestIdentityProviderResponse Source #
See: newTestIdentityProviderResponse
smart constructor.
TestIdentityProviderResponse' | |
|
Instances
newTestIdentityProviderResponse Source #
:: Int | |
-> Int | |
-> Text | |
-> TestIdentityProviderResponse |
Create a value of TestIdentityProviderResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:response:TestIdentityProviderResponse'
, testIdentityProviderResponse_response
- The response that is returned from your API Gateway.
$sel:message:TestIdentityProviderResponse'
, testIdentityProviderResponse_message
- A message that indicates whether the test was successful or not.
$sel:httpStatus:TestIdentityProviderResponse'
, testIdentityProviderResponse_httpStatus
- The response's http status code.
$sel:statusCode:TestIdentityProviderResponse'
, testIdentityProviderResponse_statusCode
- The HTTP status code that is the response from your API Gateway.
$sel:url:TestIdentityProviderResponse'
, testIdentityProviderResponse_url
- The endpoint of the service used to authenticate a user.
Response Lenses
testIdentityProviderResponse_response :: Lens' TestIdentityProviderResponse (Maybe Text) Source #
The response that is returned from your API Gateway.
testIdentityProviderResponse_message :: Lens' TestIdentityProviderResponse (Maybe Text) Source #
A message that indicates whether the test was successful or not.
testIdentityProviderResponse_httpStatus :: Lens' TestIdentityProviderResponse Int Source #
The response's http status code.
testIdentityProviderResponse_statusCode :: Lens' TestIdentityProviderResponse Int Source #
The HTTP status code that is the response from your API Gateway.
testIdentityProviderResponse_url :: Lens' TestIdentityProviderResponse Text Source #
The endpoint of the service used to authenticate a user.