# CfnDirectoryConfigProps

Properties for defining a `CfnDirectoryConfig`.

Used as props by: [CfnDirectoryConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnDirectoryConfig.html)

- Source: Generated at build time
- Type last changed: v2.51.0 · 18 Nov 2022

## 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 cfnDirectoryConfigProps: appstream.CfnDirectoryConfigProps = {
  directoryName: 'directoryName',
  organizationalUnitDistinguishedNames: ['organizationalUnitDistinguishedNames'],
  serviceAccountCredentials: {
    accountName: 'accountName',
    accountPassword: 'accountPassword',
  },

  // the properties below are optional
  certificateBasedAuthProperties: {
    certificateAuthorityArn: 'certificateAuthorityArn',
    status: 'status',
  },
};
```

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

cfn_directory_config_props = appstream.CfnDirectoryConfigProps(
    directory_name="directoryName",
    organizational_unit_distinguished_names=["organizationalUnitDistinguishedNames"],
    service_account_credentials=appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty(
        account_name="accountName",
        account_password="accountPassword"
    ),

    # the properties below are optional
    certificate_based_auth_properties=appstream.CfnDirectoryConfig.CertificateBasedAuthPropertiesProperty(
        certificate_authority_arn="certificateAuthorityArn",
        status="status"
    )
)
```

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

CfnDirectoryConfigProps cfnDirectoryConfigProps = CfnDirectoryConfigProps.builder()
        .directoryName("directoryName")
        .organizationalUnitDistinguishedNames(List.of("organizationalUnitDistinguishedNames"))
        .serviceAccountCredentials(ServiceAccountCredentialsProperty.builder()
                .accountName("accountName")
                .accountPassword("accountPassword")
                .build())

        // the properties below are optional
        .certificateBasedAuthProperties(CertificateBasedAuthPropertiesProperty.builder()
                .certificateAuthorityArn("certificateAuthorityArn")
                .status("status")
                .build())
        .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 cfnDirectoryConfigProps = new CfnDirectoryConfigProps {
    DirectoryName = "directoryName",
    OrganizationalUnitDistinguishedNames = new [] { "organizationalUnitDistinguishedNames" },
    ServiceAccountCredentials = new ServiceAccountCredentialsProperty {
        AccountName = "accountName",
        AccountPassword = "accountPassword"
    },

    // the properties below are optional
    CertificateBasedAuthProperties = new CertificateBasedAuthPropertiesProperty {
        CertificateAuthorityArn = "certificateAuthorityArn",
        Status = "status"
    }
};
```

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"

cfnDirectoryConfigProps := &CfnDirectoryConfigProps{
	DirectoryName: jsii.String("directoryName"),
	OrganizationalUnitDistinguishedNames: []*string{
		jsii.String("organizationalUnitDistinguishedNames"),
	},
	ServiceAccountCredentials: &ServiceAccountCredentialsProperty{
		AccountName: jsii.String("accountName"),
		AccountPassword: jsii.String("accountPassword"),
	},

	// the properties below are optional
	CertificateBasedAuthProperties: &CertificateBasedAuthPropertiesProperty{
		CertificateAuthorityArn: jsii.String("certificateAuthorityArn"),
		Status: jsii.String("status"),
	},
}
```

## Properties

- `certificateBasedAuthProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDirectoryConfig.CertificateBasedAuthPropertiesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnDirectoryConfig.CertificateBasedAuthPropertiesProperty.html) — The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances.

- `directoryName`: string (required) — The fully qualified name of the directory (for example, corp.example.com).

- `organizationalUnitDistinguishedNames`: string[] (required) — The distinguished names of the organizational units for computer accounts.

- `serviceAccountCredentials`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDirectoryConfig.ServiceAccountCredentialsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnDirectoryConfig.ServiceAccountCredentialsProperty.html) (required) — The credentials for the service account used by the streaming instance to connect to the directory.

  Do not use this parameter directly. Use `ServiceAccountCredentials` as an input parameter with `noEcho` as shown in the [Parameters](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html) . For best practices information, see [Do Not Embed Credentials in Your Templates](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#creds) .
