# IdentityProviderDetailsProperty

Required when `IdentityProviderType` is set to `AWS_DIRECTORY_SERVICE` , `AWS _LAMBDA` 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. Cannot be specified when `IdentityProviderType` is set to `SERVICE_MANAGED` .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';
const identityProviderDetailsProperty: transfer.CfnServer.IdentityProviderDetailsProperty = {
  directoryId: 'directoryId',
  function: 'function',
  invocationRole: 'invocationRole',
  sftpAuthenticationMethods: 'sftpAuthenticationMethods',
  url: 'url',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_transfer as transfer

identity_provider_details_property = transfer.CfnServer.IdentityProviderDetailsProperty(
    directory_id="directoryId",
    function="function",
    invocation_role="invocationRole",
    sftp_authentication_methods="sftpAuthenticationMethods",
    url="url"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.transfer.*;

IdentityProviderDetailsProperty identityProviderDetailsProperty = IdentityProviderDetailsProperty.builder()
        .directoryId("directoryId")
        .function("function")
        .invocationRole("invocationRole")
        .sftpAuthenticationMethods("sftpAuthenticationMethods")
        .url("url")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Transfer;

var identityProviderDetailsProperty = new IdentityProviderDetailsProperty {
    DirectoryId = "directoryId",
    Function = "function",
    InvocationRole = "invocationRole",
    SftpAuthenticationMethods = "sftpAuthenticationMethods",
    Url = "url"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

identityProviderDetailsProperty := &IdentityProviderDetailsProperty{
	DirectoryId: jsii.String("directoryId"),
	Function: jsii.String("function"),
	InvocationRole: jsii.String("invocationRole"),
	SftpAuthenticationMethods: jsii.String("sftpAuthenticationMethods"),
	Url: jsii.String("url"),
}
```

## Properties

- `directoryId`: string — The identifier of the AWS Directory Service directory that you want to use as your identity provider.

- `function`: string — The ARN for a Lambda function to use for the Identity provider.

- `invocationRole`: string — This parameter is only applicable if your `IdentityProviderType` is `API_GATEWAY` .

  Provides the type of `InvocationRole` used to authenticate the user account.

- `sftpAuthenticationMethods`: string — For SFTP-enabled servers, and for custom identity providers *only* , you can specify whether to authenticate using a password, SSH key pair, or both.

  - `PASSWORD` - users must provide their password to connect.
  - `PUBLIC_KEY` - users must provide their private key to connect.
  - `PUBLIC_KEY_OR_PASSWORD` - users can authenticate with either their password or their key. This is the default value.
  - `PUBLIC_KEY_AND_PASSWORD` - users must provide both their private key and their password to connect. The server checks the key first, and then if the key is valid, the system prompts for a password. If the private key provided does not match the public key that is stored, authentication fails.

- `url`: string — Provides the location of the service endpoint used to authenticate users.
