Skip to content
v2.278.0

ServiceAccountCredentialsProperty Struct ​

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

Example ​

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
# 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
// 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();
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"
};
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 ​

accountNamestringaccount_namestraccountNameStringAccountNamestringAccountName*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.

accountPasswordstringaccount_passwordstraccountPasswordStringAccountPasswordstringAccountPassword*string required #
The password for the account.