# ServiceAccountCredentialsProperty

The credentials for the service account used by the streaming instance to connect to the directory.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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_appstream as appstream } from 'aws-cdk-lib';
const serviceAccountCredentialsProperty: appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty = {
  accountName: 'accountName',
  accountPassword: 'accountPassword',
};
```

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_appstream as appstream

service_account_credentials_property = appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty(
    account_name="accountName",
    account_password="accountPassword"
)
```

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

ServiceAccountCredentialsProperty serviceAccountCredentialsProperty = ServiceAccountCredentialsProperty.builder()
        .accountName("accountName")
        .accountPassword("accountPassword")
        .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.AppStream;

var serviceAccountCredentialsProperty = new ServiceAccountCredentialsProperty {
    AccountName = "accountName",
    AccountPassword = "accountPassword"
};
```

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"

serviceAccountCredentialsProperty := &ServiceAccountCredentialsProperty{
	AccountName: jsii.String("accountName"),
	AccountPassword: jsii.String("accountPassword"),
}
```

## Properties

- `accountName`: string (required) — The user name of the account.

  This account must have the following privileges: create computer objects, join computers to the domain, and change/reset the password on descendant computer objects for the organizational units specified.

- `accountPassword`: string (required) — The password for the account.
