# ServiceNowConnectorProfileCredentialsProperty

The connector-specific profile credentials required when using ServiceNow.

- Source: Generated at build time
- Type last changed: v2.100.0 · 6 Oct 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_appflow as appflow } from 'aws-cdk-lib';
const serviceNowConnectorProfileCredentialsProperty: appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty = {
  oAuth2Credentials: {
    accessToken: 'accessToken',
    clientId: 'clientId',
    clientSecret: 'clientSecret',
    oAuthRequest: {
      authCode: 'authCode',
      redirectUri: 'redirectUri',
    },
    refreshToken: 'refreshToken',
  },
  password: 'password',
  username: 'username',
};
```

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_appflow as appflow

service_now_connector_profile_credentials_property = appflow.CfnConnectorProfile.ServiceNowConnectorProfileCredentialsProperty(
    o_auth2_credentials=appflow.CfnConnectorProfile.OAuth2CredentialsProperty(
        access_token="accessToken",
        client_id="clientId",
        client_secret="clientSecret",
        o_auth_request=appflow.CfnConnectorProfile.ConnectorOAuthRequestProperty(
            auth_code="authCode",
            redirect_uri="redirectUri"
        ),
        refresh_token="refreshToken"
    ),
    password="password",
    username="username"
)
```

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.appflow.*;

ServiceNowConnectorProfileCredentialsProperty serviceNowConnectorProfileCredentialsProperty = ServiceNowConnectorProfileCredentialsProperty.builder()
        .oAuth2Credentials(OAuth2CredentialsProperty.builder()
                .accessToken("accessToken")
                .clientId("clientId")
                .clientSecret("clientSecret")
                .oAuthRequest(ConnectorOAuthRequestProperty.builder()
                        .authCode("authCode")
                        .redirectUri("redirectUri")
                        .build())
                .refreshToken("refreshToken")
                .build())
        .password("password")
        .username("username")
        .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.AppFlow;

var serviceNowConnectorProfileCredentialsProperty = new ServiceNowConnectorProfileCredentialsProperty {
    OAuth2Credentials = new OAuth2CredentialsProperty {
        AccessToken = "accessToken",
        ClientId = "clientId",
        ClientSecret = "clientSecret",
        OAuthRequest = new ConnectorOAuthRequestProperty {
            AuthCode = "authCode",
            RedirectUri = "redirectUri"
        },
        RefreshToken = "refreshToken"
    },
    Password = "password",
    Username = "username"
};
```

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"

serviceNowConnectorProfileCredentialsProperty := &ServiceNowConnectorProfileCredentialsProperty{
	OAuth2Credentials: &OAuth2CredentialsProperty{
		AccessToken: jsii.String("accessToken"),
		ClientId: jsii.String("clientId"),
		ClientSecret: jsii.String("clientSecret"),
		OAuthRequest: &ConnectorOAuthRequestProperty{
			AuthCode: jsii.String("authCode"),
			RedirectUri: jsii.String("redirectUri"),
		},
		RefreshToken: jsii.String("refreshToken"),
	},
	Password: jsii.String("password"),
	Username: jsii.String("username"),
}
```

## Properties

- `oAuth2Credentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnConnectorProfile.OAuth2CredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnConnectorProfile.OAuth2CredentialsProperty.html) — The OAuth 2.0 credentials required to authenticate the user.

- `password`: string — The password that corresponds to the user name.

- `username`: string — The name of the user.
