Skip to main content

directory_configs

Creates, updates, deletes, gets or lists a directory_configs resource.

Overview

Namedirectory_configs
TypeResource
Idaws.appstream.directory_configs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
certificate_based_auth_propertiesobjectThe certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory domain-joined streaming instances. Fallback is turned on by default when certificate-based authentication is Enabled . Fallback allows users to log in using their AD domain password if certificate-based authentication is unsuccessful, or to unlock a desktop lock screen. Enabled_no_directory_login_fallback enables certificate-based authentication, but does not allow users to log in using their AD domain password. Users will be disconnected to re-authenticate using certificates.
created_timestring (date-time)The time the directory configuration was created.
directory_namestringThe fully qualified name of the directory (for example, corp.example.com).
organizational_unit_distinguished_namesarrayThe distinguished names of the organizational units for computer accounts.
service_account_credentialsobjectThe credentials for the service account used by the fleet or image builder to connect to the directory.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_directory_configsselectregionRetrieves a list that describes one or more specified Directory Config objects for WorkSpaces Applications, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the configuration information required to join fleets and image builders to Microsoft Active Directory domains. Although the response syntax in this topic includes the account password, this password is not returned in the actual response.
create_directory_configinsertregion, DirectoryName, OrganizationalUnitDistinguishedNamesCreates a Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
update_directory_configupdateregion, DirectoryNameUpdates the specified Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
delete_directory_configdeleteregionDeletes the specified Directory Config object from WorkSpaces Applications. This object includes the information required to join streaming instances to an Active Directory domain.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a list that describes one or more specified Directory Config objects for WorkSpaces Applications, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the configuration information required to join fleets and image builders to Microsoft Active Directory domains. Although the response syntax in this topic includes the account password, this password is not returned in the actual response.

SELECT
certificate_based_auth_properties,
created_time,
directory_name,
organizational_unit_distinguished_names,
service_account_credentials
FROM aws.appstream.directory_configs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.

INSERT INTO aws.appstream.directory_configs (
DirectoryName,
OrganizationalUnitDistinguishedNames,
ServiceAccountCredentials,
CertificateBasedAuthProperties,
region
)
SELECT
'{{ DirectoryName }}' /* required */,
'{{ OrganizationalUnitDistinguishedNames }}' /* required */,
'{{ ServiceAccountCredentials }}',
'{{ CertificateBasedAuthProperties }}',
'{{ region }}'
RETURNING
directory_config
;

UPDATE examples

Updates the specified Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.

UPDATE aws.appstream.directory_configs
SET
DirectoryName = '{{ DirectoryName }}',
OrganizationalUnitDistinguishedNames = '{{ OrganizationalUnitDistinguishedNames }}',
ServiceAccountCredentials = '{{ ServiceAccountCredentials }}',
CertificateBasedAuthProperties = '{{ CertificateBasedAuthProperties }}'
WHERE
region = '{{ region }}' --required
AND DirectoryName = '{{ DirectoryName }}' --required
RETURNING
directory_config;

DELETE examples

Deletes the specified Directory Config object from WorkSpaces Applications. This object includes the information required to join streaming instances to an Active Directory domain.

DELETE FROM aws.appstream.directory_configs
WHERE region = '{{ region }}' --required
;