Skip to content
v2.278.0

CfnDirectoryConfigProps Struct ​

Properties for defining a CfnDirectoryConfig.

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

  // the properties below are optional
  certificateBasedAuthProperties: {
    certificateAuthorityArn: 'certificateAuthorityArn',
    status: 'status',
  },
};
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
// 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();
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"
    }
};
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 ​

certificateBasedAuthPropertiesoptionalIResolvable | CfnDirectoryConfig.CertificateBasedAuthPropertiesPropertycertificate_based_auth_propertiesoptionaltyping.Union[IResolvable, CertificateBasedAuthPropertiesProperty]certificateBasedAuthPropertiesoptionalIResolvableCertificateBasedAuthPropertiesoptionalIResolvableCertificateBasedAuthPropertiesoptionalinterface{} #
The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances.
directoryNamestringdirectory_namestrdirectoryNameStringDirectoryNamestringDirectoryName*string required #
The fully qualified name of the directory (for example, corp.example.com).
organizationalUnitDistinguishedNamesstring[]organizational_unit_distinguished_namestyping.List[str]organizationalUnitDistinguishedNamesList<String>OrganizationalUnitDistinguishedNamesstring[]OrganizationalUnitDistinguishedNames*[]*string required #
The distinguished names of the organizational units for computer accounts.
serviceAccountCredentialsIResolvable | CfnDirectoryConfig.ServiceAccountCredentialsPropertyservice_account_credentialstyping.Union[IResolvable, ServiceAccountCredentialsProperty]serviceAccountCredentialsIResolvableServiceAccountCredentialsIResolvableServiceAccountCredentialsinterface{} required #
The credentials for the service account used by the streaming instance to connect to the directory.
notes

Do not use this parameter directly. Use ServiceAccountCredentials as an input parameter with noEcho as shown in the Parameters . For best practices information, see Do Not Embed Credentials in Your Templates .