# UserPoolClientIdentityProvider

Identity providers supported by the UserPoolClient.

Obtainable from: UserPoolClientIdentityProvider.AMAZON, UserPoolClientIdentityProvider.APPLE, UserPoolClientIdentityProvider.COGNITO, UserPoolClientIdentityProvider.FACEBOOK, UserPoolClientIdentityProvider.GOOGLE, UserPoolClientIdentityProvider.custom

- Source: [`aws-cognito/lib/user-pool-client.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-client.ts#L194)

## Example

TypeScript:

```ts
const pool = new cognito.UserPool(this, 'Pool');
pool.addClient('app-client', {
  // ...
  supportedIdentityProviders: [
    cognito.UserPoolClientIdentityProvider.AMAZON,
    cognito.UserPoolClientIdentityProvider.COGNITO,
  ],
});
```

Python:

```python
pool = cognito.UserPool(self, "Pool")
pool.add_client("app-client",
    # ...
    supported_identity_providers=[cognito.UserPoolClientIdentityProvider.AMAZON, cognito.UserPoolClientIdentityProvider.COGNITO
    ]
)
```

Java:

```java
UserPool pool = new UserPool(this, "Pool");
pool.addClient("app-client", UserPoolClientOptions.builder()
        // ...
        .supportedIdentityProviders(List.of(UserPoolClientIdentityProvider.AMAZON, UserPoolClientIdentityProvider.COGNITO))
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
var pool = new UserPool(this, "Pool");
pool.AddClient("app-client", new UserPoolClientOptions {
    // ...
    SupportedIdentityProviders = new [] { UserPoolClientIdentityProvider.AMAZON, UserPoolClientIdentityProvider.COGNITO }
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
pool := cognito.NewUserPool(this, jsii.String("Pool"))
pool.addClient(jsii.String("app-client"), &UserPoolClientOptions{
	// ...
	SupportedIdentityProviders: []UserPoolClientIdentityProvider{
		cognito.UserPoolClientIdentityProvider_AMAZON(),
		cognito.UserPoolClientIdentityProvider_COGNITO(),
	},
})
```

## Properties

- `AMAZON`: [UserPoolClientIdentityProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Login With Amazon'.

  A `UserPoolIdentityProviderAmazon` must be attached to the user pool.

- `APPLE`: [UserPoolClientIdentityProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Sign In With Apple'.

  A `UserPoolIdentityProviderApple` must be attached to the user pool.

- `COGNITO`: [UserPoolClientIdentityProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in directly as a user of the User Pool.

- `FACEBOOK`: [UserPoolClientIdentityProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Facebook Login'.

  A `UserPoolIdentityProviderFacebook` must be attached to the user pool.

- `GOOGLE`: [UserPoolClientIdentityProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Google Login'.

  A `UserPoolIdentityProviderGoogle` must be attached to the user pool.

- `name`: string — The name of the identity provider as recognized by CloudFormation property `SupportedIdentityProviders`.

## Methods

- `custom(name: string): UserPoolClientIdentityProvider // chainable` (static) — Specify a provider not yet supported by the CDK.

  **Parameters**

  - `name` — name of the identity provider as recognized by CloudFormation property `SupportedIdentityProviders`.
