Deletes the specified Directory Config object from WorkSpaces Applications. This object includes the information required to join streaming instances to an Active Directory domain.
Parameters:
Raises:
Source code in docs_src/capo_appstream/_services/async_app_stream.py
| async def delete_directory_config(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
directory_name: Optional[
"capo_appstream.types.directory_name.DirectoryName"
] = None,
) -> "capo_appstream.types.delete_directory_config_result.DeleteDirectoryConfigResult":
"""<p>Deletes the specified Directory Config object from WorkSpaces Applications. This object includes the information required to join streaming instances to an Active Directory domain.</p>
Args:
directory_name: <p>The name of the directory configuration.</p>
Raises:
capo_appstream.errors.resource_in_use_exception.ResourceInUseException: <p>The specified resource is in use.</p>
capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appstream.types.delete_directory_config_request.DeleteDirectoryConfigRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.delete_directory_config_result.DeleteDirectoryConfigResult"
]:
import capo_appstream._operations.photon_admin_proxy_service.delete_directory_config
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_service.delete_directory_config.async_delete_directory_config(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteDirectoryConfig")
)
input_: capo_appstream.types.delete_directory_config_request.DeleteDirectoryConfigRequest = {}
if directory_name is not None:
input_["directory_name"] = directory_name
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|