Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode.
Parameters:
-
directory_id
(DirectoryId)
–
The identifier of the directory.
-
endpoint_encryption_mode
(EndpointEncryptionMode)
–
The encryption mode used for endpoint connections when streaming to WorkSpaces Personal or WorkSpace Pools.
Raises:
Source code in docs_src/capo_workspaces/_services/async_work_spaces.py
| async def modify_endpoint_encryption_mode(
self,
directory_id: "capo_workspaces.types.directory_id.DirectoryId",
endpoint_encryption_mode: "capo_workspaces.types.endpoint_encryption_mode.EndpointEncryptionMode",
*,
config_overrides: Optional[AsyncWorkSpacesClientConfig] = None,
) -> "capo_workspaces.types.modify_endpoint_encryption_mode_response.ModifyEndpointEncryptionModeResponse":
"""<p>Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode. </p>
Args:
directory_id: <p> The identifier of the directory.</p>
endpoint_encryption_mode: <p>The encryption mode used for endpoint connections when streaming to WorkSpaces Personal or WorkSpace Pools.</p>
Raises:
capo_workspaces.errors.access_denied_exception.AccessDeniedException: <p>The user is not authorized to access a resource.</p>
capo_workspaces.errors.operation_not_supported_exception.OperationNotSupportedException: <p>This operation is not supported.</p>
capo_workspaces.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_workspaces.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_workspaces.types.modify_endpoint_encryption_mode_request.ModifyEndpointEncryptionModeRequest]",
) -> AsyncOperationResponse[
"capo_workspaces.types.modify_endpoint_encryption_mode_response.ModifyEndpointEncryptionModeResponse"
]:
import capo_workspaces._operations.workspaces_service.modify_endpoint_encryption_mode
(
output,
http_response,
) = await capo_workspaces._operations.workspaces_service.modify_endpoint_encryption_mode.async_modify_endpoint_encryption_mode(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ModifyEndpointEncryptionMode")
)
input_: capo_workspaces.types.modify_endpoint_encryption_mode_request.ModifyEndpointEncryptionModeRequest = {
"directory_id": directory_id,
"endpoint_encryption_mode": endpoint_encryption_mode,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|