# UserPoolIdentityProviderGoogleProps

Properties to initialize UserPoolGoogleIdentityProvider.

Extends: UserPoolIdentityProviderGoogleProps
Extends: UserPoolIdentityProviderProps
Used as props by: UserPoolIdentityProviderGoogle

- Source: [`aws-cognito/lib/user-pool-idps/google.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-idps/google.ts#L14)
- Type last changed: v2.60.0 · 12 Jan 2023

## Example

```ts
const userpool = new cognito.UserPool(this, 'Pool');
const secret = secretsmanager.Secret.fromSecretAttributes(this, "CognitoClientSecret", {
    secretCompleteArn: "arn:aws:secretsmanager:xxx:xxx:secret:xxx-xxx"
}).secretValue

const provider = new cognito.UserPoolIdentityProviderGoogle(this, 'Google', {
  clientId: 'amzn-client-id',
  clientSecretValue: secret,
  userPool: userpool,
});
```

## Properties

- `attributeMapping`: [AttributeMapping](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.AttributeMapping.html) = no attribute mapping — Mapping attributes from the identity provider to standard and custom attributes of the user pool.

- `clientId`: string (required) — The client id recognized by Google APIs.

- `clientSecret`: string = none — use clientSecretValue instead

- `clientSecretValue`: [SecretValue](/cdk/api/v2/docs/aws-cdk-lib.SecretValue.html) = none — The client secret to be accompanied with clientId for Google APIs to authenticate the client as SecretValue.

- `scopes`: string[] = [ profile ] — The list of Google permissions to obtain for getting access to the Google profile.

- `userPool`: [IUserPool](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.IUserPool.html) (required) — The user pool to which this construct provides identities.
