# OAuth2PropertiesProperty

A structure containing the authentication credentials in the CreateConnection request.

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';

declare const tokenUrlParametersMap: any;
const oAuth2PropertiesProperty: glue.CfnConnection.OAuth2PropertiesProperty = {
  authorizationCodeProperties: {
    authorizationCode: 'authorizationCode',
    redirectUri: 'redirectUri',
  },
  oAuth2ClientApplication: {
    awsManagedClientApplicationReference: 'awsManagedClientApplicationReference',
    userManagedClientApplicationClientId: 'userManagedClientApplicationClientId',
  },
  oAuth2Credentials: {
    accessToken: 'accessToken',
    jwtToken: 'jwtToken',
    refreshToken: 'refreshToken',
    userManagedClientApplicationClientSecret: 'userManagedClientApplicationClientSecret',
  },
  oAuth2GrantType: 'oAuth2GrantType',
  tokenUrl: 'tokenUrl',
  tokenUrlParametersMap: tokenUrlParametersMap,
};
```

## Properties

- `authorizationCodeProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.AuthorizationCodePropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnConnection.AuthorizationCodePropertiesProperty.html) — A structure containing the authorization code used in the authentication configuration.

- `oAuth2ClientApplication`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.OAuth2ClientApplicationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnConnection.OAuth2ClientApplicationProperty.html) — The OAuth2 client app used for the connection.

- `oAuth2Credentials`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnection.OAuth2CredentialsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnConnection.OAuth2CredentialsProperty.html) — A structure containing the OAuth2 credentials used in the authentication configuration.

- `oAuth2GrantType`: string — The grant type used in the authentication configuration.

- `tokenUrl`: string — The URL used in the authentication configuration.

- `tokenUrlParametersMap`: any — A map of key-value pairs used in the authentication configuration.
