deleteDirectoryConfig method
Deletes the specified Directory Config object from AppStream 2.0. This object includes the information required to join streaming instances to an Active Directory domain.
May throw ResourceInUseException. May throw ResourceNotFoundException.
Parameter directoryName
:
The name of the directory configuration.
Implementation
Future<void> deleteDirectoryConfig({
required String directoryName,
}) async {
ArgumentError.checkNotNull(directoryName, 'directoryName');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'PhotonAdminProxyService.DeleteDirectoryConfig'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DirectoryName': directoryName,
},
);
}