# KeyPairCredentialsProperty

The combination of username, private key and passphrase that are used as credentials.

- Source: Generated at build time
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const keyPairCredentialsProperty: quicksight.CfnDataSource.KeyPairCredentialsProperty = {
  keyPairUsername: 'keyPairUsername',
  privateKey: 'privateKey',

  // the properties below are optional
  privateKeyPassphrase: 'privateKeyPassphrase',
};
```

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_quicksight as quicksight

key_pair_credentials_property = quicksight.CfnDataSource.KeyPairCredentialsProperty(
    key_pair_username="keyPairUsername",
    private_key="privateKey",

    # the properties below are optional
    private_key_passphrase="privateKeyPassphrase"
)
```

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

KeyPairCredentialsProperty keyPairCredentialsProperty = KeyPairCredentialsProperty.builder()
        .keyPairUsername("keyPairUsername")
        .privateKey("privateKey")

        // the properties below are optional
        .privateKeyPassphrase("privateKeyPassphrase")
        .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.QuickSight;

var keyPairCredentialsProperty = new KeyPairCredentialsProperty {
    KeyPairUsername = "keyPairUsername",
    PrivateKey = "privateKey",

    // the properties below are optional
    PrivateKeyPassphrase = "privateKeyPassphrase"
};
```

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"

keyPairCredentialsProperty := &KeyPairCredentialsProperty{
	KeyPairUsername: jsii.String("keyPairUsername"),
	PrivateKey: jsii.String("privateKey"),

	// the properties below are optional
	PrivateKeyPassphrase: jsii.String("privateKeyPassphrase"),
}
```

## Properties

- `keyPairUsername`: string (required) — Username.

- `privateKey`: string (required) — PrivateKey.

- `privateKeyPassphrase`: string — PrivateKeyPassphrase.
