Skip to content

modify_endpoint_encryption_mode

modify_endpoint_encryption_mode(
    directory_id: DirectoryId,
    endpoint_encryption_mode: EndpointEncryptionMode,
    *,
    config_overrides: Optional[WorkSpacesClientConfig] = None,
) -> ModifyEndpointEncryptionModeResponse

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/work_spaces.py
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[WorkSpacesClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_workspaces.types.modify_endpoint_encryption_mode_request.ModifyEndpointEncryptionModeRequest]",
    ) -> OperationResponse[
        "capo_workspaces.types.modify_endpoint_encryption_mode_response.ModifyEndpointEncryptionModeResponse"
    ]:
        import capo_workspaces._operations.workspaces_service.modify_endpoint_encryption_mode

        output, http_response = (
            capo_workspaces._operations.workspaces_service.modify_endpoint_encryption_mode.modify_endpoint_encryption_mode(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output